| 1 | SUBDIRS = |
| 2 | DIST_SUBDIRS = utils regression unit stress |
| 3 | |
| 4 | if BUILD_TESTS |
| 5 | SUBDIRS += utils regression unit stress |
| 6 | endif |
| 7 | |
| 8 | installcheck-am: |
| 9 | if BUILD_TESTS |
| 10 | if HAS_PGREP |
| 11 | ./utils/warn_lttng_processes.sh $(PGREP) |
| 12 | endif |
| 13 | ./run.sh unit_tests |
| 14 | ./run.sh fast_regression |
| 15 | if PYTHON_BINDING |
| 16 | ./run.sh with_bindings_regression |
| 17 | endif |
| 18 | else |
| 19 | @echo "=========================================" |
| 20 | @echo "WARNING: Tests were disabled at configure" |
| 21 | @echo "=========================================" |
| 22 | endif |
| 23 | |
| 24 | check-am: |
| 25 | if BUILD_TESTS |
| 26 | if HAS_PGREP |
| 27 | ./utils/warn_lttng_processes.sh $(PGREP) |
| 28 | endif |
| 29 | ./run.sh unit_tests |
| 30 | ./run.sh fast_regression |
| 31 | if PYTHON_BINDING |
| 32 | ./run.sh with_bindings_regression |
| 33 | endif |
| 34 | else |
| 35 | @echo "=========================================" |
| 36 | @echo "WARNING: Tests were disabled at configure" |
| 37 | @echo "=========================================" |
| 38 | endif |
| 39 | |
| 40 | dist_noinst_SCRIPTS = run.sh unit_tests fast_regression long_regression root_regression with_bindings_regression |
| 41 | EXTRA_DIST = run.sh unit_tests fast_regression long_regression root_regression with_bindings_regression README |
| 42 | |
| 43 | all-local: |
| 44 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ |
| 45 | for script in $(EXTRA_DIST); do \ |
| 46 | cp -f $(srcdir)/$$script $(builddir); \ |
| 47 | done; \ |
| 48 | fi |
| 49 | |
| 50 | clean-local: |
| 51 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ |
| 52 | for script in $(EXTRA_DIST); do \ |
| 53 | rm -f $(builddir)/$$script; \ |
| 54 | done; \ |
| 55 | fi |