From 9cb204c209733384cfc272dff249f59058aef034 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 22 Nov 2019 23:09:54 +0000 Subject: [PATCH] make-secnet-sites: Add test for -P option Signed-off-by: Ian Jackson --- mtest/t-prefix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 mtest/t-prefix diff --git a/mtest/t-prefix b/mtest/t-prefix new file mode 100755 index 0000000..2db65e3 --- /dev/null +++ b/mtest/t-prefix @@ -0,0 +1,10 @@ +#! /usr/bin/tclsh + +source mtest/common.tcl + +run-mss -Ppprefix --no-conf-key-prefix test-example/sites $tmp/out.conf + +set seddery { sed -n 's/^[ \t]*//; /^[^#]/p' } +diff mtest/e-basic.conf $tmp/out.conf \ + "sed -e 's/vpn/pprefixvpn/g; s/^all-sites/pprefix&/' | $seddery" \ + $seddery -- 2.30.2