|
From: santorini l. <san...@gm...> - 2015-12-27 00:09:48
|
Yes, I checked out the printf-fix branch and everything works beautifully. ============================================================================ Testsuite summary for Check 0.10.0 ============================================================================ # TOTAL: 8 # PASS: 8 # SKIP: 0 # XFAIL: 0 # FAIL: 0 # XPASS: 0 # ERROR: 0 ============================================================================ On Sun, Dec 27, 2015 at 1:05 AM, Branden Archer <b.m...@gm...> wrote: > Curious, I installed Lubuntu 15.10 in a VM and installed the following > packages: > > - git > - gcc > - pkg-config > - automake > - libtool > - texinfo > - vim > > I was able to reproduce the issue. It turns out that the built-in printf > command in the sh on Lubuntu does not interpret hex escapes as expected. On > most systems that I've tried, I see the following: > > $ printf "hi\x9there\n" > hi there > $ > > However, on Lubuntu the built-in printf command in sh produces the > following: > > $ sh -c 'printf "hi\x9there\n' > hi\x9there > $ > > > I think that Check can get around this by attempting to use the printf > program instead of a built-in by invoking printf as : > > env printf > > instead of directly. Trying this out on Lubuntu did get around the > problem. I have a change that is building now on our Jenkins instance. If > you would like, could you check that the fix works for you as well on > Lubuntu? If all is well, I'll push it into Check. > > $ git clone https://github.com/brarcher/check.git > $ cd check > $ checkout printf-fix > $ autoreconf -i > $ ./configure --disable-timeout-tests > # ^ the --disable-timeout-tests will not execute tests which > # take a long time and have nothing to do with the printf issue > $ make > $ make check > > - Branden > > > > On Sat, Dec 26, 2015 at 9:28 AM, Branden Archer <b.m...@gm...> > wrote: > >> Of the 8 tests run during "make check," I am failing 3/8. The ones which >>> fail are as follows--test_output.sh, test_log_output.sh, and >>> test_tap_output.sh. >> >> >> Sorry that you are running into this. Can you provide the output from >> each of the three offending tests so that we can see what is going wrong? >> Namely, cd into the tests directory and execute each of the scripts >> individually then send the result. >> >> $ cd tests >> $ ./test_output.sh | tee test_output.log >> $ ./test_log_output.sh | tee test_log_output.log >> $ ./test_tap_output.sh | tree test_tap_output.log >> >> Could you also log a bug against Check for this as well, and put the logs >> there? >> https://github.com/libcheck/check/issues >> >> >> I tried running the money tutorial, and it initially failed. I then >>> hunted around online, and someone suggested to run ldconfig, and after >>> that, the money tutorial passes. >> >> >> The README >> <https://github.com/libcheck/check/blob/master/doc/example/README> in >> the Check example mentioned that it expects Check to be already installed >> on the system to work. If Check was not yet installed on the system the >> example may not have been able to find Check in its configure script. Maybe >> ldconfig allowed the configure script to find the Check that you had >> compiled but not installed? >> >> >> Is this possible, for the installation tests to fail but for the money >>> tutorial to pass? >> >> >> Sure this is possible if Check has a bug on a given platform. The example >> shows only simple tests, but Check's own tests are comprehensive. >> >> - Branden >> >> >> On Sat, Dec 26, 2015 at 6:37 AM, santorini lysias < >> san...@gm...> wrote: >> >>> I am attempting to build from source on Lubuntu. My version of Ubuntu is >>> 14.04. >>> >>> Of the 8 tests run during "make check," I am failing 3/8. The ones which >>> fail are as follows--test_output.sh, test_log_output.sh, and >>> test_tap_output.sh. >>> >>> I tried running the money tutorial, and it initially failed. I then >>> hunted around online, and someone suggested to run ldconfig, and after >>> that, the money tutorial passes. Is this possible, for the installation >>> tests to fail but for the money tutorial to pass? >>> >>> The logs below are divided into 3 sections. >>> 1. Log after "make check." 3 tests fail >>> 2. Money tutorial passes. 1 test passes (after running ldconfig) >>> 3. Check dependency versions. Just to show all my dependencies are up to >>> date. >>> >>> >>> *Log after "make check"* >>> Making check in lib >>> make[1]: Entering directory `/home/ahan/Linux/rep/check/lib' >>> make[1]: Nothing to be done for `check'. >>> make[1]: Leaving directory `/home/ahan/Linux/rep/check/lib' >>> Making check in src >>> make[1]: Entering directory `/home/ahan/Linux/rep/check/src' >>> make[1]: Nothing to be done for `check'. >>> make[1]: Leaving directory `/home/ahan/Linux/rep/check/src' >>> Making check in doc >>> make[1]: Entering directory `/home/ahan/Linux/rep/check/doc' >>> make[1]: Nothing to be done for `check'. >>> make[1]: Leaving directory `/home/ahan/Linux/rep/check/doc' >>> Making check in . >>> make[1]: Entering directory `/home/ahan/Linux/rep/check' >>> make[1]: Leaving directory `/home/ahan/Linux/rep/check' >>> Making check in checkmk >>> make[1]: Entering directory `/home/ahan/Linux/rep/check/checkmk' >>> make check-TESTS >>> make[2]: Entering directory `/home/ahan/Linux/rep/check/checkmk' >>> make[3]: Entering directory `/home/ahan/Linux/rep/check/checkmk' >>> PASS: test/check_checkmk >>> make[4]: Entering directory `/home/ahan/Linux/rep/check/checkmk' >>> make[4]: Nothing to be done for `all'. >>> make[4]: Leaving directory `/home/ahan/Linux/rep/check/checkmk' >>> >>> ============================================================================ >>> Testsuite summary for Check 0.10.0 >>> >>> ============================================================================ >>> # TOTAL: 1 >>> # PASS: 1 >>> # SKIP: 0 >>> # XFAIL: 0 >>> # FAIL: 0 >>> # XPASS: 0 >>> # ERROR: 0 >>> >>> ============================================================================ >>> make[3]: Leaving directory `/home/ahan/Linux/rep/check/checkmk' >>> make[2]: Leaving directory `/home/ahan/Linux/rep/check/checkmk' >>> make[1]: Leaving directory `/home/ahan/Linux/rep/check/checkmk' >>> Making check in tests >>> make[1]: Entering directory `/home/ahan/Linux/rep/check/tests' >>> make check-TESTS >>> make[2]: Entering directory `/home/ahan/Linux/rep/check/tests' >>> make[3]: Entering directory `/home/ahan/Linux/rep/check/tests' >>> PASS: check_check_export >>> PASS: check_check >>> FAIL: test_output.sh >>> PASS: test_check_nofork.sh >>> PASS: test_check_nofork_teardown.sh >>> PASS: test_xml_output.sh >>> FAIL: test_log_output.sh >>> FAIL: test_tap_output.sh >>> make[4]: Entering directory `/home/ahan/Linux/rep/check/tests' >>> make[4]: Nothing to be done for `all'. >>> make[4]: Leaving directory `/home/ahan/Linux/rep/check/tests' >>> >>> ============================================================================ >>> Testsuite summary for Check 0.10.0 >>> >>> ============================================================================ >>> # TOTAL: 8 >>> # PASS: 5 >>> # SKIP: 0 >>> # XFAIL: 0 >>> # FAIL: 3 >>> # XPASS: 0 >>> # ERROR: 0 >>> >>> ============================================================================ >>> See tests/test-suite.log >>> Please report to check-devel at lists dot sourceforge dot net >>> >>> ============================================================================ >>> make[3]: *** [test-suite.log] Error 1 >>> make[3]: Leaving directory `/home/ahan/Linux/rep/check/tests' >>> make[2]: *** [check-TESTS] Error 2 >>> make[2]: Leaving directory `/home/ahan/Linux/rep/check/tests' >>> make[1]: *** [check-am] Error 2 >>> make[1]: Leaving directory `/home/ahan/Linux/rep/check/tests' >>> make: *** [check-recursive] Error 1 >>> >>> >>> *Money tutorial passes* >>> ahan@ahan-Aspire-V5-571:~/Linux/dcj/2015.12.26.check-tutorial/example$ >>> make check >>> Making check in src >>> make[1]: Entering directory >>> `/home/ahan/Linux/dcj/2015.12.26.check-tutorial/example/src' >>> make[1]: Nothing to be done for `check'. >>> make[1]: Leaving directory >>> `/home/ahan/Linux/dcj/2015.12.26.check-tutorial/example/src' >>> Making check in . >>> make[1]: Entering directory >>> `/home/ahan/Linux/dcj/2015.12.26.check-tutorial/example' >>> make[1]: Leaving directory >>> `/home/ahan/Linux/dcj/2015.12.26.check-tutorial/example' >>> Making check in tests >>> make[1]: Entering directory >>> `/home/ahan/Linux/dcj/2015.12.26.check-tutorial/example/tests' >>> make check_money >>> make[2]: Entering directory >>> `/home/ahan/Linux/dcj/2015.12.26.check-tutorial/example/tests' >>> gcc -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/local/include -g -O2 >>> -MT check_money-check_money.o -MD -MP -MF .deps/check_money-check_money.Tpo >>> -c -o check_money-check_money.o `test -f 'check_money.c' || echo >>> './'`check_money.c >>> mv -f .deps/check_money-check_money.Tpo .deps/check_money-check_money.Po >>> /bin/bash ../libtool --tag=CC --mode=link gcc -pthread >>> -I/usr/local/include -g -O2 -o check_money check_money-check_money.o >>> ../src/libmoney.la -L/usr/local/lib -lcheck >>> libtool: link: gcc -pthread -I/usr/local/include -g -O2 -o >>> .libs/check_money check_money-check_money.o ../src/.libs/libmoney.so >>> -L/usr/local/lib /usr/local/lib/libcheck.so -pthread >>> make[2]: Leaving directory >>> `/home/ahan/Linux/dcj/2015.12.26.check-tutorial/example/tests' >>> make check-TESTS >>> make[2]: Entering directory >>> `/home/ahan/Linux/dcj/2015.12.26.check-tutorial/example/tests' >>> make[3]: Entering directory >>> `/home/ahan/Linux/dcj/2015.12.26.check-tutorial/example/tests' >>> PASS: check_money >>> make[4]: Entering directory >>> `/home/ahan/Linux/dcj/2015.12.26.check-tutorial/example/tests' >>> make[4]: Nothing to be done for `all'. >>> make[4]: Leaving directory >>> `/home/ahan/Linux/dcj/2015.12.26.check-tutorial/example/tests' >>> >>> ============================================================================ >>> Testsuite summary for Money 0.3 >>> >>> ============================================================================ >>> # TOTAL: 1 >>> # PASS: 1 >>> # SKIP: 0 >>> # XFAIL: 0 >>> # FAIL: 0 >>> # XPASS: 0 >>> # ERROR: 0 >>> >>> ============================================================================ >>> make[3]: Leaving directory >>> `/home/ahan/Linux/dcj/2015.12.26.check-tutorial/example/tests' >>> make[2]: Leaving directory >>> `/home/ahan/Linux/dcj/2015.12.26.check-tutorial/example/tests' >>> make[1]: Leaving directory >>> `/home/ahan/Linux/dcj/2015.12.26.check-tutorial/example/tests' >>> >>> >>> *Check dependency versions* >>> ahan@ahan-Aspire-V5-571:~/Linux/rep/check$ automake --version >>> automake (GNU automake) 1.14.1 >>> Copyright (C) 2013 Free Software Foundation, Inc. >>> License GPLv2+: GNU GPL version 2 or later < >>> http://gnu.org/licenses/gpl-2.0.html> >>> This is free software: you are free to change and redistribute it. >>> There is NO WARRANTY, to the extent permitted by law. >>> >>> Written by Tom Tromey <tr...@re...> >>> and Alexandre Duret-Lutz <ad...@gn...>. >>> ahan@ahan-Aspire-V5-571:~/Linux/rep/check$ autoconf --version >>> autoconf (GNU Autoconf) 2.69 >>> Copyright (C) 2012 Free Software Foundation, Inc. >>> License GPLv3+/Autoconf: GNU GPL version 3 or later >>> <http://gnu.org/licenses/gpl.html>, < >>> http://gnu.org/licenses/exceptions.html> >>> This is free software: you are free to change and redistribute it. >>> There is NO WARRANTY, to the extent permitted by law. >>> >>> Written by David J. MacKenzie and Akim Demaille. >>> ahan@ahan-Aspire-V5-571:~/Linux/rep/check$ libtool --version >>> libtool (GNU libtool) 2.4.2 >>> Written by Gordon Matzigkeit <go...@gn...>, 1996 >>> >>> Copyright (C) 2011 Free Software Foundation, Inc. >>> This is free software; see the source for copying conditions. There is >>> NO >>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR >>> PURPOSE. >>> ahan@ahan-Aspire-V5-571:~/Linux/rep/check$ pkg-config --version >>> 0.26 >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Check-devel mailing list >>> Che...@li... >>> https://lists.sourceforge.net/lists/listinfo/check-devel >>> >>> >> > |