Thread: [Cppcms-users] make test: 72% tests passed, 13 tests failed out of 46
Brought to you by:
artyom-beilis
From: augustin <aug...@ov...> - 2010-07-13 00:56:34
Attachments:
LastTest.log
|
Hello! First, thanks Artyom for this project. I discovered it 2 days ago and it seems it was exactly what I was looking for. I am trying to make test cppcms but I get this: 72% tests passed, 13 tests failed out of 46 Total Test time (real) = 23.57 sec The following tests FAILED: 8 - form_test (Failed) 9 - cookie_test (Failed) 10 - internal_forwarder_test (Failed) 11 - forwarder_test (Failed) 12 - jsonrpc_test (Failed) 13 - proto_test_async_http (Failed) 14 - proto_test_async_scgi (Failed) 16 - proto_test_sync_http (Failed) 17 - proto_test_sync_scgi (Failed) 34 - test_aio_socket (Failed) 35 - test_aio_endpoint (Failed) 36 - test_aio_prefork (Failed) 42 - test_locale_formatting (Failed) Errors while running CTest make: *** [test] Error 8 I am using Kubuntu. I am using a svn checkout from 2 days ago. # svn update At revision 1314. I didn't run make + options. I simply did: cmake .. make make test # cmake .. -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Performing Test GCC_IS_GCC4 -- Performing Test GCC_IS_GCC4 - Success -- Looking for socket -- Looking for socket - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Performing Test BOOSTER_HAS_GCC_SYNC -- Performing Test BOOSTER_HAS_GCC_SYNC - Success -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD - Failed -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD - Success -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_STDINT_H -- Performing Test BOOSTER_HAVE_STDINT_H - Success -- Performing Test BOOSTER_HAVE_INTTYPES_H -- Performing Test BOOSTER_HAVE_INTTYPES_H - Success -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 - Success -- Looking for ICU libraries -- ICU Found, building booster locale -- Performing Test CPPCMS_HAVE_STDINT_H -- Performing Test CPPCMS_HAVE_STDINT_H - Success -- Performing Test CPPCMS_HAVE_INTTYPES_H -- Performing Test CPPCMS_HAVE_INTTYPES_H - Success -- Looking for atoll -- Looking for atoll - found -- Looking for _atoi64 -- Looking for _atoi64 - not found -- Looking for snprintf -- Looking for snprintf - found -- Looking for stat -- Looking for stat - found -- Looking for _stat -- Looking for _stat - not found -- Performing Test LIBC_ICONV -- Performing Test LIBC_ICONV - Success -- Performing Test CPPCMS_HAVE_STD_WSTRING -- Performing Test CPPCMS_HAVE_STD_WSTRING - Success -- Performing Test CPPCMS_HAVE_BSD_TM -- Performing Test CPPCMS_HAVE_BSD_TM - Success -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING - Failed -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO - Failed -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE - Failed -- Performing Test CPPCMS_HAVE_GCC_TYPEOF -- Performing Test CPPCMS_HAVE_GCC_TYPEOF - Success -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF - Success -- Looking for dlopen -- Looking for dlopen - not found -- Looking for dlopen in dl -- Looking for dlopen in dl - found -- Looking for socket -- Looking for socket - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for canonicalize_file_name -- Looking for canonicalize_file_name - found GNU Gcrypt library not found, disabling aes_encryptor -- Configuring done -- Generating done $ python -V Python 2.6.4 I don't know how to find the ICU version I have. I guess a recent one (I'm on Kubuntu 9.11. $ cmake --help cmake version 2.8.0 $ pcretest PCRE version 7.8 2008-09-05 I don't know how to find the zlib version. $ gcc --version gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1 $ ldd ./proto_test linux-vdso.so.1 => (0x00007fffd57f3000) libcppcms.so.1 => /home/overshoot/devel/svn/cppcms/build/libcppcms.so.1 (0x00007f5d0155d000) libbooster.so.0 => /home/overshoot/devel/svn/cppcms/build/booster/libbooster.so.0 (0x00007f5d012b6000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007f5d0109a000) libpcre.so.3 => /lib/libpcre.so.3 (0x00007f5d00e6c000) libicuuc.so.40 => /usr/lib/libicuuc.so.40 (0x00007f5d00b24000) libicui18n.so.40 => /usr/lib/libicui18n.so.40 (0x00007f5d00790000) libicudata.so.40 => /usr/lib/libicudata.so.40 (0x00007f5cff84b000) libdl.so.2 => /lib/libdl.so.2 (0x00007f5cff647000) libz.so.1 => /lib/libz.so.1 (0x00007f5cff430000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f5cff120000) libm.so.6 => /lib/libm.so.6 (0x00007f5cfee9c000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f5cfec85000) libc.so.6 => /lib/libc.so.6 (0x00007f5cfe915000) /lib64/ld-linux-x86-64.so.2 (0x00007f5d0194d000) $ ldd ./internal_forwarder_test ldd: ./internal_forwarder_test: No such file or directory Attached is the Lasttest.log. Thank you for your help. Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Artyom <art...@ya...> - 2010-07-13 04:35:52
|
Hello, First of all very good problem report. > The following tests FAILED: > 8 - form_test (Failed) > 9 - cookie_test > (Failed) > 10 - > internal_forwarder_test (Failed) > 11 - forwarder_test > (Failed) > 12 - jsonrpc_test > (Failed) > 13 - > proto_test_async_http (Failed) > 14 - > proto_test_async_scgi (Failed) > 16 - > proto_test_sync_http (Failed) > 17 - > proto_test_sync_scgi (Failed) > 34 - test_aio_socket > (Failed) > 35 - > test_aio_endpoint (Failed) > 36 - > test_aio_prefork (Failed) > 42 - These tests had failed because you had an application that runs and listens to 8080 port, Unit tests use it for communication with the application - so it can't bind to the port. Stop a service or application that listen on them and they should pass. > test_locale_formatting (Failed) > > I don't know how to find the ICU version I have. I guess a > recent one (I'm on > Kubuntu 9.11. > Take a look on file /usr/include/unicode/uversion.h and see how U_ICU_VERSION is defined. It looks like you have 4.0 and I handn't chance to test CppCMS against this version (tested 3.6, 3.8, 4.2 and 4.4) The faults are minor and not critical but can you please change lines 297, 165 in booster/lib/locale/test/test_formatting.cpp file from #if U_ICU_VERSION_MAJOR_NUM >= 4 to #if U_ICU_VERSION_MAJOR_NUM*100 + U_ICU_VERSION_MINOR_NUM >= 402 And tell me if it helps? Regards, Artyom P.S.: Have you registered to the list? Because your message was blocked for some reason and I had to unblock it in administrators interface. |
From: augustin <aug...@ov...> - 2010-07-13 05:19:21
|
On Tuesday 13 July 2010 12:35:44 pm Artyom wrote: > First of all very good problem report. Thanks, I thought you'd appreciate it. I simply replied to the questions you asked a previous poster. > P.S.: Have you registered to the list? Because your message was blocked > for some reason and I had to unblock it in administrators interface. Yes, I have registered. The message got blocked because of the attachment. I received this after posting: Your mail to 'Cppcms-users' with the subject make test: 72% tests passed, 13 tests failed out of 46 is being held until the list moderator can review it for approval. the reason it is being held: Message body is too big: 42458 bytes with a limit of 40 KB Thanks for your reply about the make test errors. I'll test everything you say and reply later with more information. Meanwhile, I like wikis and I feel it's important that things get documented. Since I'm new here, I wanted to ask first: is it ok if I create new pages on the wiki to document the information that you provide via email? I could create a compile troubleshooting page which should help future compilers. Thanks again, Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Artyom <art...@ya...> - 2010-07-13 07:14:23
|
> > > Meanwhile, I like wikis and I feel it's important that things get documented. > Since I'm new here, I wanted to ask first: is it ok if I create new pages on > the wiki to document the information that you provide via email? > I could create a compile troubleshooting page which should help future > compilers. > > Feel free to edit wiki, add pages where appropriate, Actually this is good idea I was thinking about something like that as well - troubleshooting. So I added it: http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_build_troubleshooting Feel free to edit :-) Artyom |
From: augustin <aug...@ov...> - 2010-07-13 06:09:00
|
On Tuesday 13 July 2010 12:35:44 pm Artyom wrote: > These tests had failed because you had an application that > runs and listens to 8080 port, Unit tests use it for communication > with the application - so it can't bind to the port. > > Stop a service or application that listen on them and they should pass. Ok. I found the process and turned it off. > Take a look on file /usr/include/unicode/uversion.h > and see how U_ICU_VERSION is defined. > > It looks like you have 4.0 and I handn't chance to test CppCMS > against this version (tested 3.6, 3.8, 4.2 and 4.4) You are right: #define U_ICU_VERSION "4.0.1" Before patching the source, I tried to compile to see the different. I got: 93% tests passed, 3 tests failed out of 46 Total Test time (real) = 37.90 sec The following tests FAILED: 10 - internal_forwarder_test (SEGFAULT) 11 - forwarder_test (Failed) 42 - test_locale_formatting (Failed) Errors while running CTest make: *** [test] Error 8 > The faults are minor and not critical but can you please change lines > 297, 165 in booster/lib/locale/test/test_formatting.cpp file from > > #if U_ICU_VERSION_MAJOR_NUM >= 4 > to > #if U_ICU_VERSION_MAJOR_NUM*100 + U_ICU_VERSION_MINOR_NUM >= 402 > > And tell me if it helps? After patching, I got: 96% tests passed, 2 tests failed out of 46 Total Test time (real) = 37.60 sec The following tests FAILED: 10 - internal_forwarder_test (Failed) 11 - forwarder_test (SEGFAULT) Errors while running CTest make: *** [test] Error 8 10/46 Testing: internal_forwarder_test 10/46 Test: internal_forwarder_test Command: "/home/overshoot/devel/svn/cppcms/build/forwarder_test" "-c" "/home/overshoot/devel/svn/cppcms/tests/forwarder_test.js" "--test- exec=/usr/bin/python /home/overshoot/devel/svn/cppcms/tests/forwarder_test.py" "--test-internal=true" Directory: /home/overshoot/devel/svn/cppcms/build "internal_forwarder_test" start time: Jul 13 14:00 CST Output: ---------------------------------------------------------- Tesing internal forwarder system: Address already in use <end of output> Test time = 0.02 sec ---------------------------------------------------------- Test Failed. "internal_forwarder_test" end time: Jul 13 14:00 CST "internal_forwarder_test" time elapsed: 00:00:00 ---------------------------------------------------------- 11/46 Testing: forwarder_test 11/46 Test: forwarder_test Command: "/home/overshoot/devel/svn/cppcms/build/forwarder_test" "-c" "/home/overshoot/devel/svn/cppcms/tests/forwarder_test.js" "--test- exec=/usr/bin/python /home/overshoot/devel/svn/cppcms/tests/forwarder_test.py" "--test-internal=false" Directory: /home/overshoot/devel/svn/cppcms/build "forwarder_test" start time: Jul 13 14:00 CST Output: ---------------------------------------------------------- Tesing application level forwarding <end of output> Test time = 0.01 sec ---------------------------------------------------------- Test Failed. "forwarder_test" end time: Jul 13 14:00 CST "forwarder_test" time elapsed: 00:00:00 ---------------------------------------------------------- Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Artyom <art...@ya...> - 2010-07-13 07:04:46
|
Hi, > > After patching, I got: > > > 96% tests passed, 2 tests failed out of 46 > Total Test time (real) = 37.60 sec > The following tests FAILED: > 10 - internal_forwarder_test (Failed) > 11 - forwarder_test (SEGFAULT) > Errors while running CTest > make: *** [test] Error 8 > First of all, one test fixed, about next ones: > 10/46 Testing: internal_forwarder_test > > ---------------------------------------------------------- > Tesing internal forwarder > system: Address already in use > <end of output> > Test time = 0.02 sec Do you have anything that listens on 8081 as well? (forwarder uses also 8081) > 11/46 Testing: forwarder_test > 11/46 Test: forwarder_test > Command: "/home/overshoot/devel/svn/cppcms/build/forwarder_test" "-c" > "/home/overshoot/devel/svn/cppcms/tests/forwarder_test.js" "--test- > exec=/usr/bin/python /home/overshoot/devel/svn/cppcms/tests/forwarder_test.py" > > "--test-internal=false" > Directory: /home/overshoot/devel/svn/cppcms/build > "forwarder_test" start time: Jul 13 14:00 CST > Output: > ---------------------------------------------------------- > Tesing application level forwarding > <end of output> > Test time = 0.01 sec Can you please give me a back trace of the fault? run gdb as: gdb /home/overshoot/devel/svn/cppcms/build/forwarder_test Then in gdb r -c /home/overshoot/devel/svn/cppcms/tests/forwarder_test.js --test-exec=/home/overshoot/devel/svn/cppcms/tests/forwarder_test.py --test-internal=false When program crashes, type bt It would print you a stack back trace of the failed program. Thank you, Artyom |
From: augustin <aug...@ov...> - 2010-07-13 08:23:28
|
On Tuesday 13 July 2010 03:04:38 pm Artyom wrote: > Do you have anything that listens on 8081 as well? (forwarder uses also > 8081) LOL! After a bit of searching, I found out that the application listening on port 8080 was ktorrent's web panel. So, I simply incremented ktorrent's port setting to 8081 not knowing it was also required. Now that both ports are available, test 10 and 11 are all ok. 100% tests passed, 0 tests failed out of 46 Thanks a lot for your help so far... I am going to follow the "Hello World" tutorial... my next questions might be about Apache and server configuration... I'll see. Blessings, Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |