- txttest transfers a file into one direction.
- bidirtest transfers a file both ways simultaneously.
--- /dev/null
+#!/bin/sh
+[ -f bidirtest-data ] || head -c 10000 /dev/urandom >bidirtest-data
+rm -f bidirtest-copy-client bidirtest-copy-server
+./test 9999 <bidirtest-data >bidirtest-copy-server 2>bidirtest-server.log &
+./test localhost 9999 <bidirtest-data >bidirtest-copy-client 2>bidirtest-client.log
+wait
+cmp bidirtest-data bidirtest-copy-server
+cmp bidirtest-data bidirtest-copy-client
--- /dev/null
+#!/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