From: Guus Sliepen Date: Sun, 11 Oct 2015 15:11:13 +0000 (+0200) Subject: Add scripts testing filetransfer. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=e572986223f5a373e2873f916d55d7cc282da074;p=utcp Add scripts testing filetransfer. - txttest transfers a file into one direction. - bidirtest transfers a file both ways simultaneously. --- diff --git a/bidirtest b/bidirtest new file mode 100755 index 0000000..09c0d94 --- /dev/null +++ b/bidirtest @@ -0,0 +1,8 @@ +#!/bin/sh +[ -f bidirtest-data ] || head -c 10000 /dev/urandom >bidirtest-data +rm -f bidirtest-copy-client bidirtest-copy-server +./test 9999 bidirtest-copy-server 2>bidirtest-server.log & +./test localhost 9999 bidirtest-copy-client 2>bidirtest-client.log +wait +cmp bidirtest-data bidirtest-copy-server +cmp bidirtest-data bidirtest-copy-client diff --git a/txtest b/txtest new file mode 100755 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