X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=tests%2FMakefile.am;h=56e93c115ab213f74943a59059ef30a457c0f7e5;hp=47891e90af0945d3accf10f7d3cd0fe1351af031;hb=c3a1997ea20bfa7023fa5034530b9bd7965a6561;hpb=71dd417a2b700c2315ef9919104572df1bc83f7a diff --git a/tests/Makefile.am b/tests/Makefile.am index 47891e90..56e93c11 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,12 +1,30 @@ -AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include +SUBDIRS = utils bin lib -SUBDIRS = lib +EXTRA_DIST = $(srcdir)/ctf-traces/** tests +if ENABLE_DEBUGINFO +EXTRA_DIST += $(srcdir)/debuginfo-data/** tests_debuginfo +endif -noinst_PROGRAMS = test-bitfield +SCRIPT_LIST = run.sh -test_bitfield_SOURCES = test-bitfield.c +dist_noinst_SCRIPTS = $(SCRIPT_LIST) -EXTRA_DIST = runall.sh ctf-traces/** +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: - ./runall.sh + ./run.sh $(srcdir)/tests +if ENABLE_DEBUGINFO + ./run.sh $(srcdir)/tests_debuginfo +endif