Blob Blame History Raw
From 0e6a3047de1f4e70926f71da3704cd41281ba91f Mon Sep 17 00:00:00 2001
From: Eric Garver <eric@garver.life>
Date: Tue, 14 May 2019 18:30:12 -0400
Subject: [PATCH 47/73] test: add macro IF_IPV6_SUPPORTED

(cherry picked from commit d569d7239f23f443ac4c5dce843481223481ec96)
(cherry picked from commit 781fe1a49ab1d3fea3540742c38fe6633e65d700)
---
 src/tests/functions.at | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/tests/functions.at b/src/tests/functions.at
index 05f517b01369..afd7917d7369 100644
--- a/src/tests/functions.at
+++ b/src/tests/functions.at
@@ -385,3 +385,10 @@ m4_define([HOST_SUPPORTS_IP6TABLES], [m4_esyscmd(
         echo -n "no"
     fi
 )])
+
+m4_define([IF_IPV6_SUPPORTED], [
+    m4_ifdef([TESTING_FIREWALL_OFFLINE_CMD], [$1], [
+    m4_if(nftables, FIREWALL_BACKEND, [$1], [
+    m4_if(yes, HOST_SUPPORTS_IP6TABLES, [$1], [$2])
+    ])])
+])
-- 
2.20.1