chiark / gitweb /
test: Split "invoke" up
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 12 Oct 2019 21:03:17 +0000 (22:03 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 12 Oct 2019 22:29:26 +0000 (23:29 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
test/common.tcl [moved from test/invoke with 96% similarity, mode: 0644]
test/t-basic-kex [new file with mode: 0755]

old mode 100755 (executable)
new mode 100644 (file)
similarity index 96%
rename from test/invoke
rename to test/common.tcl
index 22554cf..fa06e5b
@@ -1,5 +1,3 @@
-#! /usr/bin/tclsh
-
 package require Tclx
 
 load chiark_tcl_hbytes-1.so
@@ -193,13 +191,3 @@ proc udp-relay {data src sock args} {
        puts stderr "$orgsrc -> $dst: $emsg"
     }
 }
-
-udp-proxy
-spawn-secnet inside
-spawn-secnet outside
-
-after 500 sendpkt
-after 1000 sendpkt
-after 5000 timed-out
-
-vwait ok
diff --git a/test/t-basic-kex b/test/t-basic-kex
new file mode 100755 (executable)
index 0000000..bcbadf5
--- /dev/null
@@ -0,0 +1,13 @@
+#! /usr/bin/tclsh
+
+source test/common.tcl
+
+udp-proxy
+spawn-secnet inside
+spawn-secnet outside
+
+after 500 sendpkt
+after 1000 sendpkt
+after 5000 timed-out
+
+vwait ok