This lets individual tests fiddle with the sites.conf.
By default, we provide a proc that does nothing.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
set privkey(inside) test-example/inside.privkeys/
set privkey(outside) test-example/outside.privkeys/
+proc sitesconf_hook {l} { return $l }
+
proc mkconf {location site} {
global tmp
global builddir
set f [open $sitesconf r]
while {[gets $f l] >= 0} {
regsub {\"[^\"]*test-example/pubkeys/} $l "\"$pubkeys/" l
+ set l [sitesconf_hook $l]
append cfg $l "\n"
}
set sites [read $f]