added test for chlorodb
Former-commit-id: 639cbbdc91a6c7f11544dbbe1fa0c47e1e28eaad Former-commit-id: 59f6ff3f727d01f3ed4d553a554b322b24119b06
This commit is contained in:
25
detectors/cds/tools/chlorodb/test/go_test.sh
Executable file
25
detectors/cds/tools/chlorodb/test/go_test.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/csh -f
|
||||
|
||||
setenv ORG_HOME `dirname $0`/../../../../..
|
||||
source $ORG_HOME/scripts/csh_init.sh
|
||||
|
||||
echo "+ testing go_chlorodb.sh"
|
||||
|
||||
\cp -r test.db TMP
|
||||
`dirname $0`/../go_chlorodb.sh TMP
|
||||
|
||||
|
||||
find TMP -name \*.fst -print | sort > test.bak
|
||||
|
||||
diff -q test.bak test.ref >& /dev/null
|
||||
|
||||
set stat = $status
|
||||
|
||||
if ($stat == 0) then
|
||||
echo "+ $VTC[3]test Ok$VTC[1]"
|
||||
\rm -r TMP test.bak
|
||||
else
|
||||
echo "* $VTC[2]test Failure$VTC[1]"
|
||||
endif
|
||||
|
||||
exit $stat
|
Reference in New Issue
Block a user