From 0989bc6c15a063767227ad0273fbd4df53eaa56a Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sun, 24 May 2020 20:35:53 -0500 Subject: [PATCH] Create stress.sh --- Tools/stress.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Tools/stress.sh diff --git a/Tools/stress.sh b/Tools/stress.sh new file mode 100644 index 0000000..8c555e3 --- /dev/null +++ b/Tools/stress.sh @@ -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