diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2010-05-26 22:30:55 -0700 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2010-05-26 22:39:15 -0700 |
commit | 7e95ac778d0512a3940bf77daa50263e10d408f1 (patch) | |
tree | 42627f166f1391b678a18c25aab99815196dfd9a /xts5 | |
parent | 707ed29d22cd973f07633a0ed82de10075d50edb (diff) |
xts: Introduce check.sh wrapper script for in-tree testing
Having all the commands and environment variable overrides for in-tree
testing in the Makefile was nice, but a wrapper script means you can do
in-tree testing with or without the "make check" machinery.
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
Diffstat (limited to 'xts5')
-rw-r--r-- | xts5/Makefile.am | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/xts5/Makefile.am b/xts5/Makefile.am index 5249940c..f69649c0 100644 --- a/xts5/Makefile.am +++ b/xts5/Makefile.am @@ -26,29 +26,11 @@ bin/xts-config: bin/xts-config.in bin/xts-run: bin/xts-run.in $(AM_V_GEN)$(EDIT) < $< > $@ -# Setup for testing -TCC = $(top_builddir)/src/tet3/tcc/tcc$(EXEEXT) -run_tcc = TET_ROOT='$(top_srcdir)' $(TCC) -e -a '$(abs_builddir)' \ - -x tetexec.cfg -report = $(builddir)/src/bin/reports/xts-report$(EXEEXT) -d2 -scenario = +# Config file generation for in-tree testing XTS_CONFIG = TET_ROOT='$(top_srcdir)' XSET='$(XSET)' XDPYINFO='$(XDPYINFO)' \ $(PERL) -p $(srcdir)/bin/xts-config - tetexec.cfg: tetexec.cfg.in $(srcdir)/bin/xts-config $(AM_V_GEN)$(XTS_CONFIG) < $< > $@.tmp && mv -f $@.tmp $@ || rm -f $@.tmp -check-local: tetexec.cfg - @outdir="$(top_builddir)/results/`date +%F-%T`"; \ - echo $(run_tcc) -i "$$outdir" xts5 $(scenario); \ - $(run_tcc) -i "$$outdir" xts5 $(scenario); \ - ret=$$?; \ - echo $(report) -f "$$outdir/journal" ">" "$$outdir/summary"; \ - $(report) -f "$$outdir/journal" > "$$outdir/summary"; \ - exit $$ret - -# Helpful pattern target for testing subsets (test-Xopen, etc.) -test-%: - @$(MAKE) $(AM_MAKEFLAGS) check scenario='$*' # Store results in xts5/results/YYYY-mm-dd-HH:mm.xzy logfile: |