X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=tests%2FMakefile.am;h=56e93c115ab213f74943a59059ef30a457c0f7e5;hp=642dd983de46de4edf3a82c1bcfe73242ce6184c;hb=394fd13b86bfd96bfb4b607447e9aad24f5b1090;hpb=ac65e35509398c6f3f27b26e9309750a565e1cbd diff --git a/tests/Makefile.am b/tests/Makefile.am index 642dd983..56e93c11 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,5 +1,30 @@ -AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include +SUBDIRS = utils bin lib -noinst_PROGRAMS = test-bitfield +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 + +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 + +check-am: + ./run.sh $(srcdir)/tests +if ENABLE_DEBUGINFO + ./run.sh $(srcdir)/tests_debuginfo +endif