summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: 94ba34a6fd7c0b38c62225b5d9773ddec2431213 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
SUBDIRS = conform

if UNIT_TESTS
SUBDIRS += unit
endif

SUBDIRS += micro-perf data

DIST_SUBDIRS = conform unit micro-perf data

EXTRA_DIST = README test-launcher.sh run-tests.sh

if UNIT_TESTS
test conform:
	( cd ./conform && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $$?
	( cd ./unit && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $$?
else
test conform:
	( cd ./conform && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $$?
endif

.PHONY: test conform

# run make test as part of make check
check-local: test

if ENABLE_INSTALLED_TESTS
insttestdir = $(libexecdir)/installed-tests/$(PACKAGE)
insttest_SCRIPTS = run-tests.sh
insttest_DATA = config.env
endif