| 1 |
# Makefile.am --- automake input file for systemtap testsuite |
| 2 |
## process this file with automake to produce Makefile.in |
| 3 |
|
| 4 |
AUTOMAKE_OPTIONS = dejagnu no-dist subdir-objects |
| 5 |
|
| 6 |
all-local: |
| 7 |
@echo Run \"make check\" or \"make installcheck\". |
| 8 |
|
| 9 |
clean-local: |
| 10 |
-rm -f ./stap site.exp systemtap.sum systemtap.log |
| 11 |
-rm -f systemtap.temp* |
| 12 |
-rm -rf .systemtap* .cache_test* 2>/dev/null |
| 13 |
-rm -f ./stap_*.ko |
| 14 |
-rm -f flightrec* |
| 15 |
-rm -f *.so |
| 16 |
|
| 17 |
TESTAPPS=@enable_testapps@ |
| 18 |
|
| 19 |
# but installcheck does not follow an implicit check-DEJAGNU, go figure |
| 20 |
installcheck: site.exp |
| 21 |
$(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU RUNTESTFLAGS="$(RUNTESTFLAGS) --tool_opts install" |
| 22 |
|
| 23 |
|
| 24 |
# There are a few tests known to be slow. We run them right from the beginning |
| 25 |
# to try to lessen the overall time taken by the test suite -- if one of these |
| 26 |
# tests happens to be run late, it will cause the overall time to increase. |
| 27 |
all_slow_tests = systemtap.examples/check.exp systemtap.pass1-4/buildok.exp \ |
| 28 |
systemtap.base/listing_mode.exp systemtap.syscall/nd_syscall.exp \ |
| 29 |
systemtap.unprivileged/unprivileged_myproc.exp systemtap.syscall/syscall.exp \ |
| 30 |
systemtap.base/sdt_misc.exp systemtap.pass1-4/parseok.exp \ |
| 31 |
systemtap.base/listing_mode_sanity.exp systemtap.pass1-4/parse-semok.exp \ |
| 32 |
systemtap.pass1-4/semok.exp systemtap.unprivileged/unprivileged_probes.exp \ |
| 33 |
systemtap.pass1-4/buildok-interactive.exp \ |
| 34 |
systemtap.onthefly/uprobes_onthefly.exp \ |
| 35 |
systemtap.onthefly/kprobes_onthefly.exp systemtap.base/sdt.exp \ |
| 36 |
systemtap.onthefly/hrtimer_onthefly.exp \ |
| 37 |
systemtap.onthefly/tracepoint_onthefly.exp systemtap.exelib/exelib.exp \ |
| 38 |
systemtap.pass1-4/semko.exp systemtap.pass1-4/parseko.exp \ |
| 39 |
systemtap.base/rlimit.exp systemtap.base/tracepoints.exp \ |
| 40 |
systemtap.base/systemtap-service.exp systemtap.maps/map_hash.exp \ |
| 41 |
systemtap.base/stmt_rel.exp systemtap.base/library.exp |
| 42 |
slow_tests = $(filter $(all_tests),$(all_slow_tests)) |
| 43 |
|
| 44 |
regular_tests := $(filter-out $(serial_tests) $(slow_tests) ,$(all_tests)) |
| 45 |
|
| 46 |
REGULAR_TEST_TARGETS := $(addprefix installcheck/,$(slow_tests) $(regular_tests)) |
| 47 |
|
| 48 |
|
| 49 |
# $(srcdir)/These values point the test suite to the install tree, and |
| 50 |
# are overridden by "make check" from full source/build tree |
| 51 |
SYSTEMTAP_RUNTIME=$(DESTDIR)$(pkgdatadir)/runtime |
| 52 |
SYSTEMTAP_TAPSET=$(DESTDIR)$(pkgdatadir)/tapset |
| 53 |
CRASH_LIBDIR=$(DESTDIR)$(libdir)/systemtap |
| 54 |
SYSTEMTAP_PATH=$(DESTDIR)$(bindir) |
| 55 |
SYSTEMTAP_SPATH=$(DESTDIR)$(sbindir) |
| 56 |
SYSTEMTAP_INCLUDES=$(DESTDIR)$(includedir) |
| 57 |
|
| 58 |
# These values get passed down from the main configure. |
| 59 |
PYTHON=@python@ |
| 60 |
PYEXECDIR=@pyexecdir@ |
| 61 |
PYTHON3=@python3@ |
| 62 |
PY3EXECDIR=@py3execdir@ |
| 63 |
SYSCONFDIR=@sysconfdir@ |
| 64 |
|
| 65 |
RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $(shell readlink -f $(srcdir)) |
| 66 |
EXPECT = expect |
| 67 |
RUNTEST= env --unset=DEBUGINFOD_VERBOSE --unset=DEBUGINFOD_PROGRESS XDG_DATA_DIRS= SYSTEMTAP_SYNC=1 LANG=C SYSTEMTAP_TESTREMOTES=$(TESTREMOTES) SYSTEMTAP_TESTAPPS=$(TESTAPPS) SYSTEMTAP_RUNTIME=$(SYSTEMTAP_RUNTIME) SYSTEMTAP_TAPSET=$(SYSTEMTAP_TAPSET) CRASH_LIBDIR=$(CRASH_LIBDIR) PATH=$(SYSTEMTAP_PATH):$(SYSTEMTAP_SPATH):$$PATH SYSTEMTAP_PATH=$(SYSTEMTAP_PATH) SYSTEMTAP_SPATH=$(SYSTEMTAP_SPATH) SYSTEMTAP_INCLUDES=$(SYSTEMTAP_INCLUDES) PKGLIBDIR=$(pkglibexecdir) PYTHON=$(PYTHON) PYEXECDIR=$(PYEXECDIR) PYTHON3=$(PYTHON3) PY3EXECDIR=$(PY3EXECDIR) SYSCONFDIR=$(SYSCONFDIR) runtest |