1 # Makefile.am --- automake input file for systemtap testsuite
2 ## process this file with automake to produce Makefile.in
4 AUTOMAKE_OPTIONS = dejagnu no-dist
7 @echo Run \"make check\" or \"make installcheck\".
8 @if test -n "$(DEJAZILLA)"; then echo Test results will be emailed to $(DEJAZILLA); fi
11 -rm -f ./stap site.exp systemtap.sum systemtap.log
12 -rm -rf .systemtap* .cache_test* 2>/dev/null
19 TESTAPPS=@enable_testapps@
22 # automake's dejagnu library already runs check-DEJAGNU before check-local
23 # That's why we need to add "execrc" to $(RUNTEST) - to ensure that this
24 # subtarget gets run even if runtest per se exits with a failure.
26 if test -n "$(DEJAZILLA)"; then mail $(DEJAZILLA) < systemtap.sum; fi
28 # but installcheck does not follow an implicit check-DEJAGNU, go figure
29 installcheck: site.exp
30 -rmmod uprobes 2>/dev/null
31 -$(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU RUNTESTFLAGS="$(RUNTESTFLAGS) --tool_opts \'install $(TOOL_OPTS)\'"
32 if test -n "$(DEJAZILLA)"; then mail $(DEJAZILLA) < systemtap.sum; fi
34 # $(srcdir)/These values point the test suite to the install tree, and
35 # are overridden by "make check" from full source/build tree
36 SYSTEMTAP_RUNTIME=$(DESTDIR)$(pkgdatadir)/runtime
37 SYSTEMTAP_TAPSET=$(DESTDIR)$(pkgdatadir)/tapset
38 LD_LIBRARY_PATH=$(DESTDIR)$(libdir)/systemtap
39 CRASH_LIBDIR=$(DESTDIR)$(libdir)/systemtap
40 SYSTEMTAP_PATH=$(DESTDIR)$(bindir)
41 SYSTEMTAP_INCLUDES=$(DESTDIR)$(includedir)
43 RUNTESTDEFAULTFLAGS = --tool $$tool --tool_opts \'$(TOOL_OPTS)\' --srcdir $$srcdir
45 RUNTEST="env LANG=C SYSTEMTAP_TESTREMOTES=$(TESTREMOTES) SYSTEMTAP_TESTAPPS=$(TESTAPPS) SYSTEMTAP_RUNTIME=$(SYSTEMTAP_RUNTIME) SYSTEMTAP_TAPSET=$(SYSTEMTAP_TAPSET) LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) CRASH_LIBDIR=$(CRASH_LIBDIR) PATH=$(SYSTEMTAP_PATH):$$PATH SYSTEMTAP_PATH=$(SYSTEMTAP_PATH) SYSTEMTAP_INCLUDES=$(SYSTEMTAP_INCLUDES) PKGLIBDIR=$(pkglibexecdir) $(srcdir)/execrc runtest"