From axel50397 at gmail.com Sat Mar 14 06:59:50 2015 From: axel50397 at gmail.com (Adnan RIHAN) Date: Sat Mar 14 07:00:16 2015 Subject: [libcutl-users] Small test file for libcutl 1.9.0 Message-ID: Hi there, I?ve just subscribed to this mailing-list because I?ve submitted the libcutl package to homebrew, and I need to write a small test file, for the package to self-check (if it?s correctly compiled). As I don?t see any ?test? archive or file in the libcutl archive, can someone make me a small main.c which will check some libcutl functions? Thank you ! -- Cordialement, Adnan RIHAN. Directeur-G?rant de Eolis-Software, soci?t? de services informatiques. GPG: 5675-62BA (https://keybase.io/max13/key.asc) -> Si vous n'utilisez pas GPG mais souhaitez quand m?me m?envoyer un e-mail chiffr?: (https://encrypt.to/0x567562BA). From boris at codesynthesis.com Mon Mar 16 09:19:01 2015 From: boris at codesynthesis.com (Boris Kolpackov) Date: Mon Mar 16 09:29:31 2015 Subject: [libcutl-users] Small test file for libcutl 1.9.0 In-Reply-To: References: Message-ID: Hi Adnan, Adnan RIHAN writes: > I?ve just subscribed to this mailing-list because I?ve submitted > the libcutl package to homebrew, and I need to write a small test > file, for the package to self-check (if it?s correctly compiled). > > As I don?t see any ?test? archive or file in the libcutl archive, > can someone make me a small main.c which will check some libcutl > functions? There are actually quite a few tests for libcutl, there is just no autotools support for them and they are therefore not added to the distribution. But they are all in the repository: scm.codesynthesis.com/?p=libcutl/libcutl.git;a=tree;f=tests So take your pick (and no, I have no plans to add autotools support for tests as I am working on "true" solution for all this). Boris From axel50397 at gmail.com Mon Mar 16 12:39:15 2015 From: axel50397 at gmail.com (Adnan RIHAN) Date: Mon Mar 16 12:47:33 2015 Subject: [libcutl-users] Small test file for libcutl 1.9.0 In-Reply-To: References: Message-ID: Hi Boris, Are you the only dev :D ? On 16 mars 2015 at 14:29:31, Boris Kolpackov (boris@codesynthesis.com(mailto:boris@codesynthesis.com)) wrote: > scm.codesynthesis.com/?p=libcutl/libcutl.git;a=tree;f=tests Thank you! After having thought a little, I realized that I can make the simplest test possible: > #include > int main() > { > ? try { > ? ? throw cutl::exception(); > ? } catch (const cutl::exception &e) {} > ? return 0; > } I think it?s enough for homebrew to check if the lib has correctly been compiled. I?ve done quite the same (checking exception) for every libodb-* also. -- Cordialement, Adnan RIHAN. Directeur-G?rant de Eolis-Software, soci?t? de services informatiques. GPG: 5675-62BA (https://keybase.io/max13/key.asc) -> Si vous n'utilisez pas GPG mais souhaitez quand m?me m?envoyer un e-mail chiffr?: (https://encrypt.to/0x567562BA). From axel50397 at gmail.com Thu Mar 19 12:08:46 2015 From: axel50397 at gmail.com (Adnan RIHAN) Date: Thu Mar 19 12:09:11 2015 Subject: [libcutl-users] Small test file for libcutl 1.9.0 Message-ID: Hi Boris, I've looked into your tests to check if it's a problem to compile libcutl with libc++ (I'm trying various tests to check if it's an issue later) And I have an error with a test: compiler/traversal > driver.cxx:26:16: error: reference to 'shared_ptr' is ambiguous > typedef vector > objects; > ? ? ? ? ? ? ? ?^ > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3750:29: note:? > ? ? ? candidate found by name lookup is 'std::__1::shared_ptr' > class _LIBCPP_TYPE_VIS_ONLY shared_ptr > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^ > /usr/local/include/cutl/shared-ptr.hxx:13:9: note: candidate found by name lookup is > ? ? ? 'cutl::shared_ptr' > ? class shared_ptr: bits::counter_ops::r, X> So I?ve tried to replace ?shared_ptr? with ?cutl::shared_ptr?, the errors are gone. Don?t you have that error? BTW, I?ve compiled libcutl-1.8.1 (I?m trying it first) with stdlibc++ and libc++, all the tests seems to work, all tried with both stdlib. It?s only an issue when using std::string, which uses stdlibc++. Does it mean that libcutl can be built with libc++ or stdlibc++ without problem ? -- Cordialement, Adnan RIHAN. Directeur-G?rant de Eolis-Software, soci?t? de services informatiques. GPG: 5675-62BA (https://keybase.io/max13/key.asc) -> Si vous n'utilisez pas GPG mais souhaitez quand m?me m?envoyer un e-mail chiffr?: (https://encrypt.to/0x567562BA). From boris at codesynthesis.com Fri Mar 20 07:42:21 2015 From: boris at codesynthesis.com (Boris Kolpackov) Date: Fri Mar 20 07:53:46 2015 Subject: [libcutl-users] Small test file for libcutl 1.9.0 In-Reply-To: References: Message-ID: Hi Adnan, Adnan RIHAN writes: > And I have an error with a test: compiler/traversal > > driver.cxx:26:16: error: reference to 'shared_ptr' is ambiguous Fixed, thanks. http://scm.codesynthesis.com/?p=libcutl/libcutl.git;a=commit;h=a897445b7d0b8f62825fc51da6de616ec360e612 > Does it mean that libcutl can be built with libc++ or stdlibc++ > without problem ? It should be. Boris