From 2f83962f1799e94c8108c575d1c0d35868b06c4e Mon Sep 17 00:00:00 2001 From: Franciszek Malinka Date: Thu, 8 Apr 2021 15:00:33 +0200 Subject: Pracownia 4 aisd --- Semestr 4/aisd/pracownia4/test.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 Semestr 4/aisd/pracownia4/test.sh (limited to 'Semestr 4/aisd/pracownia4/test.sh') 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 -- cgit v1.2.3