X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2FMakefile.am;h=5927f59eff6a2edee32871a901277661ea9c2f10;hb=1a4a1345c93d716d50cf10e4717f4cc895e313c6;hp=1038535e77d014fc0d9ebd9b4e5699354c269a27;hpb=90219914d718a74f9ce8eaa1a1efd2c4ad6d2384;p=babeltrace.git diff --git a/tests/Makefile.am b/tests/Makefile.am index 1038535e..5927f59e 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,7 +1,34 @@ -AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include +SUBDIRS = utils bin lib -noinst_PROGRAMS = test-bitfield test-dummytrace +EXTRA_DIST = $(srcdir)/ctf-traces/** tests +if ENABLE_DEBUGINFO +EXTRA_DIST += $(srcdir)/debuginfo-data/** tests_debuginfo +endif -test_bitfield_SOURCES = test-bitfield.c +SCRIPT_LIST = run.sh -test_dummytrace_SOURCES = test-dummytrace.c +dist_noinst_SCRIPTS = $(SCRIPT_LIST) + +all-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(SCRIPT_LIST); do \ + cp -f $(srcdir)/$$script $(builddir); \ + done; \ + fi + +clean-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(SCRIPT_LIST); do \ + rm -f $(builddir)/$$script; \ + done; \ + fi + +TEMPLIST := $(shell mktemp -u) +check-am: + @cat $(srcdir)/tests > $(TEMPLIST) +if ENABLE_DEBUGINFO + @echo '' >> $(TEMPLIST) + @cat $(srcdir)/tests_debuginfo >> $(TEMPLIST) +endif + ./run.sh $(TEMPLIST) + rm $(TEMPLIST)