Files
sphinxbase/test/unit/test_cmdln/_test_parse_badargs.test
nshmyrev 03aa99c8d0 Restored infocont
git-svn-id: svn+ssh://svn.code.sf.net/p/cmusphinx/code/trunk/sphinxbase@12034 94700074-3cef-4d97-a70e-9c8c206c02f5
2013-11-07 15:45:14 +00:00

15 lines
458 B
Bash
Executable File

#!/bin/sh
. ../testfuncs.sh
set -e
testname=`basename $0 .test`
./cmdln_parse -a foobar > $testname.out 2>&1 && exit 1
./cmdln_parse -a 42 -noarg >> $testname.out 2>&1 && exit 1
./cmdln_parse -a 42 -c >> $testname.out 2>&1 && exit 1
sed -ne 's,^ERROR:.*line [0-9]*:,ERROR:,p' < $testname.out > $testname.tmp.out \
&& mv $testname.tmp.out $testname.out
compare_table defaults $testname.out $tests/unit/test_cmdln/$testname.res 100
#rm -f $testname.out