aboutsummaryrefslogtreecommitdiff
path: root/semestr-4/aisd/pracownia3/ocen.sh
blob: 593aa672692ebc53eee347f29964d7837dc8572f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

make rozw
make check
for i in {0..1023}
do
    python3 gen.py $i > t.in
    ./rozw < t.in > wa.out
    ./check < t.in > t.out
    if diff -w wa.out t.out
    then
        echo $i
        echo ok
    else
        echo nieok
        break
    fi
done