summaryrefslogtreecommitdiffstats
path: root/testsuite/Makefile.am
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-05-24 00:41:06 -0400
committerwenji <wjhuang@dhcp-beijing-cdc-10-182-120-233.cn.oracle.com>2008-05-25 21:33:35 -0400
commit50d0c99297294ab8fb593eb1c121495c5d7f01ad (patch)
tree27b597e867baf9b2ad3bc4f8c9792c2589322963 /testsuite/Makefile.am
parentd110e8c62c0555ea6713516ea3bf7b38a9e0ed86 (diff)
downloadsystemtap-steved-50d0c99297294ab8fb593eb1c121495c5d7f01ad.tar.gz
systemtap-steved-50d0c99297294ab8fb593eb1c121495c5d7f01ad.tar.xz
systemtap-steved-50d0c99297294ab8fb593eb1c121495c5d7f01ad.zip
PR6550: --enable-dejazilla: optional automatic test result reporting
Diffstat (limited to 'testsuite/Makefile.am')
-rw-r--r--testsuite/Makefile.am18
1 files changed, 14 insertions, 4 deletions
diff --git a/testsuite/Makefile.am b/testsuite/Makefile.am
index edaaff3c..aedfe447 100644
--- a/testsuite/Makefile.am
+++ b/testsuite/Makefile.am
@@ -3,16 +3,24 @@
AUTOMAKE_OPTIONS = dejagnu
-# The stap symlink is to enable "#! stap" test scripts.
all-local:
@echo Run \"make check\" or \"make installcheck\".
+ @if test -n "$(DEJAZILLA)"; then echo Test results will be emailed to $(DEJAZILLA); fi
clean-local:
-rm -f ./stap site.exp systemtap.sum systemtap.log
-rm -rf .systemtap .cache_test 2>/dev/null
-installcheck-local: clean site.exp
- $(MAKE) AM_RUNTESTFLAGS="--tool_opts install" check-DEJAGNU
+DEJAZILLA=@dejazilla@
+
+# automake's dejagnu library already runs check-DEJAGNU before check-local
+check-local:
+ if test -n "$(DEJAZILLA)"; then mail $(DEJAZILLA) < systemtap.sum; fi
+
+# but installcheck does not follow an implicit check-DEJAGNU, go figure
+installcheck: clean site.exp
+ -$(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU RUNTESTFLAGS="$(RUNTESTFLAGS) --tool_opts install"
+ if test -n "$(DEJAZILLA)"; then mail $(DEJAZILLA) < systemtap.sum; fi
SRCDIR = $(shell cd $(srcdir); pwd)
@@ -30,4 +38,6 @@ LD_LIBRARY_PATH=$(DESTDIR)$(libdir)/systemtap
CRASH_LIBDIR=$(DESTDIR)$(libdir)/systemtap
SYSTEMTAP_PATH=$(DESTDIR)$(bindir)
-RUNTEST="env SYSTEMTAP_RUNTIME=$(SYSTEMTAP_RUNTIME) SYSTEMTAP_TAPSET=$(SYSTEMTAP_TAPSET) LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) CRASH_LIBDIR=$(CRASH_LIBDIR) PATH=$(SYSTEMTAP_PATH):$$PATH runtest"
+RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir
+EXPECT = expect
+RUNTEST="env SYSTEMTAP_RUNTIME=$(SYSTEMTAP_RUNTIME) SYSTEMTAP_TAPSET=$(SYSTEMTAP_TAPSET) LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) CRASH_LIBDIR=$(CRASH_LIBDIR) PATH=$(SYSTEMTAP_PATH):$$PATH $(srcdir)/execrc runtest"