| 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
| 3 | SUBDIRS = |
| 4 | DIST_SUBDIRS = utils unit regression stress destructive perf |
| 5 | |
| 6 | if BUILD_TESTS |
| 7 | SUBDIRS += . utils unit regression stress destructive perf |
| 8 | if HAVE_PGREP |
| 9 | check-am: |
| 10 | $(top_srcdir)/tests/utils/warn_processes.sh $(PGREP) |
| 11 | endif |
| 12 | else |
| 13 | @echo "=========================================" |
| 14 | @echo "WARNING: Tests were disabled at configure" |
| 15 | @echo "=========================================" |
| 16 | endif |
| 17 | |
| 18 | |
| 19 | dist_noinst_SCRIPTS = run.sh fast_regression long_regression root_regression root_destructive_tests perf_regression |
| 20 | EXTRA_DIST = run.sh fast_regression long_regression root_regression README root_destructive_tests perf_regression |
| 21 | |
| 22 | all-local: |
| 23 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ |
| 24 | for script in $(EXTRA_DIST); do \ |
| 25 | cp -f $(srcdir)/$$script $(builddir); \ |
| 26 | done; \ |
| 27 | fi |
| 28 | |
| 29 | clean-local: |
| 30 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ |
| 31 | for script in $(EXTRA_DIST); do \ |
| 32 | rm -f $(builddir)/$$script; \ |
| 33 | done; \ |
| 34 | fi |