Create stress.sh

This commit is contained in:
Anthony Wang 2020-05-24 20:35:53 -05:00 committed by GitHub
parent f7b0245a50
commit 0989bc6c15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

10
Tools/stress.sh Normal file
View file

@ -0,0 +1,10 @@
# A and B are executables you want to compare, gen takes int
# as command line arg. Usage: 'sh stress.sh'
for((i = 1; ; ++i)); do
echo $i
./gen $i > int
./A < int > out1
./B < int > out2
diff -w out1 out2 || break
# diff -w <(./F2 < int) <(./F < int) || break
done