X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2FMakefile.am;h=5e3ee4623b760ee6cac6f216aeb77d9f7545f80e;hb=a24ac4d11a41674eaecce6036c6f52be25c07d7b;hp=76ed2b545dfe04decc58e919ffc60835c22b1087;hpb=0b8091d3f931437d2035cfa70549c5aa15b41aac;p=lttng-tools.git diff --git a/tests/Makefile.am b/tests/Makefile.am index 76ed2b545..5e3ee4623 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,3 +1,33 @@ -SUBDIRS = . +# 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 long_regression root_regression +EXTRA_DIST = run.sh long_regression root_regression README + +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