X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2FMakefile.am;h=9fd13005a2bcfee426a17f7271775b4181aedbf7;hb=cc22de985fbd6c192a021063fc3be165dd6fa5c0;hp=e1c39bd3dc3c87d7dfc921fbdf6bb58339cf2b0f;hpb=6e0ca3c2c2afedf4a944cec63a6a566f7014c93f;p=lttng-tools.git diff --git a/tests/Makefile.am b/tests/Makefile.am index e1c39bd3d..9fd13005a 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,3 +1,33 @@ -SUBDIRS = . ltt-sessiond +# SPDX-License-Identifier: GPL-2.0-only -dist_noinst_SCRIPTS = runall.sh +SUBDIRS = + +if BUILD_TESTS +SUBDIRS += . utils unit regression stress destructive perf +if HAVE_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 perf_regression +EXTRA_DIST = run.sh fast_regression long_regression root_regression README root_destructive_tests perf_regression + +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