summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2012-01-31 21:06:21 +1100
committerErik de Castro Lopo <erikd@mega-nerd.com>2012-01-31 21:06:21 +1100
commit7b0d8f1027d743ddd04326b6b6996ba1f4157dd1 (patch)
tree2ef91253e94147e2491cde5c1927676031bad568 /test
parentf3d4fb27e10365e43f710d6ddb1223d74757f8da (diff)
downloadflac-7b0d8f1027d743ddd04326b6b6996ba1f4157dd1.tar.gz
Run all tests from one script which bails on the first failure.
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.am5
-rwxr-xr-xtest/test_wrapper.sh11
2 files changed, 15 insertions, 1 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index 8e18e721..1a8d8cbc 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -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
index 00000000..3832a922
--- /dev/null
+++ b/test/test_wrapper.sh
@@ -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