| 1 | # SPDX-License-Identifier: LGPL-2.1-only |
| 2 | |
| 3 | SUBDIRS = utils unit compile benchmark regression |
| 4 | |
| 5 | LOG_DRIVER_FLAGS = --merge --comments |
| 6 | LOG_DRIVER = env AM_TAP_AWK='$(AWK)' \ |
| 7 | UST_TESTS_SRCDIR='$(abs_top_srcdir)/tests' \ |
| 8 | UST_TESTS_BUILDDIR='$(abs_top_builddir)/tests' \ |
| 9 | $(SHELL) $(srcdir)/utils/tap-driver.sh |
| 10 | |
| 11 | # Unit tests |
| 12 | |
| 13 | TESTS = \ |
| 14 | unit/libringbuffer/test_shm \ |
| 15 | unit/gcc-weak-hidden/test_gcc_weak_hidden \ |
| 16 | unit/libmsgpack/test_msgpack \ |
| 17 | unit/pthread_name/test_pthread_name \ |
| 18 | unit/snprintf/test_snprintf \ |
| 19 | unit/ust-elf/test_ust_elf \ |
| 20 | unit/ust-error/test_ust_error \ |
| 21 | unit/ust-utils/test_ust_utils |
| 22 | |
| 23 | if HAVE_CXX |
| 24 | TESTS += \ |
| 25 | unit/ust-utils/test_ust_utils_cxx |
| 26 | endif |
| 27 | |
| 28 | # Regression tests |
| 29 | |
| 30 | TESTS += \ |
| 31 | regression/abi0-conflict/test_abi0_conflict |
| 32 | |
| 33 | EXTRA_DIST = README |
| 34 | |
| 35 | check-loop: |
| 36 | while [ 0 ]; do \ |
| 37 | $(MAKE) $(AM_MAKEFLAGS) check; \ |
| 38 | if [ "$$?" != "0" ]; then \ |
| 39 | break; \ |
| 40 | fi \ |
| 41 | done |
| 42 | |
| 43 | .PHONY: check-loop |