From e572986223f5a373e2873f916d55d7cc282da074 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 11 Oct 2015 17:11:13 +0200 Subject: [PATCH] Add scripts testing filetransfer. - txttest transfers a file into one direction. - bidirtest transfers a file both ways simultaneously. --- bidirtest | 8 ++++++++ txtest | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100755 bidirtest create mode 100755 txtest 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