shithub: libsamplerate

Download patch

ref: 63acb184cc32874e3f3b92cddbeef298251e57c1
parent: 140ffd91fd14ba4843ba14169dd1d34ff89f53a2
author: David Seifert <soap@gentoo.org>
date: Sat Jun 10 11:48:00 EDT 2017

Use parallel test harness

* Using Automake's parallel test harness is just
  so much faster than running tests serially.

--- a/.gitignore
+++ b/.gitignore
@@ -49,3 +49,5 @@
 tests/*_test
 tests/benchmark
 tests/src-evaluate
+tests/*.log
+tests/*.trs
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -3,7 +3,7 @@
 
 bin_PROGRAMS = sndfile-resample
 
-noinst_PROGRAMS = varispeed-play timewarp-file
+check_PROGRAMS = varispeed-play timewarp-file
 
 SAMPLERATEDIR =../src
 INCLUDES = -I$(srcdir)/$(SAMPLERATEDIR) @OS_SPECIFIC_INCLUDES@
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,8 +1,21 @@
-noinst_PROGRAMS = misc_test termination_test simple_test callback_test \
+check_PROGRAMS = misc_test termination_test simple_test callback_test \
 					reset_test multi_channel_test snr_bw_test \
 					float_short_test varispeed_test callback_hang_test \
 					src-evaluate throughput_test multichan_throughput_test \
 					downsample_test
+TESTS = \
+	misc_test \
+	termination_test \
+	callback_hang_test \
+	downsample_test \
+	simple_test \
+	callback_test \
+	reset_test \
+	multi_channel_test \
+	varispeed_test \
+	float_short_test \
+	snr_bw_test \
+	throughput_test
 
 SAMPLRATEDIR =../src
 INCLUDES = -I$(srcdir)/$(SAMPLRATEDIR)
@@ -60,25 +73,3 @@
 src_evaluate_SOURCES = src-evaluate.c calc_snr.c util.c
 src_evaluate_CFLAGS = @SNDFILE_CFLAGS@ @FFTW3_CFLAGS@
 src_evaluate_LDADD = $(SNDFILE_LIBS) $(FFTW3_LIBS)
-
-#===============================================================================
-
-check: $(noinst_PROGRAMS)
-	date
-	uname -a
-	./misc_test
-	./termination_test
-	./callback_hang_test
-	./downsample_test
-	./simple_test
-	./callback_test
-	./reset_test
-	./multi_channel_test
-	./varispeed_test
-	./float_short_test
-	./snr_bw_test
-	./throughput_test
-	@echo "-----------------------------------------------------------------"
-	@echo "  ${PACKAGE}-${VERSION} passed all tests."
-	@echo "-----------------------------------------------------------------"
-