EXTRA_DIST =
INSTALL_DIRS =
INSTALL_EXEC_HOOKS =
+TESTS =
UNINSTALL_EXEC_HOOKS =
noinst_DATA =
network_PROGRAMS =
src/networkd/daemon-bus.h \
src/networkd/devmon.c \
src/networkd/devmon.h \
+ src/networkd/json.h \
src/networkd/link.c \
src/networkd/link.h \
src/networkd/links.c \
dist_check_DATA = \
test/constants.sh \
- test/test-functions
+ test/test-functions \
+ test/networkd/test.sh
dist_check_SCRIPTS = \
- $(TESTS)
-
-TESTS = \
test/load-library \
test/functions/ip/ip_detect_protocol \
test/functions/ip/ip_get_prefix \
test/functions/ip/ip_protocol_is_supported \
test/functions/ip/ip_split_prefix
+TESTS += $(dist_check_SCRIPTS)
+
+TEST_EXTENSIONS = .t
+
+NETWORKD_TESTS = \
+ test/networkd/00_launch.t \
+ test/networkd/01_dummy.t
+
+TESTS += $(NETWORKD_TESTS)
+
+EXTRA_DIST += \
+ test/networkd/test.sh \
+ $(NETWORKD_TESTS)
+
+# Run all networkd tests in their own namespaces
+T_LOG_COMPILER = unshare --net --ipc --uts --user --cgroup --time --pid --fork \
+ --map-root-user --keep-caps $(SHELL) test/networkd/test.sh
+
# - NITSI tests ----------------------------------------------------------------
# Files for the virtual environment