scripts: move mega-sena in
[lcapit-junk-code.git] / CEP / C / dump-test
blob94c1b166bed8fbe019e77680c959bcfa6ee834be
1 #!/bin/bash
3 DB_FILE=cep-curitiba.txt
4 DB_RES=result.txt
6 if [ "$1" = "-r" ]; then
7 printf "RAW "
8 else
9 printf "LIST "
12 printf "DUMP TEST: "
14 ./cep-browser $* $DB_FILE > $DB_RES
15 cmp -s $DB_FILE $DB_RES
16 if [ $? -eq 1 ]; then
17 printf "FAILED\n"
18 else
19 printf "PASSED\n"
22 rm -f $DB_RES