nwfilter: rename ebiptables unit tests and data files

Prepare for introduction of nwfilter nftables driver test files.
Create new nwfilterxml2ebipfirewalldata directory for nwfilter
ebiptables driver specific test files.
This way we split off the xml test data from the argument test
files, which are driver specific.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Dion Bosschieter <dionbosschieter@gmail.com>
This commit is contained in:
Dion Bosschieter authored and Daniel P. Berrangé committed 2026-01-16 12:45:07 +00:00
1 parent 289e4cbc67
commit be9885c274
41 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -443,7 +443,7 @@ endif
if conf.has('WITH_NWFILTER')
tests += [
{ 'name': 'nwfilterebiptablestest', 'link_with': [ nwfilter_driver_impl ] },
{ 'name': 'nwfilterxml2firewalltest', 'link_with': [ nwfilter_driver_impl ] },
{ 'name': 'nwfilterxml2ebipfirewalltest', 'link_with': [ nwfilter_driver_impl ] },
]
endif
@@ -1,5 +1,5 @@
/*
* nwfilterxml2firewalltest.c: Test iptables rule generation
* nwfilterxml2ebipfirewalltest.c: Test iptables rule generation
*
* Copyright (C) 2014 Red Hat, Inc.
*
@@ -418,7 +418,7 @@ testCompareXMLToIPTablesHelper(const void *data)
xml = g_strdup_printf("%s/nwfilterxml2firewalldata/%s.xml",
abs_srcdir, info->name);
args = g_strdup_printf("%s/nwfilterxml2firewalldata/%s-%s.args",
args = g_strdup_printf("%s/nwfilterxml2firewalldata/%s-%s.ebiptables.args",
abs_srcdir, info->name, RULESTYPE);
result = testCompareXMLToArgvFiles(xml, args);