Run all tests from one script which bails on the first failure.

This commit is contained in:
Erik de Castro Lopo 2012-01-31 21:06:21 +11:00
parent f3d4fb27e1
commit 7b0d8f1027
3 changed files with 20 additions and 1 deletions

5
.gitignore vendored
View File

@ -39,6 +39,11 @@ src/test_seeking/test_seeking
src/test_streams/test_streams
stamp-h1
test/*.aiff
test/*.cmp
test/*.cue
test/*.flac
test/*.log
test/*.oga
test/*.raw
test/*.rf64
test/*.w64

View File

@ -23,7 +23,7 @@ TESTS_ENVIRONMENT = FLAC__TEST_LEVEL=@FLAC__TEST_LEVEL@ FLAC__TEST_WITH_VALRGIND
SUBDIRS = cuesheets flac-to-flac-metadata-test-files metaflac-test-files pictures
TESTS = \
check_SCRIPTS = \
./test_libFLAC.sh \
$(CPPLIBS_TESTS) \
./test_grabbag.sh \
@ -32,6 +32,9 @@ TESTS = \
./test_seeking.sh \
./test_streams.sh
check: $(check_SCRIPTS)
./test_wrapper.sh
EXTRA_DIST = \
Makefile.lite \
cuesheet.ok \

11
test/test_wrapper.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh -e
# This test script should exit on the first failure.
./test_libFLAC.sh
./test_libFLAC++.sh
./test_grabbag.sh
./test_flac.sh
./test_metaflac.sh
./test_seeking.sh
./test_streams.sh