[flac-dev] Check level not passed to tests
Martijn van Beurden
mvanb1 at gmail.com
Tue Apr 9 12:18:47 PDT 2013
Hi all,
For testing a few mingw-builds I tried to use ./configure
--disable-thorough-testing (because testing in a virtual machine through
mingw isn't really fast) but it turned out this setting doesn't do
anything.
It turns out these configuration options aren't passed to the test
scripts at all. I do not fully understand how Makefiles or environment
variables work, but my test/Makefile has the following lines
FLAC__TEST_LEVEL = 0
FLAC__TEST_WITH_VALGRIND = no
[...]
TESTS_ENVIRONMENT = FLAC__TEST_LEVEL=0 FLAC__TEST_WITH_VALRGIND=no
However, when I added the following line at the bottom of
test/test_streams.sh
echo "Test level was $FLAC__TEST_LEVEL"
the output I got was "Test level was 1". I traced it back to
if [ x"$FLAC__TEST_LEVEL" = x ] ; then
FLAC__TEST_LEVEL=1
fi
It turns out $FLAC__TEST_LEVEL is unset in the test scripts. As I said
before, I'm not sure how to fix this. This is probably also the case for
$FLAC__TEST_WITH_VALGRIND
While going trough test/Makefile, I found this
# This is the full test suite, but only works correctly in-tree.
# In particular test_grabbag.sh, test_flac.sh and test_metaflac.sh will not
# run correctly out-of-tree.
fullcheck: $(check_SCRIPTS)
./test_libFLAC.sh
./test_libFLAC++.sh
./test_grabbag.sh
[...]
More information about the flac-dev
mailing list