Add a sample connlabel.conf to extensions/ directory, named so that it is listed along with the extension itself. By making use of XT_CONNLABEL_CFG env variable, point xt_connlabel at that file during the tests. This eliminates dependency of xlate testsuite on host's filesystem. Signed-off-by: Phil Sutter <phil@xxxxxx> --- extensions/libxt_connlabel.conf.test | 3 +++ xlate-test.py | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 extensions/libxt_connlabel.conf.test diff --git a/extensions/libxt_connlabel.conf.test b/extensions/libxt_connlabel.conf.test new file mode 100644 index 0000000000000..d5d6cebd88e38 --- /dev/null +++ b/extensions/libxt_connlabel.conf.test @@ -0,0 +1,3 @@ +40 bit40 +41 bit41 +128 bit128 diff --git a/xlate-test.py b/xlate-test.py index 4c014f9bd269a..31f7216fb896c 100755 --- a/xlate-test.py +++ b/xlate-test.py @@ -94,6 +94,9 @@ def main(): xtables_nft_multi = os.path.abspath(os.path.curdir) \ + '/iptables/' + xtables_nft_multi + os.putenv("XT_CONNLABEL_CFG", os.path.abspath("extensions") \ + + '/libxt_connlabel.conf.test') + if args.test: if not args.test.endswith(".txlate"): args.test += ".txlate" -- 2.20.1