aboutsummaryrefslogtreecommitdiff
path: root/Tools/stress.sh
blob: 8c555e33d2e0aa9604f8295a3f84981f5d949b61 (plain)
1
2
3
4
5
6
7
8
9
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