chiark / gitweb /
mtest/t-userv: Check lack of optional group in fragment
[secnet.git] / mtest / t-userv
index a3843e08f00f08bfa6d94a85185e4e24c4b8f4d7..87d97b0e707321fba0344f088dcc6afc04781649 100755 (executable)
@@ -55,3 +55,12 @@ if {![catch {
 eval run-mss $tmp/out.sites >$tmp/out.conf
 
 diff-mss-sites-conf mtest/e-userv.conf $tmp/out.conf
+
+#----- works without group in `location' line -----
+
+set testgf $tmp/Ginside.no-group
+
+exec sed < mtest/Ginside.sites > $testgf {/^location / s/ root$//}
+
+set testargs [lreplace $good end end $testgf]
+eval run-mss-userv $testargs