From: Ian Jackson Date: Sat, 12 Oct 2019 23:20:42 +0000 (+0100) Subject: test: Slurp test-example/sites.conf and paste it in X-Git-Tag: v0.5.0~86 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=4ea0e215f2868c4631e51d972f5d2decd9bb4f9b;p=secnet.git test: Slurp test-example/sites.conf and paste it in This will enable us to edit this common config. Signed-off-by: Ian Jackson --- diff --git a/test/common.tcl b/test/common.tcl index 3a2e1ae..cac5bfd 100644 --- a/test/common.tcl +++ b/test/common.tcl @@ -88,7 +88,13 @@ exec cat log-events "all"; random randomfile("/dev/urandom",no); transform eax-serpent { }, serpent256-cbc { }; - include test-example/sites.conf + } + + set f [open test-example/sites.conf r] + set sites [read $f] + close $f + append cfg $sites + append cfg { sites map(site,vpn/test-example/all-sites); } return $cfg