aboutsummaryrefslogtreecommitdiff
path: root/semestr-4/aisd/pracownia4/test.sh
blob: dc725ad2eb268727984a7c19271a32552de036cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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