chiark / gitweb /
mtest: First test case
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 20 Oct 2019 11:05:25 +0000 (12:05 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 24 Oct 2019 18:16:15 +0000 (19:16 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
mtest/common.tcl [new file with mode: 0644]
mtest/t-userv [new file with mode: 0755]

diff --git a/mtest/common.tcl b/mtest/common.tcl
new file mode 100644 (file)
index 0000000..6b6b16d
--- /dev/null
@@ -0,0 +1,5 @@
+source test-common.tcl
+
+file mkdir $tmp/groupfiles
+
+prefix_some_path PYTHONPATH .
diff --git a/mtest/t-userv b/mtest/t-userv
new file mode 100755 (executable)
index 0000000..1e5ea25
--- /dev/null
@@ -0,0 +1,9 @@
+#! /usr/bin/tclsh
+
+source mtest/common.tcl
+
+exec env \
+    USERV_USER=Uuser USERV_GROUP=Ginside \
+    ./make-secnet-sites -u \
+    mtest/header.sites $tmp/groupfiles $tmp/out.sites Ginside \
+    < mtest/Ginside.sites