[beast: 18/19] TESTS: filecheck: run multiple BSE loading tests in parallel
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 18/19] TESTS: filecheck: run multiple BSE loading tests in parallel
- Date: Sun, 13 Sep 2015 20:27:37 +0000 (UTC)
commit 4005cd0b5d4629612a7d87976d2ca20e9431eade
Author: Tim Janik <timj gnu org>
Date: Wed Sep 9 17:45:26 2015 +0200
TESTS: filecheck: run multiple BSE loading tests in parallel
tests/filecheck/Makefile.am | 65 ++++++++++++++++++++-----------------------
1 files changed, 30 insertions(+), 35 deletions(-)
---
diff --git a/tests/filecheck/Makefile.am b/tests/filecheck/Makefile.am
index 3069f02..ae6d2ca 100644
--- a/tests/filecheck/Makefile.am
+++ b/tests/filecheck/Makefile.am
@@ -24,6 +24,36 @@ distfiles.list: Makefile
test -e distfiles.list
test -e $(DISTFILE_LIST_NAME)
cd $(top_builddir) && make distfile-list DISTFILE_LIST=$(DISTFILE_LIST_NAME)
+CLEANFILES += distfiles.list
+
+SKIP_PATTERN = "tests/latency/midi-latency.bse"
+checklist-%-test: checklists
+ $(Q) $(if $(findstring 1, $(V)), set -x, :) ; \
+ for tfile in `cat $(@F:-test=)` ; do \
+ file="$(top_srcdir)/$$tfile" ; \
+ if echo "$$tfile" | egrep -q $(SKIP_PATTERN) ; then \
+ echo "SKIP - Loading: $$tfile" ; \
+ else \
+ $(CHECK_LOAD) "$$file" 2>&1 | tee $(@F).log ; \
+ test ! -s $(@F).log || exit 1 \
+ && echo "OK - Loading: $$tfile" ; \
+ fi ; done ; rm -f $(@F).log $(@F:-test=)
+checklists: distfiles.list # generate checklist-a .. checklist-e
+ $(Q) grep '\.bse$$' distfiles.list > checklist
+ $(Q) split -n l/5 -a 1 checklist checklist-
+ $(Q) rm -f checklist
+check-local: checklist-a-test checklist-b-test checklist-c-test checklist-d-test checklist-e-test
+plugin_globs = '$(top_builddir)/plugins/.libs/*.so:$(top_builddir)/plugins/freeverb/.libs/*.so'
+samplepath = '$(top_srcdir)/tests/audio:$(top_srcdir)/library/samples'
+CHECK_LOAD = $(strip $(top_builddir)/bse/bsetool \
+ $(if $(findstring 1, $(V)),, --quiet) \
+ check-load \
+ --bse-pcm-driver null=nosleep \
+ --bse-midi-driver null \
+ --bse-rcfile "/dev/null" \
+ --bse-override-plugin-globs '$(plugin_globs)' \
+ --bse-override-sample-path $(samplepath) \
+)
.PHONY: bse-version-check
bse-version-check: distfiles.list
@@ -41,38 +71,3 @@ bse-version-check: distfiles.list
&& echo $$MESSAGETEXT | sed 's/./=/g'
check: # bse-version-check
-.PHONY: bse-loading-check
-SKIP_PATTERN = "tests/latency/midi-latency.bse"
-bse-loading-check: distfiles.list
- @rm -f warnings.tmp
- for tfile in `grep '\.bse$$' distfiles.list` ; do \
- file="$(top_srcdir)/$$tfile" ; \
- if echo "$$tfile" | egrep -q $(SKIP_PATTERN) ; then \
- echo "-Skipping project: $$file" ; \
- else \
- echo "Test load project: $$file" ; \
- $(CHECK_LOAD) "$$file" 2>&1 | \
- tee warnings.tmp ; \
- test ! -s "warnings.tmp" || exit 1 ; \
- fi ; \
- done
- @rm -f warnings.tmp
- @MESSAGETEXT="All tested BSE files passed loading test" \
- && echo $$MESSAGETEXT | sed 's/./=/g' \
- && echo $$MESSAGETEXT \
- && echo $$MESSAGETEXT | sed 's/./=/g'
-check-local: bse-loading-check
-
-CLEANFILES += distfiles.list warnings.tmp
-plugin_globs = '$(top_builddir)/plugins/.libs/*.so:$(top_builddir)/plugins/freeverb/.libs/*.so'
-samplepath = '$(top_srcdir)/tests/audio:$(top_srcdir)/library/samples'
-CHECK_LOAD = $(strip \
- $(top_builddir)/bse/bsetool \
- $(if $(findstring 1, $(V)),, --quiet) \
- check-load \
- --bse-pcm-driver null=nosleep \
- --bse-midi-driver null \
- --bse-rcfile "/dev/null" \
- --bse-override-plugin-globs '$(plugin_globs)' \
- --bse-override-sample-path $(samplepath) \
-)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]