repo.or.cz
/
lcapit-junk-code.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
scripts: move mega-sena in
[lcapit-junk-code.git]
/
CEP
/
C
/
dump-test
blob
94c1b166bed8fbe019e77680c959bcfa6ee834be
1
#!/bin/bash
2
3
DB_FILE
=
cep-curitiba.txt
4
DB_RES
=
result.txt
5
6
if
[
"
$1
"
=
"-r"
];
then
7
printf
"RAW "
8
else
9
printf
"LIST "
10
fi
11
12
printf
"DUMP TEST: "
13
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
"
20
fi
21
22
rm
-f
$DB_RES