diff options
author | Franciszek Malinka <franciszek.malinka@gmail.com> | 2021-04-08 15:00:33 +0200 |
---|---|---|
committer | Franciszek Malinka <franciszek.malinka@gmail.com> | 2021-04-08 15:00:33 +0200 |
commit | 2f83962f1799e94c8108c575d1c0d35868b06c4e (patch) | |
tree | 9ef3e16d3e80c8e44e93694e262199d8d5e6e7dc /Semestr 4/aisd/pracownia4/test.sh | |
parent | f64f7de412dd06affb0670831bdd117bde33a192 (diff) |
Pracownia 4 aisd
Diffstat (limited to 'Semestr 4/aisd/pracownia4/test.sh')
-rwxr-xr-x | Semestr 4/aisd/pracownia4/test.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Semestr 4/aisd/pracownia4/test.sh b/Semestr 4/aisd/pracownia4/test.sh new file mode 100755 index 0000000..dc725ad --- /dev/null +++ b/Semestr 4/aisd/pracownia4/test.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +make brut +make rozw3 + + +for i in {1..10000} +do + echo $i + python3 gen.py $i $1 > test.in + ./rozw3 < test.in > wa.out + ./brut < test.in > test.out + + if diff -w test.out wa.out + then + echo ok + else + echo nieok + break + fi +done |