Run all tests from one script which bails on the first failure.
authorErik de Castro Lopo <erikd@mega-nerd.com>
Tue, 31 Jan 2012 10:06:21 +0000 (21:06 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Tue, 31 Jan 2012 10:06:21 +0000 (21:06 +1100)
.gitignore
test/Makefile.am
test/test_wrapper.sh [new file with mode: 0755]

index 3601f27..c6f7651 100644 (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
index 8e18e72..1a8d8cb 100644 (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 \
diff --git a/test/test_wrapper.sh b/test/test_wrapper.sh
new file mode 100755 (executable)
index 0000000..3832a92
--- /dev/null
@@ -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