git-svn-id: svn+ssh://svn.code.sf.net/p/cmusphinx/code/trunk/sphinxbase@12034 94700074-3cef-4d97-a70e-9c8c206c02f5
15 lines
458 B
Bash
Executable File
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
|