Files
sphinxbase/test/unit/test_cmdln/_test_parse_defaults_r.test
dhdfu c2118ea7f2 Add a function to initialize a cmd_ln_t without necessarily making
reference to any argument definition, argc, argv, or whatever.


git-svn-id: svn+ssh://svn.code.sf.net/p/cmusphinx/code/trunk/sphinxbase@7736 94700074-3cef-4d97-a70e-9c8c206c02f5
2008-02-03 18:29:46 +00:00

11 lines
305 B
Bash
Executable File

#!/bin/sh
. ../testfuncs.sh
set -e
testname=`basename $0 .test`
./cmdln_parse_r -a 42 > $testname.out 2>&1
sed -ne 's,^-,-,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