]> git.meshlink.io Git - utcp/blobdiff - txtest
Add scripts testing filetransfer.
[utcp] / txtest
diff --git a/txtest b/txtest
new file mode 100755 (executable)
index 0000000..150945e
--- /dev/null
+++ b/txtest
@@ -0,0 +1,7 @@
+#!/bin/sh
+[ -f txtest-data ] || head -c 100000 /dev/urandom >txtest-data
+rm -f txtest-copy
+./test 9999 >txtest-copy 2>txtest-server.log &
+./test localhost 9999 2>txtest-client.log <txtest-data
+wait
+cmp txtest-data txtest-copy