Commit | Line | Data |
---|---|---|
b848736e MD |
1 | # SPDX-License-Identifier: MIT |
2 | # | |
544cdc88 | 3 | # Copyright (C) 2020 Michael Jeanson <mjeanson@efficios.com> |
b848736e MD |
4 | # |
5 | ||
544cdc88 | 6 | AM_CFLAGS += -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_srcdir)/tests/utils |
b848736e | 7 | |
544cdc88 MJ |
8 | SUBDIRS = utils |
9 | ||
10 | TEST_EXTENSIONS = .tap | |
11 | TAP_LOG_DRIVER_FLAGS = --merge --comments | |
12 | TAP_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' \ | |
13 | RSEQ_TESTS_SRCDIR='$(abs_top_srcdir)/tests' \ | |
14 | RSEQ_TESTS_BUILDDIR='$(abs_top_builddir)/tests' \ | |
15 | $(SHELL) $(srcdir)/utils/tap-driver.sh | |
16 | ||
17 | noinst_PROGRAMS = basic_percpu_ops_test.tap basic_test.tap param_test \ | |
31b44ba2 | 18 | param_test_benchmark param_test_compare_twice |
544cdc88 | 19 | dist_noinst_SCRIPTS = run_param_test.tap |
b848736e | 20 | |
544cdc88 MJ |
21 | basic_percpu_ops_test_tap_SOURCES = basic_percpu_ops_test.c |
22 | basic_percpu_ops_test_tap_LDADD = $(top_builddir)/src/librseq.la $(top_builddir)/tests/utils/libtap.la | |
5714f08d | 23 | |
544cdc88 MJ |
24 | basic_test_tap_SOURCES = basic_test.c |
25 | basic_test_tap_LDADD = $(top_builddir)/src/librseq.la $(top_builddir)/tests/utils/libtap.la | |
93da3184 | 26 | |
31b44ba2 MD |
27 | param_test_SOURCES = param_test.c |
28 | param_test_LDADD = $(top_builddir)/src/librseq.la | |
29 | ||
30 | param_test_benchmark_SOURCES = param_test.c | |
31 | param_test_benchmark_CPPFLAGS = -DBENCHMARK | |
32 | param_test_benchmark_LDADD = $(top_builddir)/src/librseq.la | |
33 | ||
34 | param_test_compare_twice_SOURCES = param_test.c | |
35 | param_test_compare_twice_CPPFLAGS = -DRSEQ_COMPARE_TWICE | |
36 | param_test_compare_twice_LDADD = $(top_builddir)/src/librseq.la | |
37 | ||
544cdc88 | 38 | TESTS = basic_percpu_ops_test.tap basic_test.tap run_param_test.tap |