From cf7f4f614b1f5daed7bffb34f551a39d61784497 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Wed, 19 Sep 2007 08:56:29 -0300 Subject: [PATCH] Make test generation generic. This switches on regression testing for the musicxml directory. --- GNUmakefile.in | 22 ++++++---------------- make/lysdoc-targets.make | 15 +++++++++++++++ 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index 5e49a0c803..b0c8d23b76 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -213,25 +213,14 @@ $(config_h): config.hh.in # testing RESULT_DIR=$(top-build-dir)/out/test-results -OUT_TEST=test test: - rm -f input/regression/out-$(OUT_TEST)/collated-files.html @echo -en 'For tracking crashes: use\n\n\t' @echo 'grep sourcefilename `grep -L systems.texi input/regression/out-test/*log|sed s/log/ly/g`' @echo -#FIXME: using out-test and out-$(OUT_TEST) alongside eachother? - mkdir -p input/regression/out-test - if test -d .git ; then \ - echo -e 'HEAD is:\n\n\t' ; \ - git log --max-count=1 --pretty=oneline ;\ - echo -e '\n\n\n' ; \ - git diff ; \ - fi > input/regression/out-test/tree.gittxt - $(MAKE) -C input/regression/ out=$(OUT_TEST) LILYPOND_BOOK_LILYPOND_FLAGS="-dbackend=eps --formats=ps $(LILYPOND_JOBS) -dseparate-log-files -dinclude-eps-fonts -dgs-load-lily-fonts --header=texidoc -I $(top-src-dir)/input/manual -ddump-profile -dcheck-internal-types -ddump-signatures -danti-alias-factor=1" LILYPOND_BOOK_VERBOSE= out-$(OUT_TEST)/collated-files.html - @find input ly -name '*.ly' -print |grep -v 'out.*/' | xargs grep '\\version' -L | grep -v "standard input" |sed 's/^/**** Missing version: /g' - rsync -L -a --exclude 'out-*' --exclude 'out' --exclude mf --exclude source --exclude mf $(outdir)/share input/regression/out-test/ + $(MAKE) -C input/regression/ out=test local-test + $(MAKE) -C input/regression/musicxml out=test local-test test-baseline: @if test -d .git ; then \ @@ -239,13 +228,14 @@ test-baseline: fi $(MAKE) $(MAKE) test - rm -rf input/regression/out-test-baseline - mv input/regression/out-test input/regression/out-test-baseline + $(MAKE) -C input/regression/ local-test-baseline + $(MAKE) -C input/regression/musicxml local-test-baseline local-check: test rm -rf $(RESULT_DIR) mkdir -p $(RESULT_DIR) $(PYTHON) $(buildscript-dir)/output-distance.py --create-images --output-dir $(RESULT_DIR) input/regression/out-test-baseline input/regression/out-test/ + @find input ly -name '*.ly' -print |grep -v 'out.*/' | xargs grep '\\version' -L | grep -v "standard input" |sed 's/^/**** Missing version: /g' test-redo: @@ -256,4 +246,4 @@ test-redo: $(MAKE) check test-clean: - $(MAKE) -C input/regression/ out=$(OUT_TEST) clean + $(MAKE) -C input/regression/ out=test clean diff --git a/make/lysdoc-targets.make b/make/lysdoc-targets.make index cf5a9d2e67..28b84beee2 100644 --- a/make/lysdoc-targets.make +++ b/make/lysdoc-targets.make @@ -4,3 +4,18 @@ local-WWW: $(outdir)/collated-files.html $(outdir)/collated-files.pdf #.PRECIOUS: $(outdir)/$(NAME).texi +local-test-baseline: + rm -rf $(outdir)-baseline + mv $(outdir) $(outdir)-baseline + +local-test: + rm -f $(outdir)/collated-files.html + if test -d $(top-src-dir)/.git ; then \ + echo -e 'HEAD is:\n\n\t' ; \ + git log --max-count=1 --pretty=oneline ;\ + echo -e '\n\n\n' ; \ + git diff ; \ + fi > $(outdir)/tree.gittxt + $(MAKE) LILYPOND_BOOK_LILYPOND_FLAGS="-dbackend=eps --formats=ps $(LILYPOND_JOBS) -dseparate-log-files -dinclude-eps-fonts -dgs-load-lily-fonts --header=texidoc -I $(top-src-dir)/input/manual -ddump-profile -dcheck-internal-types -ddump-signatures -danti-alias-factor=1" LILYPOND_BOOK_VERBOSE= $(outdir)/collated-files.html + rsync -L -a --exclude 'out-*' --exclude 'out' --exclude mf --exclude source --exclude mf $(top-build-dir)/out/share $(outdir) + -- 2.39.2