aboutsummaryrefslogtreecommitdiff
path: root/Semestr 4/aisd/pracownia4/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Semestr 4/aisd/pracownia4/test.sh')
-rwxr-xr-xSemestr 4/aisd/pracownia4/test.sh21
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