aboutsummaryrefslogtreecommitdiff
path: root/semestr-3/pf/lista6/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'semestr-3/pf/lista6/test.sh')
-rw-r--r--semestr-3/pf/lista6/test.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/semestr-3/pf/lista6/test.sh b/semestr-3/pf/lista6/test.sh
new file mode 100644
index 0000000..c25c008
--- /dev/null
+++ b/semestr-3/pf/lista6/test.sh
@@ -0,0 +1,14 @@
+make wzo
+make brut
+for i in {1..1000}
+do python3 test.py $i > test.in
+ ./wzo <test.in >wa.out
+ ./brut <test.in > t.out
+ if diff -w wa.out t.out
+ then
+ echo ok
+ else
+ echo "nieok"
+ break
+ fi
+done \ No newline at end of file