aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-07-21 00:37:28 -0400
committerB. Watson <yalhcru@gmail.com>2021-07-21 00:37:28 -0400
commit94551e832f65bc95f21925d8b9ae51044536b3a5 (patch)
tree23833718d1025b621e2208eda2dd17e0304b5331
parent5acaf87d3cc244038c993b18ea22000c6a144dac (diff)
downloadslowbaud-94551e832f65bc95f21925d8b9ae51044536b3a5.tar.gz
add test.sh
-rw-r--r--test.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/test.sh b/test.sh
new file mode 100644
index 0000000..81edd29
--- /dev/null
+++ b/test.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+bytes=${1:-100}
+rm -f x.$bytes
+dd if=/dev/zero of=x.$bytes bs=$bytes count=1
+
+make &>/dev/null
+
+for i in 300 1200 2400 4800 9600 19200 33600 57600 115200; do
+ SLOWBAUD_DEBUG=1 time ./slowbaud $i x.$bytes >/dev/null
+done 2>&1 | tee test.out
+
+rm -f x.$bytes