Commit 17a1bafc authored by Evan Hunt's avatar Evan Hunt Committed by Ondřej Surý

Restore behaviour of "make test" and "make unit"

Add recursive "test" and "unit" rules, which execute "make check"
in specific directories - "make test" runs the system tests, and
"make unit" runs the unit tests.
parent 7fe5f670
Pipeline #40232 canceled with stages
in 16 minutes and 28 seconds
......@@ -320,7 +320,7 @@ stages:
before_script:
- *setup_softhsm
script:
- cd lib && make -j${TEST_PARALLEL_JOBS:-1} -k check V=1
- make -j${TEST_PARALLEL_JOBS:-1} -k unit V=1
.unit_test: &unit_test_job
<<: *unit_test_common
......
......@@ -176,3 +176,5 @@ $(TESTS): run.sh
clean-local:
-rm -f get_ports.state get_ports.lock
test-local: check
......@@ -58,6 +58,7 @@ AC_DEFINE([PACKAGE_BUILDER], ["make"], [make or Visual Studio])
AC_CONFIG_SRCDIR([bin/named/main.c])
AM_INIT_AUTOMAKE([foreign subdir-objects dist-xz -Wall -Werror])
AM_SILENT_RULES([yes])
AM_EXTRA_RECURSIVE_TARGETS([test unit])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
......
......@@ -106,3 +106,5 @@ dst_test_CPPFLAGS = \
rsa_test_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(OPENSSL_CFLAGS)
unit-local: check
......@@ -13,3 +13,5 @@ check_PROGRAMS = \
resconf_test
TESTS = $(check_PROGRAMS)
unit-local: check
......@@ -63,3 +63,5 @@ md_test_LDADD = \
random_test_LDADD = \
$(LDADD) \
-lm
unit-local: check
......@@ -13,3 +13,5 @@ check_PROGRAMS = \
result_test
TESTS = $(check_PROGRAMS)
unit-local: check
......@@ -15,3 +15,5 @@ check_PROGRAMS = \
parser_test
TESTS = $(check_PROGRAMS)
unit-local: check
......@@ -43,3 +43,5 @@ query_test_LDFLAGS = \
-Wl,--wrap=isc_nmhandle_unref
endif
unit-local: check
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment