Files
annotate/detectors/cds/tools/chlorodb/test/go_test.sh
alain viari 42707c281c added test for chlorodb
Former-commit-id: 639cbbdc91a6c7f11544dbbe1fa0c47e1e28eaad
Former-commit-id: 59f6ff3f727d01f3ed4d553a554b322b24119b06
2015-11-13 18:53:47 +01:00

26 lines
431 B
Bash
Executable File

#!/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