X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2FMakefile.am;h=3600e99d87786920764a65c4d84b839a826a41cc;hb=4f0b90ee4fe269c4a791cf6dd8bf8c05b779cc63;hp=2a4309e01eb6431c460058bddf7d505754345af4;hpb=9ac429ef32142eaecfec2d1a44569464c4f8f721;p=lttng-tools.git diff --git a/tests/Makefile.am b/tests/Makefile.am index 2a4309e01..3600e99d8 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1 +1,32 @@ -SUBDIRS = . regression +SUBDIRS = +DIST_SUBDIRS = utils regression unit stress destructive + +if BUILD_TESTS +SUBDIRS += . utils regression unit stress destructive +if HAS_PGREP +check-am: + $(top_srcdir)/tests/utils/warn_processes.sh $(PGREP) +endif +else + @echo "=========================================" + @echo "WARNING: Tests were disabled at configure" + @echo "=========================================" +endif + + +dist_noinst_SCRIPTS = run.sh fast_regression long_regression root_regression root_destructive_tests +EXTRA_DIST = run.sh fast_regression long_regression root_regression README root_destructive_tests + +all-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(EXTRA_DIST); do \ + cp -f $(srcdir)/$$script $(builddir); \ + done; \ + fi + +clean-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(EXTRA_DIST); do \ + rm -f $(builddir)/$$script; \ + done; \ + fi