From 102cc23034b595f6c02424f8a1ecb8b2df9f7aa0 Mon Sep 17 00:00:00 2001
From: Eric Garver <eric@garver.life>
Date: Fri, 12 Apr 2019 13:31:28 -0400
Subject: [PATCH 50/73] improvement: tests: Use AT_KEYWORDS for backends
This allows
# make check TESTSUITEFLAGS="-k nftables"
to test only the nftables backend.
(cherry picked from commit 98b3dab053c7b8c0dd9bb3b9e31eaba919f0c666)
(cherry picked from commit 675fb78d629e499a27ba7b3a4301e828a990099f)
---
src/tests/functions.at | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/tests/functions.at b/src/tests/functions.at
index 6cd4878a9f03..161c66bea961 100644
--- a/src/tests/functions.at
+++ b/src/tests/functions.at
@@ -60,6 +60,8 @@ m4_define([FWD_START_TEST], [
m4_ifdef([TESTING_FIREWALL_OFFLINE_CMD], [], [
m4_define_default([FIREWALL_BACKEND], [nftables])
+ AT_KEYWORDS(FIREWALL_BACKEND)
+
dnl don't unload modules or bother cleaning up, the namespace will be deleted
AT_CHECK([sed -i 's/^CleanupOnExit.*/CleanupOnExit=no/' ./firewalld.conf])
--
2.20.1