added test 73 based on bug reported by user

This commit is contained in:
mes5k 2009-07-28 19:49:26 +00:00
parent 6db71e94af
commit a7b1e0ce2b
4 changed files with 23 additions and 3 deletions

View File

@ -2,7 +2,7 @@ AC_INIT(Makefile.am)
#AC_PREREQ(2.50)
AC_CONFIG_AUX_DIR(config)
AM_CONFIG_HEADER(config/config.h)
AM_INIT_AUTOMAKE(tclap,1.1.0)
AM_INIT_AUTOMAKE(tclap,1.2.0)
AC_PROG_CXX
AC_CXX_HAVE_SSTREAM
AC_CXX_HAVE_STRSTREAM

View File

@ -70,8 +70,9 @@ TESTS = test1.sh \
test68.sh \
test69.sh \
test70.sh \
test71.sh \
test72.sh \
test71.sh
test73.sh
EXTRA_DIST = $(TESTS) \
test1.out \
@ -145,6 +146,7 @@ EXTRA_DIST = $(TESTS) \
test69.out \
test70.out \
test71.out \
test72.out
test72.out \
test73.out
CLEANFILES = tmp.out

7
tests/test73.out Normal file
View File

@ -0,0 +1,7 @@
for float we got : 3.7
for int we got : 1
for string we got : asdf
for ulabeled we got : fff*fff
for bool A we got : 0
for bool B we got : 0
for bool C we got : 0

11
tests/test73.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
# success tests whether * in UnlabeledValueArg passes
../examples/test2 -i 1 -s asdf fff*fff > tmp.out 2>&1
if cmp -s tmp.out $srcdir/test73.out; then
exit 0
else
exit 1
fi