aboutsummaryrefslogtreecommitdiff
path: root/test.sh
blob: 81edd29c2dd7b81b87187aa08277593b5edc6b74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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