chiark / gitweb /
test: Slurp test-example/sites.conf and paste it in
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 12 Oct 2019 23:20:42 +0000 (00:20 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 24 Oct 2019 18:16:14 +0000 (19:16 +0100)
This will enable us to edit this common config.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
test/common.tcl

index 3a2e1ae39194f64d7f46e20f60fd23ab019cdbcd..cac5bfda4c885a69582a893c17fc0ee3085327f1 100644 (file)
@@ -88,7 +88,13 @@ exec cat
        log-events "all";
        random randomfile("/dev/urandom",no);
        transform eax-serpent { }, serpent256-cbc { };
        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
        sites map(site,vpn/test-example/all-sites);
     }
     return $cfg