diff options
author | Christian Linke <christian.linke@bmw.de> | 2015-04-15 19:05:53 +0200 |
---|---|---|
committer | Christian Linke <christian.linke@bmw.de> | 2015-04-15 19:05:53 +0200 |
commit | 64944e1fa72f346f1161da60c033de2e10513bea (patch) | |
tree | 12f668bf4024365311dd46bd3dc904f57e00f8fa /tclap-1.2.1/tests | |
parent | a0b06e2a9b466cfcc6f6810a66d9522a56872cbb (diff) | |
download | audiomanager-64944e1fa72f346f1161da60c033de2e10513bea.tar.gz |
* implemend command line options for plugins. rework of command line
* add tclap as template library
* implement bug 344
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Diffstat (limited to 'tclap-1.2.1/tests')
158 files changed, 2507 insertions, 0 deletions
diff --git a/tclap-1.2.1/tests/Makefile.am b/tclap-1.2.1/tests/Makefile.am new file mode 100644 index 0000000..4c0f409 --- /dev/null +++ b/tclap-1.2.1/tests/Makefile.am @@ -0,0 +1,162 @@ + + +TESTS = test1.sh \ + test2.sh \ + test3.sh \ + test4.sh \ + test5.sh \ + test6.sh \ + test7.sh \ + test8.sh \ + test9.sh \ + test10.sh \ + test11.sh \ + test12.sh \ + test13.sh \ + test14.sh \ + test15.sh \ + test16.sh \ + test17.sh \ + test18.sh \ + test19.sh \ + test20.sh \ + test21.sh \ + test22.sh \ + test23.sh \ + test24.sh \ + test25.sh \ + test26.sh \ + test27.sh \ + test28.sh \ + test29.sh \ + test30.sh \ + test31.sh \ + test32.sh \ + test33.sh \ + test34.sh \ + test35.sh \ + test36.sh \ + test37.sh \ + test38.sh \ + test39.sh \ + test40.sh \ + test41.sh \ + test42.sh \ + test43.sh \ + test44.sh \ + test45.sh \ + test46.sh \ + test47.sh \ + test48.sh \ + test49.sh \ + test50.sh \ + test51.sh \ + test52.sh \ + test53.sh \ + test54.sh \ + test55.sh \ + test56.sh \ + test57.sh \ + test58.sh \ + test59.sh \ + test60.sh \ + test61.sh \ + test62.sh \ + test63.sh \ + test64.sh \ + test65.sh \ + test66.sh \ + test67.sh \ + test68.sh \ + test69.sh \ + test70.sh \ + test71.sh \ + test72.sh \ + test73.sh \ + test74.sh \ + test75.sh \ + test76.sh \ + test77.sh \ + test78.sh + +EXTRA_DIST = $(TESTS) \ + test1.out \ + test2.out \ + test3.out \ + test4.out \ + test5.out \ + test6.out \ + test7.out \ + test8.out \ + test9.out \ + test10.out \ + test11.out \ + test12.out \ + test13.out \ + test14.out \ + test15.out \ + test16.out \ + test17.out \ + test18.out \ + test19.out \ + test20.out \ + test21.out \ + test22.out \ + test23.out \ + test24.out \ + test25.out \ + test26.out \ + test27.out \ + test28.out \ + test29.out \ + test30.out \ + test31.out \ + test32.out \ + test33.out \ + test34.out \ + test35.out \ + test36.out \ + test37.out \ + test38.out \ + test39.out \ + test40.out \ + test41.out \ + test42.out \ + test43.out \ + test44.out \ + test45.out \ + test46.out \ + test47.out \ + test48.out \ + test49.out \ + test50.out \ + test51.out \ + test52.out \ + test53.out \ + test54.out \ + test55.out \ + test56.out \ + test57.out \ + test58.out \ + test59.out \ + test60.out \ + test61.out \ + test62.out \ + test63.out \ + test64.out \ + test65.out \ + test66.out \ + test67.out \ + test68.out \ + test69.out \ + test70.out \ + test71.out \ + test72.out \ + test73.out \ + test74.out \ + test75.out \ + test76.out \ + test77.out \ + test78.out + +CLEANFILES = tmp.out diff --git a/tclap-1.2.1/tests/Makefile.in b/tclap-1.2.1/tests/Makefile.in new file mode 100644 index 0000000..4a3b5f2 --- /dev/null +++ b/tclap-1.2.1/tests/Makefile.in @@ -0,0 +1,536 @@ +# Makefile.in generated by automake 1.10 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +subdir = tests +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/config/ac_cxx_have_long_long.m4 \ + $(top_srcdir)/config/ac_cxx_have_sstream.m4 \ + $(top_srcdir)/config/ac_cxx_have_strstream.m4 \ + $(top_srcdir)/config/ac_cxx_namespaces.m4 \ + $(top_srcdir)/config/ac_cxx_warn_effective_cxx.m4 \ + $(top_srcdir)/config/bb_enable_doxygen.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config/config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DOT = @DOT@ +DOXYGEN = @DOXYGEN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +WARN_EFFECTIVE_CXX = @WARN_EFFECTIVE_CXX@ +WARN_NO_EFFECTIVE_CXX = @WARN_NO_EFFECTIVE_CXX@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CXX = @ac_ct_CXX@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build_alias = @build_alias@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host_alias = @host_alias@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +TESTS = test1.sh \ + test2.sh \ + test3.sh \ + test4.sh \ + test5.sh \ + test6.sh \ + test7.sh \ + test8.sh \ + test9.sh \ + test10.sh \ + test11.sh \ + test12.sh \ + test13.sh \ + test14.sh \ + test15.sh \ + test16.sh \ + test17.sh \ + test18.sh \ + test19.sh \ + test20.sh \ + test21.sh \ + test22.sh \ + test23.sh \ + test24.sh \ + test25.sh \ + test26.sh \ + test27.sh \ + test28.sh \ + test29.sh \ + test30.sh \ + test31.sh \ + test32.sh \ + test33.sh \ + test34.sh \ + test35.sh \ + test36.sh \ + test37.sh \ + test38.sh \ + test39.sh \ + test40.sh \ + test41.sh \ + test42.sh \ + test43.sh \ + test44.sh \ + test45.sh \ + test46.sh \ + test47.sh \ + test48.sh \ + test49.sh \ + test50.sh \ + test51.sh \ + test52.sh \ + test53.sh \ + test54.sh \ + test55.sh \ + test56.sh \ + test57.sh \ + test58.sh \ + test59.sh \ + test60.sh \ + test61.sh \ + test62.sh \ + test63.sh \ + test64.sh \ + test65.sh \ + test66.sh \ + test67.sh \ + test68.sh \ + test69.sh \ + test70.sh \ + test71.sh \ + test72.sh \ + test73.sh \ + test74.sh \ + test75.sh \ + test76.sh \ + test77.sh \ + test78.sh + +EXTRA_DIST = $(TESTS) \ + test1.out \ + test2.out \ + test3.out \ + test4.out \ + test5.out \ + test6.out \ + test7.out \ + test8.out \ + test9.out \ + test10.out \ + test11.out \ + test12.out \ + test13.out \ + test14.out \ + test15.out \ + test16.out \ + test17.out \ + test18.out \ + test19.out \ + test20.out \ + test21.out \ + test22.out \ + test23.out \ + test24.out \ + test25.out \ + test26.out \ + test27.out \ + test28.out \ + test29.out \ + test30.out \ + test31.out \ + test32.out \ + test33.out \ + test34.out \ + test35.out \ + test36.out \ + test37.out \ + test38.out \ + test39.out \ + test40.out \ + test41.out \ + test42.out \ + test43.out \ + test44.out \ + test45.out \ + test46.out \ + test47.out \ + test48.out \ + test49.out \ + test50.out \ + test51.out \ + test52.out \ + test53.out \ + test54.out \ + test55.out \ + test56.out \ + test57.out \ + test58.out \ + test59.out \ + test60.out \ + test61.out \ + test62.out \ + test63.out \ + test64.out \ + test65.out \ + test66.out \ + test67.out \ + test68.out \ + test69.out \ + test70.out \ + test71.out \ + test72.out \ + test73.out \ + test74.out \ + test75.out \ + test76.out \ + test77.out \ + test78.out + +CLEANFILES = tmp.out +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu tests/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +check-TESTS: $(TESTS) + @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \ + srcdir=$(srcdir); export srcdir; \ + list=' $(TESTS) '; \ + if test -n "$$list"; then \ + for tst in $$list; do \ + if test -f ./$$tst; then dir=./; \ + elif test -f $$tst; then dir=; \ + else dir="$(srcdir)/"; fi; \ + if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ + all=`expr $$all + 1`; \ + case " $(XFAIL_TESTS) " in \ + *$$ws$$tst$$ws*) \ + xpass=`expr $$xpass + 1`; \ + failed=`expr $$failed + 1`; \ + echo "XPASS: $$tst"; \ + ;; \ + *) \ + echo "PASS: $$tst"; \ + ;; \ + esac; \ + elif test $$? -ne 77; then \ + all=`expr $$all + 1`; \ + case " $(XFAIL_TESTS) " in \ + *$$ws$$tst$$ws*) \ + xfail=`expr $$xfail + 1`; \ + echo "XFAIL: $$tst"; \ + ;; \ + *) \ + failed=`expr $$failed + 1`; \ + echo "FAIL: $$tst"; \ + ;; \ + esac; \ + else \ + skip=`expr $$skip + 1`; \ + echo "SKIP: $$tst"; \ + fi; \ + done; \ + if test "$$failed" -eq 0; then \ + if test "$$xfail" -eq 0; then \ + banner="All $$all tests passed"; \ + else \ + banner="All $$all tests behaved as expected ($$xfail expected failures)"; \ + fi; \ + else \ + if test "$$xpass" -eq 0; then \ + banner="$$failed of $$all tests failed"; \ + else \ + banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \ + fi; \ + fi; \ + dashes="$$banner"; \ + skipped=""; \ + if test "$$skip" -ne 0; then \ + skipped="($$skip tests were not run)"; \ + test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ + dashes="$$skipped"; \ + fi; \ + report=""; \ + if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ + report="Please report to $(PACKAGE_BUGREPORT)"; \ + test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ + dashes="$$report"; \ + fi; \ + dashes=`echo "$$dashes" | sed s/./=/g`; \ + echo "$$dashes"; \ + echo "$$banner"; \ + test -z "$$skipped" || echo "$$skipped"; \ + test -z "$$report" || echo "$$report"; \ + echo "$$dashes"; \ + test "$$failed" -eq 0; \ + else :; fi + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) check-TESTS +check: check-am +all-am: Makefile +installdirs: +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-TESTS check-am clean clean-generic \ + distclean distclean-generic distdir dvi dvi-am html html-am \ + info info-am install install-am install-data install-data-am \ + install-dvi install-dvi-am install-exec install-exec-am \ + install-html install-html-am install-info install-info-am \ + install-man install-pdf install-pdf-am install-ps \ + install-ps-am install-strip installcheck installcheck-am \ + installdirs maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \ + uninstall-am + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/tclap-1.2.1/tests/test1.out b/tclap-1.2.1/tests/test1.out new file mode 100644 index 0000000..6c0e533 --- /dev/null +++ b/tclap-1.2.1/tests/test1.out @@ -0,0 +1 @@ +My name (spelled backwards) is: ekim diff --git a/tclap-1.2.1/tests/test1.sh b/tclap-1.2.1/tests/test1.sh new file mode 100644 index 0000000..f59f014 --- /dev/null +++ b/tclap-1.2.1/tests/test1.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test1 -r -n mike > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test1.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test10.out b/tclap-1.2.1/tests/test10.out new file mode 100644 index 0000000..da6dd86 --- /dev/null +++ b/tclap-1.2.1/tests/test10.out @@ -0,0 +1,10 @@ +PARSE ERROR: + Required argument missing: unTest + +Brief USAGE: + ../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--] + [--version] [-h] <string> <string> ... + +For complete USAGE and HELP type: + ../examples/test2 --help + diff --git a/tclap-1.2.1/tests/test10.sh b/tclap-1.2.1/tests/test10.sh new file mode 100644 index 0000000..8d9f545 --- /dev/null +++ b/tclap-1.2.1/tests/test10.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test2 -i 10 -s hello > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test10.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test11.out b/tclap-1.2.1/tests/test11.out new file mode 100644 index 0000000..2c0d7a1 --- /dev/null +++ b/tclap-1.2.1/tests/test11.out @@ -0,0 +1,10 @@ +PARSE ERROR: Argument: -i (--intTest) + Argument already set! + +Brief USAGE: + ../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--] + [--version] [-h] <string> <string> ... + +For complete USAGE and HELP type: + ../examples/test2 --help + diff --git a/tclap-1.2.1/tests/test11.sh b/tclap-1.2.1/tests/test11.sh new file mode 100644 index 0000000..3151d76 --- /dev/null +++ b/tclap-1.2.1/tests/test11.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test2 -i 10 -s hello -i 9 > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test11.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test12.out b/tclap-1.2.1/tests/test12.out new file mode 100644 index 0000000..2d957e0 --- /dev/null +++ b/tclap-1.2.1/tests/test12.out @@ -0,0 +1,10 @@ +PARSE ERROR: Argument: -f (--floatTest) + Couldn't read argument value from string 'nine' + +Brief USAGE: + ../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--] + [--version] [-h] <string> <string> ... + +For complete USAGE and HELP type: + ../examples/test2 --help + diff --git a/tclap-1.2.1/tests/test12.sh b/tclap-1.2.1/tests/test12.sh new file mode 100644 index 0000000..1c23d09 --- /dev/null +++ b/tclap-1.2.1/tests/test12.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test2 -i 10 -s hello -f nine > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test12.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test13.out b/tclap-1.2.1/tests/test13.out new file mode 100644 index 0000000..076f079 --- /dev/null +++ b/tclap-1.2.1/tests/test13.out @@ -0,0 +1,7 @@ +[-i] 0 9 +[-i] 1 8 +[ ] 0 bart +for string we got : bill +for ulabeled one we got : homer +for ulabeled two we got : marge +for bool B we got : 1 diff --git a/tclap-1.2.1/tests/test13.sh b/tclap-1.2.1/tests/test13.sh new file mode 100644 index 0000000..8631460 --- /dev/null +++ b/tclap-1.2.1/tests/test13.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test3 --stringTest=bill -i=9 -i=8 -B homer marge bart > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test13.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test14.out b/tclap-1.2.1/tests/test14.out new file mode 100644 index 0000000..404d810 --- /dev/null +++ b/tclap-1.2.1/tests/test14.out @@ -0,0 +1,7 @@ +[ ] 0 bart +[ ] 1 one +[ ] 2 two +for string we got : aaa +for ulabeled one we got : homer +for ulabeled two we got : marge +for bool B we got : 0 diff --git a/tclap-1.2.1/tests/test14.sh b/tclap-1.2.1/tests/test14.sh new file mode 100644 index 0000000..4a3c106 --- /dev/null +++ b/tclap-1.2.1/tests/test14.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test3 --stringTest=aaa homer marge bart -- one two > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test14.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test15.out b/tclap-1.2.1/tests/test15.out new file mode 100644 index 0000000..f79dfc1 --- /dev/null +++ b/tclap-1.2.1/tests/test15.out @@ -0,0 +1,11 @@ +PARSE ERROR: Argument: (--stringTest) + Couldn't find delimiter for this argument! + +Brief USAGE: + ../examples/test3 [-f=<float>] ... [-i=<int>] ... + --stringTest=<string> [-B] [--] [--version] [-h] + <string> <string> <fileNameString> ... + +For complete USAGE and HELP type: + ../examples/test3 --help + diff --git a/tclap-1.2.1/tests/test15.sh b/tclap-1.2.1/tests/test15.sh new file mode 100644 index 0000000..5c2e09d --- /dev/null +++ b/tclap-1.2.1/tests/test15.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test3 --stringTest bbb homer marge bart -- -hv two > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test15.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test16.out b/tclap-1.2.1/tests/test16.out new file mode 100644 index 0000000..f79dfc1 --- /dev/null +++ b/tclap-1.2.1/tests/test16.out @@ -0,0 +1,11 @@ +PARSE ERROR: Argument: (--stringTest) + Couldn't find delimiter for this argument! + +Brief USAGE: + ../examples/test3 [-f=<float>] ... [-i=<int>] ... + --stringTest=<string> [-B] [--] [--version] [-h] + <string> <string> <fileNameString> ... + +For complete USAGE and HELP type: + ../examples/test3 --help + diff --git a/tclap-1.2.1/tests/test16.sh b/tclap-1.2.1/tests/test16.sh new file mode 100644 index 0000000..217e258 --- /dev/null +++ b/tclap-1.2.1/tests/test16.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test3 --stringTest one homer -B -Bh > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test16.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test17.out b/tclap-1.2.1/tests/test17.out new file mode 100644 index 0000000..37f86c3 --- /dev/null +++ b/tclap-1.2.1/tests/test17.out @@ -0,0 +1,11 @@ +PARSE ERROR: + Required argument missing: unTest2 + +Brief USAGE: + ../examples/test3 [-f=<float>] ... [-i=<int>] ... + --stringTest=<string> [-B] [--] [--version] [-h] + <string> <string> <fileNameString> ... + +For complete USAGE and HELP type: + ../examples/test3 --help + diff --git a/tclap-1.2.1/tests/test17.sh b/tclap-1.2.1/tests/test17.sh new file mode 100644 index 0000000..b876dec --- /dev/null +++ b/tclap-1.2.1/tests/test17.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test3 --stringTest=one homer -B > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test17.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test18.out b/tclap-1.2.1/tests/test18.out new file mode 100644 index 0000000..f9db41c --- /dev/null +++ b/tclap-1.2.1/tests/test18.out @@ -0,0 +1,2 @@ +my failure message: +-s -- Couldn't find match for argument diff --git a/tclap-1.2.1/tests/test18.sh b/tclap-1.2.1/tests/test18.sh new file mode 100644 index 0000000..ebc8646 --- /dev/null +++ b/tclap-1.2.1/tests/test18.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test4 -Bs --Bs asdf > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test18.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test19.out b/tclap-1.2.1/tests/test19.out new file mode 100644 index 0000000..02db97c --- /dev/null +++ b/tclap-1.2.1/tests/test19.out @@ -0,0 +1,3 @@ +for string we got : asdf +for bool B we got : 1 +for bool A we got : 1 diff --git a/tclap-1.2.1/tests/test19.sh b/tclap-1.2.1/tests/test19.sh new file mode 100644 index 0000000..759d997 --- /dev/null +++ b/tclap-1.2.1/tests/test19.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test4 -BA --Bs asdf > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test19.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test2.out b/tclap-1.2.1/tests/test2.out new file mode 100644 index 0000000..9797c85 --- /dev/null +++ b/tclap-1.2.1/tests/test2.out @@ -0,0 +1 @@ +My name is: mike diff --git a/tclap-1.2.1/tests/test2.sh b/tclap-1.2.1/tests/test2.sh new file mode 100644 index 0000000..729970e --- /dev/null +++ b/tclap-1.2.1/tests/test2.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test1 -n mike > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test2.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test20.out b/tclap-1.2.1/tests/test20.out new file mode 100644 index 0000000..1120da8 --- /dev/null +++ b/tclap-1.2.1/tests/test20.out @@ -0,0 +1,7 @@ +for I: + 0 sss + 1 fdsf +for A OR B we got : asdf +for string C we got : fdas +for string D we got : 0 +for E or F or G we got: blah diff --git a/tclap-1.2.1/tests/test20.sh b/tclap-1.2.1/tests/test20.sh new file mode 100644 index 0000000..ab1af77 --- /dev/null +++ b/tclap-1.2.1/tests/test20.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test5 -a asdf -c fdas --eee blah -i sss -i fdsf > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test20.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test21.out b/tclap-1.2.1/tests/test21.out new file mode 100644 index 0000000..d9905f4 --- /dev/null +++ b/tclap-1.2.1/tests/test21.out @@ -0,0 +1,6 @@ +for J: + 0 homer +for A OR B we got : asdf +for string C we got : fdas +for string D we got : 0 +for E or F or G we got: asdf diff --git a/tclap-1.2.1/tests/test21.sh b/tclap-1.2.1/tests/test21.sh new file mode 100644 index 0000000..eca74e9 --- /dev/null +++ b/tclap-1.2.1/tests/test21.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test5 -b asdf -c fdas -g asdf -j homer > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test21.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test22.out b/tclap-1.2.1/tests/test22.out new file mode 100644 index 0000000..76153be --- /dev/null +++ b/tclap-1.2.1/tests/test22.out @@ -0,0 +1,11 @@ +PARSE ERROR: Argument: -b (--bbb) + Mutually exclusive argument already set! + +Brief USAGE: + ../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff + <string>|-g <string>} {-i <string> ... |-j <string> + ... } [--ddd] -c <string> [--] [--version] [-h] + +For complete USAGE and HELP type: + ../examples/test5 --help + diff --git a/tclap-1.2.1/tests/test22.sh b/tclap-1.2.1/tests/test22.sh new file mode 100644 index 0000000..bdbcb26 --- /dev/null +++ b/tclap-1.2.1/tests/test22.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test5 -a fdsa -b asdf -c fdas > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test22.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test23.out b/tclap-1.2.1/tests/test23.out new file mode 100644 index 0000000..74cae53 --- /dev/null +++ b/tclap-1.2.1/tests/test23.out @@ -0,0 +1,11 @@ +PARSE ERROR: Argument: -d + Couldn't find match for argument + +Brief USAGE: + ../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff + <string>|-g <string>} {-i <string> ... |-j <string> + ... } [--ddd] -c <string> [--] [--version] [-h] + +For complete USAGE and HELP type: + ../examples/test5 --help + diff --git a/tclap-1.2.1/tests/test23.sh b/tclap-1.2.1/tests/test23.sh new file mode 100644 index 0000000..df67794 --- /dev/null +++ b/tclap-1.2.1/tests/test23.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test5 -d junk -c fdas > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test23.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test24.out b/tclap-1.2.1/tests/test24.out new file mode 100644 index 0000000..76153be --- /dev/null +++ b/tclap-1.2.1/tests/test24.out @@ -0,0 +1,11 @@ +PARSE ERROR: Argument: -b (--bbb) + Mutually exclusive argument already set! + +Brief USAGE: + ../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff + <string>|-g <string>} {-i <string> ... |-j <string> + ... } [--ddd] -c <string> [--] [--version] [-h] + +For complete USAGE and HELP type: + ../examples/test5 --help + diff --git a/tclap-1.2.1/tests/test24.sh b/tclap-1.2.1/tests/test24.sh new file mode 100644 index 0000000..d935ec7 --- /dev/null +++ b/tclap-1.2.1/tests/test24.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test5 --aaa dilbert -b asdf -c fdas > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test24.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test25.out b/tclap-1.2.1/tests/test25.out new file mode 100644 index 0000000..6ab8e92 --- /dev/null +++ b/tclap-1.2.1/tests/test25.out @@ -0,0 +1,7 @@ +for I: + 0 one + 1 two +for A OR B we got : asdf +for string C we got : fdas +for string D we got : 0 +for E or F or G we got: blah diff --git a/tclap-1.2.1/tests/test25.sh b/tclap-1.2.1/tests/test25.sh new file mode 100644 index 0000000..10c4b80 --- /dev/null +++ b/tclap-1.2.1/tests/test25.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test5 --aaa asdf -c fdas --fff blah -i one -i two > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test25.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test26.out b/tclap-1.2.1/tests/test26.out new file mode 100644 index 0000000..f449c00 --- /dev/null +++ b/tclap-1.2.1/tests/test26.out @@ -0,0 +1,10 @@ +PARSE ERROR: Argument: -f (--floatTest) + More than one valid value parsed from string '4..2' + +Brief USAGE: + ../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--] + [--version] [-h] <string> <string> ... + +For complete USAGE and HELP type: + ../examples/test2 --help + diff --git a/tclap-1.2.1/tests/test26.sh b/tclap-1.2.1/tests/test26.sh new file mode 100644 index 0000000..9043b83 --- /dev/null +++ b/tclap-1.2.1/tests/test26.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test2 -i 2 -f 4..2 -s asdf asdf > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test26.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test27.out b/tclap-1.2.1/tests/test27.out new file mode 100644 index 0000000..9b149cf --- /dev/null +++ b/tclap-1.2.1/tests/test27.out @@ -0,0 +1,10 @@ +PARSE ERROR: Argument: -f (--floatTest) + More than one valid value parsed from string '4.0.2' + +Brief USAGE: + ../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--] + [--version] [-h] <string> <string> ... + +For complete USAGE and HELP type: + ../examples/test2 --help + diff --git a/tclap-1.2.1/tests/test27.sh b/tclap-1.2.1/tests/test27.sh new file mode 100644 index 0000000..81908a3 --- /dev/null +++ b/tclap-1.2.1/tests/test27.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test2 -i 2 -f 4.0.2 -s asdf asdf > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test27.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test28.out b/tclap-1.2.1/tests/test28.out new file mode 100644 index 0000000..efd8b4e --- /dev/null +++ b/tclap-1.2.1/tests/test28.out @@ -0,0 +1,10 @@ +PARSE ERROR: Argument: -i (--intTest) + Couldn't read argument value from string '2a' + +Brief USAGE: + ../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--] + [--version] [-h] <string> <string> ... + +For complete USAGE and HELP type: + ../examples/test2 --help + diff --git a/tclap-1.2.1/tests/test28.sh b/tclap-1.2.1/tests/test28.sh new file mode 100644 index 0000000..bdf1d05 --- /dev/null +++ b/tclap-1.2.1/tests/test28.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test2 -i 2a -f 4.2 -s asdf asdf > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test28.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test29.out b/tclap-1.2.1/tests/test29.out new file mode 100644 index 0000000..20d1692 --- /dev/null +++ b/tclap-1.2.1/tests/test29.out @@ -0,0 +1,10 @@ +PARSE ERROR: Argument: -i (--intTest) + Couldn't read argument value from string '0xA' + +Brief USAGE: + ../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--] + [--version] [-h] <string> <string> ... + +For complete USAGE and HELP type: + ../examples/test2 --help + diff --git a/tclap-1.2.1/tests/test29.sh b/tclap-1.2.1/tests/test29.sh new file mode 100644 index 0000000..15982d8 --- /dev/null +++ b/tclap-1.2.1/tests/test29.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure... no hex here, but see test19.cpp for how to use hex +../examples/test2 -i 0xA -f 4.2 -s asdf asdf > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test29.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test3.out b/tclap-1.2.1/tests/test3.out new file mode 100644 index 0000000..6c0e533 --- /dev/null +++ b/tclap-1.2.1/tests/test3.out @@ -0,0 +1 @@ +My name (spelled backwards) is: ekim diff --git a/tclap-1.2.1/tests/test3.sh b/tclap-1.2.1/tests/test3.sh new file mode 100644 index 0000000..26ccacf --- /dev/null +++ b/tclap-1.2.1/tests/test3.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test1 -n mike -r > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test3.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test30.out b/tclap-1.2.1/tests/test30.out new file mode 100644 index 0000000..7a8083b --- /dev/null +++ b/tclap-1.2.1/tests/test30.out @@ -0,0 +1,10 @@ +PARSE ERROR: Argument: -i (--intTest) + Couldn't read argument value from string '2.1' + +Brief USAGE: + ../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--] + [--version] [-h] <string> <string> ... + +For complete USAGE and HELP type: + ../examples/test2 --help + diff --git a/tclap-1.2.1/tests/test30.sh b/tclap-1.2.1/tests/test30.sh new file mode 100644 index 0000000..f7c9709 --- /dev/null +++ b/tclap-1.2.1/tests/test30.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test2 -i 2.1 -f 4.2 -s asdf asdf > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test30.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test31.out b/tclap-1.2.1/tests/test31.out new file mode 100644 index 0000000..6853a57 --- /dev/null +++ b/tclap-1.2.1/tests/test31.out @@ -0,0 +1,11 @@ +PARSE ERROR: Argument: -i (--intTest) + Couldn't read argument value from string '9a' + +Brief USAGE: + ../examples/test3 [-f=<float>] ... [-i=<int>] ... + --stringTest=<string> [-B] [--] [--version] [-h] + <string> <string> <fileNameString> ... + +For complete USAGE and HELP type: + ../examples/test3 --help + diff --git a/tclap-1.2.1/tests/test31.sh b/tclap-1.2.1/tests/test31.sh new file mode 100644 index 0000000..07259ea --- /dev/null +++ b/tclap-1.2.1/tests/test31.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test3 -i=9a -i=1 -s=asdf asdf asdf > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test31.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test32.out b/tclap-1.2.1/tests/test32.out new file mode 100644 index 0000000..7d717ed --- /dev/null +++ b/tclap-1.2.1/tests/test32.out @@ -0,0 +1,11 @@ +PARSE ERROR: Argument: -f (--floatTest) + More than one valid value parsed from string '1.0.0' + +Brief USAGE: + ../examples/test3 [-f=<float>] ... [-i=<int>] ... + --stringTest=<string> [-B] [--] [--version] [-h] + <string> <string> <fileNameString> ... + +For complete USAGE and HELP type: + ../examples/test3 --help + diff --git a/tclap-1.2.1/tests/test32.sh b/tclap-1.2.1/tests/test32.sh new file mode 100644 index 0000000..87c12c2 --- /dev/null +++ b/tclap-1.2.1/tests/test32.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test3 -f=9 -f=1.0.0 -s=asdf asdf asdf > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test32.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test33.out b/tclap-1.2.1/tests/test33.out new file mode 100644 index 0000000..733f05c --- /dev/null +++ b/tclap-1.2.1/tests/test33.out @@ -0,0 +1,7 @@ +for J: + 0 o + 1 t +for A OR B we got : asdf +for string C we got : fdas +for string D we got : 1 +for E or F or G we got: blah diff --git a/tclap-1.2.1/tests/test33.sh b/tclap-1.2.1/tests/test33.sh new file mode 100644 index 0000000..210cd09 --- /dev/null +++ b/tclap-1.2.1/tests/test33.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test5 -a asdf -c fdas --eee blah --ddd -j o --jjj t > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test33.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test34.out b/tclap-1.2.1/tests/test34.out new file mode 100644 index 0000000..4280e73 --- /dev/null +++ b/tclap-1.2.1/tests/test34.out @@ -0,0 +1,2 @@ +My name is homer +My name is homer diff --git a/tclap-1.2.1/tests/test34.sh b/tclap-1.2.1/tests/test34.sh new file mode 100644 index 0000000..a9d4bc1 --- /dev/null +++ b/tclap-1.2.1/tests/test34.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test6 -n homer 2 > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test34.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test35.out b/tclap-1.2.1/tests/test35.out new file mode 100644 index 0000000..68d234f --- /dev/null +++ b/tclap-1.2.1/tests/test35.out @@ -0,0 +1,10 @@ +PARSE ERROR: Argument: -n (--name) + Value 'mike' does not meet constraint: homer|marge|bart|lisa|maggie + +Brief USAGE: + ../examples/test6 -n <homer|marge|bart|lisa|maggie> [--] [--version] + [-h] <1|2|3> + +For complete USAGE and HELP type: + ../examples/test6 --help + diff --git a/tclap-1.2.1/tests/test35.sh b/tclap-1.2.1/tests/test35.sh new file mode 100644 index 0000000..db6032e --- /dev/null +++ b/tclap-1.2.1/tests/test35.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test6 -n mike 2 > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test35.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test36.out b/tclap-1.2.1/tests/test36.out new file mode 100644 index 0000000..faf4983 --- /dev/null +++ b/tclap-1.2.1/tests/test36.out @@ -0,0 +1,10 @@ +PARSE ERROR: Argument: (--times) + Value '6' does not meet constraint: 1|2|3 + +Brief USAGE: + ../examples/test6 -n <homer|marge|bart|lisa|maggie> [--] [--version] + [-h] <1|2|3> + +For complete USAGE and HELP type: + ../examples/test6 --help + diff --git a/tclap-1.2.1/tests/test36.sh b/tclap-1.2.1/tests/test36.sh new file mode 100644 index 0000000..4ead7ef --- /dev/null +++ b/tclap-1.2.1/tests/test36.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test6 -n homer 6 > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test36.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test37.out b/tclap-1.2.1/tests/test37.out new file mode 100644 index 0000000..bb395c3 --- /dev/null +++ b/tclap-1.2.1/tests/test37.out @@ -0,0 +1,5 @@ +Got num 2 +Got num 1 +Got num 3 +Got name homer +Got name marge diff --git a/tclap-1.2.1/tests/test37.sh b/tclap-1.2.1/tests/test37.sh new file mode 100644 index 0000000..865fa11 --- /dev/null +++ b/tclap-1.2.1/tests/test37.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test7 -n homer 2 -n marge 1 3 > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test37.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test38.out b/tclap-1.2.1/tests/test38.out new file mode 100644 index 0000000..c06b9f3 --- /dev/null +++ b/tclap-1.2.1/tests/test38.out @@ -0,0 +1,17 @@ +PARSE ERROR: Argument: -n (--name) + Value 'mike' does not meet constraint: homer|marge|bart|lisa|maggie + +Brief USAGE: + ThisIsAVeryLongProgramNameDesignedToTestSpacePrintWhichUsedToHaveProblem + sWithLongProgramNamesIThinkItIsNowL + ongEnough [-l <int>] [-u <float + lte 1>] [-b <float lte 1>] [-z + <filename>] [-x <filename>] [-s + <name string>] [-d] [-g <negative + int>] [-f <negative int>] -n <homer + |marge|bart|lisa|maggie> ... [--] + [--version] [-h] <1|2|3> ... + +For complete USAGE and HELP type: + ThisIsAVeryLongProgramNameDesignedToTestSpacePrintWhichUsedToHaveProblemsWithLongProgramNamesIThinkItIsNowLongEnough --help + diff --git a/tclap-1.2.1/tests/test38.sh b/tclap-1.2.1/tests/test38.sh new file mode 100644 index 0000000..f453af7 --- /dev/null +++ b/tclap-1.2.1/tests/test38.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test7 -n mike 2 1 > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test38.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test39.out b/tclap-1.2.1/tests/test39.out new file mode 100644 index 0000000..bec5c3b --- /dev/null +++ b/tclap-1.2.1/tests/test39.out @@ -0,0 +1,17 @@ +PARSE ERROR: Argument: (--times) + Value '6' does not meet constraint: 1|2|3 + +Brief USAGE: + ThisIsAVeryLongProgramNameDesignedToTestSpacePrintWhichUsedToHaveProblem + sWithLongProgramNamesIThinkItIsNowL + ongEnough [-l <int>] [-u <float + lte 1>] [-b <float lte 1>] [-z + <filename>] [-x <filename>] [-s + <name string>] [-d] [-g <negative + int>] [-f <negative int>] -n <homer + |marge|bart|lisa|maggie> ... [--] + [--version] [-h] <1|2|3> ... + +For complete USAGE and HELP type: + ThisIsAVeryLongProgramNameDesignedToTestSpacePrintWhichUsedToHaveProblemsWithLongProgramNamesIThinkItIsNowLongEnough --help + diff --git a/tclap-1.2.1/tests/test39.sh b/tclap-1.2.1/tests/test39.sh new file mode 100644 index 0000000..8b77d3e --- /dev/null +++ b/tclap-1.2.1/tests/test39.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test7 2 -n homer -n bart 6 > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test39.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test4.out b/tclap-1.2.1/tests/test4.out new file mode 100644 index 0000000..caa2664 --- /dev/null +++ b/tclap-1.2.1/tests/test4.out @@ -0,0 +1,9 @@ +PARSE ERROR: + Required argument missing: name + +Brief USAGE: + ../examples/test1 [-r] -n <string> [--] [--version] [-h] + +For complete USAGE and HELP type: + ../examples/test1 --help + diff --git a/tclap-1.2.1/tests/test4.sh b/tclap-1.2.1/tests/test4.sh new file mode 100644 index 0000000..afaedc7 --- /dev/null +++ b/tclap-1.2.1/tests/test4.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test1 > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test4.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test40.out b/tclap-1.2.1/tests/test40.out new file mode 100644 index 0000000..8cafa16 --- /dev/null +++ b/tclap-1.2.1/tests/test40.out @@ -0,0 +1,26 @@ + +USAGE: + + ../examples/test1 [-r] -n <string> [--] [--version] [-h] + + +Where: + + -r, --reverse + Print name backwards + + -n <string>, --name <string> + (required) Name to print + + --, --ignore_rest + Ignores the rest of the labeled arguments following this flag. + + --version + Displays version information and exits. + + -h, --help + Displays usage information and exits. + + + Command description message + diff --git a/tclap-1.2.1/tests/test40.sh b/tclap-1.2.1/tests/test40.sh new file mode 100644 index 0000000..592e001 --- /dev/null +++ b/tclap-1.2.1/tests/test40.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test1 --help > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test40.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test41.out b/tclap-1.2.1/tests/test41.out new file mode 100644 index 0000000..2f583f5 --- /dev/null +++ b/tclap-1.2.1/tests/test41.out @@ -0,0 +1,45 @@ + +USAGE: + + ../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--] + [--version] [-h] <string> <string> ... + + +Where: + + -f <float>, --floatTest <float> + float test + + -i <int>, --intTest <int> + (required) integer test + + -s <string>, --stringTest <string> + (required) string test + + -A, --existTestA + tests for the existence of A + + -C, --existTestC + tests for the existence of C + + -B, --existTestB + tests for the existence of B + + --, --ignore_rest + Ignores the rest of the labeled arguments following this flag. + + --version + Displays version information and exits. + + -h, --help + Displays usage information and exits. + + <string> + (required) unlabeld test + + <string> (accepted multiple times) + file names + + + this is a message + diff --git a/tclap-1.2.1/tests/test41.sh b/tclap-1.2.1/tests/test41.sh new file mode 100644 index 0000000..7ebc153 --- /dev/null +++ b/tclap-1.2.1/tests/test41.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test2 --help > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test41.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test42.out b/tclap-1.2.1/tests/test42.out new file mode 100644 index 0000000..4c95064 --- /dev/null +++ b/tclap-1.2.1/tests/test42.out @@ -0,0 +1,43 @@ + +USAGE: + + ../examples/test3 [-f=<float>] ... [-i=<int>] ... + --stringTest=<string> [-B] [--] [--version] [-h] + <string> <string> <fileNameString> ... + + +Where: + + -f=<float>, --floatTest=<float> (accepted multiple times) + multi float test + + -i=<int>, --intTest=<int> (accepted multiple times) + multi int test + + --stringTest=<string> + (required) string test + + -B, --existTestB + exist Test B + + --, --ignore_rest + Ignores the rest of the labeled arguments following this flag. + + --version + Displays version information and exits. + + -h, --help + Displays usage information and exits. + + <string> + (required) unlabeled test one + + <string> + (required) unlabeled test two + + <fileNameString> (accepted multiple times) + file names + + + this is a message + diff --git a/tclap-1.2.1/tests/test42.sh b/tclap-1.2.1/tests/test42.sh new file mode 100644 index 0000000..1556498 --- /dev/null +++ b/tclap-1.2.1/tests/test42.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test3 --help > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test42.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test43.out b/tclap-1.2.1/tests/test43.out new file mode 100644 index 0000000..766f462 --- /dev/null +++ b/tclap-1.2.1/tests/test43.out @@ -0,0 +1,7 @@ +my usage message: +-A, --sA (exist Test A) +-B, --sB (exist Test B) +-s <string>, --Bs <string> ((required) string test) +--, --ignore_rest (Ignores the rest of the labeled arguments following this flag.) +--version (Displays version information and exits.) +-h, --help (Displays usage information and exits.) diff --git a/tclap-1.2.1/tests/test43.sh b/tclap-1.2.1/tests/test43.sh new file mode 100644 index 0000000..dba057f --- /dev/null +++ b/tclap-1.2.1/tests/test43.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test4 --help > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test43.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test44.out b/tclap-1.2.1/tests/test44.out new file mode 100644 index 0000000..f246109 --- /dev/null +++ b/tclap-1.2.1/tests/test44.out @@ -0,0 +1,52 @@ + +USAGE: + + ../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff + <string>|-g <string>} {-i <string> ... |-j <string> + ... } [--ddd] -c <string> [--] [--version] [-h] + + +Where: + + -a <string>, --aaa <string> + (OR required) or test a + -- OR -- + -b <string>, --bbb <string> + (OR required) or test b + + + --eee <string> + (OR required) e test + -- OR -- + --fff <string> + (OR required) f test + -- OR -- + -g <string>, --ggg <string> + (OR required) g test + + + -i <string>, --iii <string> (accepted multiple times) + (OR required) or test i + -- OR -- + -j <string>, --jjj <string> (accepted multiple times) + (OR required) or test j + + + --ddd + d test + + -c <string>, --ccc <string> + (required) c test + + --, --ignore_rest + Ignores the rest of the labeled arguments following this flag. + + --version + Displays version information and exits. + + -h, --help + Displays usage information and exits. + + + this is a message + diff --git a/tclap-1.2.1/tests/test44.sh b/tclap-1.2.1/tests/test44.sh new file mode 100644 index 0000000..c379124 --- /dev/null +++ b/tclap-1.2.1/tests/test44.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test5 --help > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test44.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test45.out b/tclap-1.2.1/tests/test45.out new file mode 100644 index 0000000..8edeec9 --- /dev/null +++ b/tclap-1.2.1/tests/test45.out @@ -0,0 +1,28 @@ + +USAGE: + + ../examples/test6 -n <homer|marge|bart|lisa|maggie> [--] [--version] + [-h] <1|2|3> + + +Where: + + -n <homer|marge|bart|lisa|maggie>, --name <homer|marge|bart|lisa + |maggie> + (required) Name to print + + --, --ignore_rest + Ignores the rest of the labeled arguments following this flag. + + --version + Displays version information and exits. + + -h, --help + Displays usage information and exits. + + <1|2|3> + (required) Number of times to print + + + Command description message + diff --git a/tclap-1.2.1/tests/test45.sh b/tclap-1.2.1/tests/test45.sh new file mode 100644 index 0000000..69cdbdd --- /dev/null +++ b/tclap-1.2.1/tests/test45.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test6 --help > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test45.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test46.out b/tclap-1.2.1/tests/test46.out new file mode 100644 index 0000000..8981c67 --- /dev/null +++ b/tclap-1.2.1/tests/test46.out @@ -0,0 +1,66 @@ + +USAGE: + + ThisIsAVeryLongProgramNameDesignedToTestSpacePrintWhichUsedToHaveProblem + sWithLongProgramNamesIThinkItIsNowL + ongEnough [-l <int>] [-u <float + lte 1>] [-b <float lte 1>] [-z + <filename>] [-x <filename>] [-s + <name string>] [-d] [-g <negative + int>] [-f <negative int>] -n <homer + |marge|bart|lisa|maggie> ... [--] + [--version] [-h] <1|2|3> ... + + +Where: + + -l <int>, --limit <int> + Max number of alignments allowed + + -u <float lte 1>, --upperBound <float lte 1> + upper percentage bound + + -b <float lte 1>, --lowerBound <float lte 1> + lower percentage bound + + -z <filename>, --filename2 <filename> + Sequence 2 filename (FASTA format) + + -x <filename>, --filename1 <filename> + Sequence 1 filename (FASTA format) + + -s <name string>, --scoring--Matrix <name string> + Scoring Matrix name + + -d, --isDna + The input sequences are DNA + + -g <negative int>, --gap-Extend <negative int> + The cost for each extension of a gap + + -f <negative int>, --gapCreate <negative int> + The cost of creating a gap + + -n <homer|marge|bart|lisa|maggie>, --name <homer|marge|bart|lisa + |maggie> (accepted multiple times) + (required) Name to print. This is a long, nonsensical message to test + line wrapping. Hopefully it works. + + --, --ignore_rest + Ignores the rest of the labeled arguments following this flag. + + --version + Displays version information and exits. + + -h, --help + Displays usage information and exits. + + <1|2|3> (accepted multiple times) + Number of times to print + + + Command description message. This is a long multi-line message meant to + test line wrapping. This is more text that doesn't really do anything + besides take up lots of space that otherwise might be used for something + real. That should be enough, don't you think? + diff --git a/tclap-1.2.1/tests/test46.sh b/tclap-1.2.1/tests/test46.sh new file mode 100644 index 0000000..cf033ac --- /dev/null +++ b/tclap-1.2.1/tests/test46.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test7 --help > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test46.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test47.out b/tclap-1.2.1/tests/test47.out new file mode 100644 index 0000000..076f079 --- /dev/null +++ b/tclap-1.2.1/tests/test47.out @@ -0,0 +1,7 @@ +[-i] 0 9 +[-i] 1 8 +[ ] 0 bart +for string we got : bill +for ulabeled one we got : homer +for ulabeled two we got : marge +for bool B we got : 1 diff --git a/tclap-1.2.1/tests/test47.sh b/tclap-1.2.1/tests/test47.sh new file mode 100644 index 0000000..4bfdddc --- /dev/null +++ b/tclap-1.2.1/tests/test47.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test8 -s=bill -i=9 -i=8 -B homer marge bart > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test47.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test48.out b/tclap-1.2.1/tests/test48.out new file mode 100644 index 0000000..404d810 --- /dev/null +++ b/tclap-1.2.1/tests/test48.out @@ -0,0 +1,7 @@ +[ ] 0 bart +[ ] 1 one +[ ] 2 two +for string we got : aaa +for ulabeled one we got : homer +for ulabeled two we got : marge +for bool B we got : 0 diff --git a/tclap-1.2.1/tests/test48.sh b/tclap-1.2.1/tests/test48.sh new file mode 100644 index 0000000..2efa2e2 --- /dev/null +++ b/tclap-1.2.1/tests/test48.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test8 -s=aaa homer marge bart -- one two > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test48.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test49.out b/tclap-1.2.1/tests/test49.out new file mode 100644 index 0000000..f38c950 --- /dev/null +++ b/tclap-1.2.1/tests/test49.out @@ -0,0 +1,11 @@ +PARSE ERROR: Argument: -s (--stringTest) + Couldn't find delimiter for this argument! + +Brief USAGE: + ../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B] + [--] [--version] [-h] <string> <string> + <fileNameString> ... + +For complete USAGE and HELP type: + ../examples/test8 --help + diff --git a/tclap-1.2.1/tests/test49.sh b/tclap-1.2.1/tests/test49.sh new file mode 100644 index 0000000..bc07694 --- /dev/null +++ b/tclap-1.2.1/tests/test49.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test8 -s bbb homer marge bart -- -hv two > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test49.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test5.out b/tclap-1.2.1/tests/test5.out new file mode 100644 index 0000000..43367e9 --- /dev/null +++ b/tclap-1.2.1/tests/test5.out @@ -0,0 +1,9 @@ +0 bart +1 lisa +for float we got : 3.7 +for int we got : 10 +for string we got : homer +for ulabeled we got : marge +for bool A we got : 0 +for bool B we got : 0 +for bool C we got : 0 diff --git a/tclap-1.2.1/tests/test5.sh b/tclap-1.2.1/tests/test5.sh new file mode 100644 index 0000000..7c3618e --- /dev/null +++ b/tclap-1.2.1/tests/test5.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test2 -i 10 -s homer marge bart lisa > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test5.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test50.out b/tclap-1.2.1/tests/test50.out new file mode 100644 index 0000000..f38c950 --- /dev/null +++ b/tclap-1.2.1/tests/test50.out @@ -0,0 +1,11 @@ +PARSE ERROR: Argument: -s (--stringTest) + Couldn't find delimiter for this argument! + +Brief USAGE: + ../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B] + [--] [--version] [-h] <string> <string> + <fileNameString> ... + +For complete USAGE and HELP type: + ../examples/test8 --help + diff --git a/tclap-1.2.1/tests/test50.sh b/tclap-1.2.1/tests/test50.sh new file mode 100644 index 0000000..7c027ad --- /dev/null +++ b/tclap-1.2.1/tests/test50.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test8 -s one homer -B -Bh > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test50.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test51.out b/tclap-1.2.1/tests/test51.out new file mode 100644 index 0000000..e957e5c --- /dev/null +++ b/tclap-1.2.1/tests/test51.out @@ -0,0 +1,11 @@ +PARSE ERROR: + Required argument missing: unTest2 + +Brief USAGE: + ../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B] + [--] [--version] [-h] <string> <string> + <fileNameString> ... + +For complete USAGE and HELP type: + ../examples/test8 --help + diff --git a/tclap-1.2.1/tests/test51.sh b/tclap-1.2.1/tests/test51.sh new file mode 100644 index 0000000..b7921dc --- /dev/null +++ b/tclap-1.2.1/tests/test51.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test8 -s=one homer -B > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test51.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test52.out b/tclap-1.2.1/tests/test52.out new file mode 100644 index 0000000..aaf4e18 --- /dev/null +++ b/tclap-1.2.1/tests/test52.out @@ -0,0 +1,11 @@ +PARSE ERROR: Argument: -i (--intTest) + Couldn't read argument value from string '9a' + +Brief USAGE: + ../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B] + [--] [--version] [-h] <string> <string> + <fileNameString> ... + +For complete USAGE and HELP type: + ../examples/test8 --help + diff --git a/tclap-1.2.1/tests/test52.sh b/tclap-1.2.1/tests/test52.sh new file mode 100644 index 0000000..85a28f7 --- /dev/null +++ b/tclap-1.2.1/tests/test52.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test8 -i=9a -i=1 -s=asdf asdf asdf > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test52.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test53.out b/tclap-1.2.1/tests/test53.out new file mode 100644 index 0000000..e791c7f --- /dev/null +++ b/tclap-1.2.1/tests/test53.out @@ -0,0 +1,11 @@ +PARSE ERROR: Argument: -f (--floatTest) + More than one valid value parsed from string '1.0.0' + +Brief USAGE: + ../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B] + [--] [--version] [-h] <string> <string> + <fileNameString> ... + +For complete USAGE and HELP type: + ../examples/test8 --help + diff --git a/tclap-1.2.1/tests/test53.sh b/tclap-1.2.1/tests/test53.sh new file mode 100644 index 0000000..0e1ef42 --- /dev/null +++ b/tclap-1.2.1/tests/test53.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test8 -f=9 -f=1.0.0 -s=asdf asdf asdf > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test53.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test54.out b/tclap-1.2.1/tests/test54.out new file mode 100644 index 0000000..9837b22 --- /dev/null +++ b/tclap-1.2.1/tests/test54.out @@ -0,0 +1,43 @@ + +USAGE: + + ../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B] + [--] [--version] [-h] <string> <string> + <fileNameString> ... + + +Where: + + -f=<float>, --floatTest=<float> (accepted multiple times) + multi float test + + -i=<int>, --intTest=<int> (accepted multiple times) + multi int test + + -s=<string>, --stringTest=<string> + (required) string test + + -B, --existTestB + exist Test B + + --, --ignore_rest + Ignores the rest of the labeled arguments following this flag. + + --version + Displays version information and exits. + + -h, --help + Displays usage information and exits. + + <string> + (required) unlabeled test one + + <string> + (required) unlabeled test two + + <fileNameString> (accepted multiple times) + file names + + + this is a message + diff --git a/tclap-1.2.1/tests/test54.sh b/tclap-1.2.1/tests/test54.sh new file mode 100644 index 0000000..d38ecca --- /dev/null +++ b/tclap-1.2.1/tests/test54.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test8 --help > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test54.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test55.out b/tclap-1.2.1/tests/test55.out new file mode 100644 index 0000000..3105e3d --- /dev/null +++ b/tclap-1.2.1/tests/test55.out @@ -0,0 +1,6 @@ +[ ] 0 zero +[ ] 1 one +for string we got : asdf +for ulabeled one we got : - +for ulabeled two we got : asdf +for bool B we got : 0 diff --git a/tclap-1.2.1/tests/test55.sh b/tclap-1.2.1/tests/test55.sh new file mode 100644 index 0000000..c0526d5 --- /dev/null +++ b/tclap-1.2.1/tests/test55.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test3 --stringTest=asdf - asdf zero one > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test55.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test56.out b/tclap-1.2.1/tests/test56.out new file mode 100644 index 0000000..f77f3ba --- /dev/null +++ b/tclap-1.2.1/tests/test56.out @@ -0,0 +1,9 @@ +0 one +1 two +for float we got : 3.7 +for int we got : 1 +for string we got : fdsa +for ulabeled we got : - +for bool A we got : 0 +for bool B we got : 0 +for bool C we got : 0 diff --git a/tclap-1.2.1/tests/test56.sh b/tclap-1.2.1/tests/test56.sh new file mode 100644 index 0000000..8a06a83 --- /dev/null +++ b/tclap-1.2.1/tests/test56.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test2 -i 1 - -s fdsa one two > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test56.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test57.out b/tclap-1.2.1/tests/test57.out new file mode 100644 index 0000000..eabdc27 --- /dev/null +++ b/tclap-1.2.1/tests/test57.out @@ -0,0 +1,11 @@ +PARSE ERROR: Argument: -i (--iii) + Mutually exclusive argument already set! + +Brief USAGE: + ../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff + <string>|-g <string>} {-i <string> ... |-j <string> + ... } [--ddd] -c <string> [--] [--version] [-h] + +For complete USAGE and HELP type: + ../examples/test5 --help + diff --git a/tclap-1.2.1/tests/test57.sh b/tclap-1.2.1/tests/test57.sh new file mode 100644 index 0000000..5256b8f --- /dev/null +++ b/tclap-1.2.1/tests/test57.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# failure +# This used to fail on the "Too many arguments!" but now fails sooner, +# and on a more approriate error. +../examples/test5 --aaa asdf -c fdas --fff blah -i one -i two -j huh > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test57.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test58.out b/tclap-1.2.1/tests/test58.out new file mode 100644 index 0000000..ee9ac0e --- /dev/null +++ b/tclap-1.2.1/tests/test58.out @@ -0,0 +1 @@ +FORWARD diff --git a/tclap-1.2.1/tests/test58.sh b/tclap-1.2.1/tests/test58.sh new file mode 100644 index 0000000..6294fd5 --- /dev/null +++ b/tclap-1.2.1/tests/test58.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test9 > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test58.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test59.out b/tclap-1.2.1/tests/test59.out new file mode 100644 index 0000000..7460c6d --- /dev/null +++ b/tclap-1.2.1/tests/test59.out @@ -0,0 +1,4 @@ +REVERSE +Verbose level: 3 +Noise level: 7 +Word: blah diff --git a/tclap-1.2.1/tests/test59.sh b/tclap-1.2.1/tests/test59.sh new file mode 100644 index 0000000..c2a04bd --- /dev/null +++ b/tclap-1.2.1/tests/test59.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test9 -VVV -N --noise -r blah > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test59.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test6.out b/tclap-1.2.1/tests/test6.out new file mode 100644 index 0000000..feb3cfd --- /dev/null +++ b/tclap-1.2.1/tests/test6.out @@ -0,0 +1,7 @@ +for float we got : 3.7 +for int we got : 10 +for string we got : hello +for ulabeled we got : goodbye +for bool A we got : 1 +for bool B we got : 1 +for bool C we got : 1 diff --git a/tclap-1.2.1/tests/test6.sh b/tclap-1.2.1/tests/test6.sh new file mode 100644 index 0000000..9e7f8b7 --- /dev/null +++ b/tclap-1.2.1/tests/test6.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test2 -i 10 -s hello goodbye -ABC > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test6.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test60.out b/tclap-1.2.1/tests/test60.out new file mode 100644 index 0000000..d96dcea --- /dev/null +++ b/tclap-1.2.1/tests/test60.out @@ -0,0 +1,29 @@ +PARSE ERROR: Argument: -r (--reverse) + Argument already set! + + +USAGE: + + ../examples/test9 [-N] ... [-V] ... [-r] [--] <won't see this> + + +Where: + + -N, --noise (accepted multiple times) + Level of noise + + -V, --verbose (accepted multiple times) + Level of verbosity + + -r, --reverse + REVERSE instead of FORWARDS + + --, --ignore_rest + Ignores the rest of the labeled arguments following this flag. + + <won't see this> + a random word + + + Command description message + diff --git a/tclap-1.2.1/tests/test60.sh b/tclap-1.2.1/tests/test60.sh new file mode 100644 index 0000000..d73e0d3 --- /dev/null +++ b/tclap-1.2.1/tests/test60.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# failure +../examples/test9 -VVV -N --noise -rr > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test60.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test61.out b/tclap-1.2.1/tests/test61.out new file mode 100644 index 0000000..66777a6 --- /dev/null +++ b/tclap-1.2.1/tests/test61.out @@ -0,0 +1,7 @@ +for float we got : 3.7 +for int we got : 10 +for string we got : hello +for ulabeled we got : -1 -1 +for bool A we got : 0 +for bool B we got : 0 +for bool C we got : 0 diff --git a/tclap-1.2.1/tests/test61.sh b/tclap-1.2.1/tests/test61.sh new file mode 100644 index 0000000..a402880 --- /dev/null +++ b/tclap-1.2.1/tests/test61.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# this tests a bug in handling of - chars in Unlabeled args +# success +../examples/test2 -i 10 -s hello "-1 -1" > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test61.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test62.out b/tclap-1.2.1/tests/test62.out new file mode 100644 index 0000000..1fd8d7c --- /dev/null +++ b/tclap-1.2.1/tests/test62.out @@ -0,0 +1,10 @@ +PARSE ERROR: + Required arguments missing: intTest, stringTest, unTest + +Brief USAGE: + ../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--] + [--version] [-h] <string> <string> ... + +For complete USAGE and HELP type: + ../examples/test2 --help + diff --git a/tclap-1.2.1/tests/test62.sh b/tclap-1.2.1/tests/test62.sh new file mode 100644 index 0000000..9b365e3 --- /dev/null +++ b/tclap-1.2.1/tests/test62.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# this tests whether all required args are listed as +# missing when no arguments are specified +# failure +../examples/test2 > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test62.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test63.out b/tclap-1.2.1/tests/test63.out new file mode 100644 index 0000000..b391217 --- /dev/null +++ b/tclap-1.2.1/tests/test63.out @@ -0,0 +1,9 @@ +PARSE ERROR: + Required argument missing: vect + +Brief USAGE: + ../examples/test11 -v <3D vector> [--] [--version] [-h] + +For complete USAGE and HELP type: + ../examples/test11 --help + diff --git a/tclap-1.2.1/tests/test63.sh b/tclap-1.2.1/tests/test63.sh new file mode 100644 index 0000000..69947d3 --- /dev/null +++ b/tclap-1.2.1/tests/test63.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# this tests whether all required args are listed as +# missing when no arguments are specified +# failure +../examples/test11 > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test63.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test64.out b/tclap-1.2.1/tests/test64.out new file mode 100644 index 0000000..46786e9 --- /dev/null +++ b/tclap-1.2.1/tests/test64.out @@ -0,0 +1 @@ +1 2 3 diff --git a/tclap-1.2.1/tests/test64.sh b/tclap-1.2.1/tests/test64.sh new file mode 100644 index 0000000..0090f81 --- /dev/null +++ b/tclap-1.2.1/tests/test64.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# this tests whether all required args are listed as +# missing when no arguments are specified +# failure +../examples/test11 -v "1 2 3" > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test64.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test65.out b/tclap-1.2.1/tests/test65.out new file mode 100644 index 0000000..acab2e6 --- /dev/null +++ b/tclap-1.2.1/tests/test65.out @@ -0,0 +1,9 @@ +1 2 3 +4 5 6 +7 8 9 +-1 0.2 0.4 +REVERSED +-1 0.2 0.4 +7 8 9 +4 5 6 +1 2 3 diff --git a/tclap-1.2.1/tests/test65.sh b/tclap-1.2.1/tests/test65.sh new file mode 100644 index 0000000..1b737c7 --- /dev/null +++ b/tclap-1.2.1/tests/test65.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +# this tests whether all required args are listed as +# missing when no arguments are specified +# failure +../examples/test12 -v "1 2 3" -v "4 5 6" -v "7 8 9" -v "-1 0.2 0.4" \ + > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test65.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test66.out b/tclap-1.2.1/tests/test66.out new file mode 100644 index 0000000..507762b --- /dev/null +++ b/tclap-1.2.1/tests/test66.out @@ -0,0 +1,9 @@ +PARSE ERROR: + Required argument missing: vect + +Brief USAGE: + ../examples/test12 -v <3D vector> ... [--] [--version] [-h] + +For complete USAGE and HELP type: + ../examples/test12 --help + diff --git a/tclap-1.2.1/tests/test66.sh b/tclap-1.2.1/tests/test66.sh new file mode 100644 index 0000000..99ca94e --- /dev/null +++ b/tclap-1.2.1/tests/test66.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# this tests whether all required args are listed as +# missing when no arguments are specified +# failure +../examples/test12 > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test66.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test67.out b/tclap-1.2.1/tests/test67.out new file mode 100644 index 0000000..dccc0ab --- /dev/null +++ b/tclap-1.2.1/tests/test67.out @@ -0,0 +1,9 @@ +PARSE ERROR: Argument: -v (--vect) + a 1 0.3 is not a 3D vector + +Brief USAGE: + ../examples/test12 -v <3D vector> ... [--] [--version] [-h] + +For complete USAGE and HELP type: + ../examples/test12 --help + diff --git a/tclap-1.2.1/tests/test67.sh b/tclap-1.2.1/tests/test67.sh new file mode 100644 index 0000000..72bf285 --- /dev/null +++ b/tclap-1.2.1/tests/test67.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# this tests whether all required args are listed as +# missing when no arguments are specified +# failure +../examples/test12 -v "a 1 0.3" > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test67.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test68.out b/tclap-1.2.1/tests/test68.out new file mode 100644 index 0000000..912bb3b --- /dev/null +++ b/tclap-1.2.1/tests/test68.out @@ -0,0 +1,3 @@ +module +MultiSwtichArg was found 0 times. +done... diff --git a/tclap-1.2.1/tests/test68.sh b/tclap-1.2.1/tests/test68.sh new file mode 100644 index 0000000..c8f19d7 --- /dev/null +++ b/tclap-1.2.1/tests/test68.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# this tests whether we can parse args from +# a vector of strings and that combined switch +# handling doesn't get fooled if the delimiter +# is in the string +# success +../examples/test13 > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test68.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test69.out b/tclap-1.2.1/tests/test69.out new file mode 100644 index 0000000..a26b21e --- /dev/null +++ b/tclap-1.2.1/tests/test69.out @@ -0,0 +1 @@ +error: Couldn't find match for argument for arg Argument: --bob diff --git a/tclap-1.2.1/tests/test69.sh b/tclap-1.2.1/tests/test69.sh new file mode 100644 index 0000000..843b9ce --- /dev/null +++ b/tclap-1.2.1/tests/test69.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# Checks that parsing exceptions are properly +# propagated to the caller. +../examples/test18 --bob > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test69.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test7.out b/tclap-1.2.1/tests/test7.out new file mode 100644 index 0000000..2f583f5 --- /dev/null +++ b/tclap-1.2.1/tests/test7.out @@ -0,0 +1,45 @@ + +USAGE: + + ../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--] + [--version] [-h] <string> <string> ... + + +Where: + + -f <float>, --floatTest <float> + float test + + -i <int>, --intTest <int> + (required) integer test + + -s <string>, --stringTest <string> + (required) string test + + -A, --existTestA + tests for the existence of A + + -C, --existTestC + tests for the existence of C + + -B, --existTestB + tests for the existence of B + + --, --ignore_rest + Ignores the rest of the labeled arguments following this flag. + + --version + Displays version information and exits. + + -h, --help + Displays usage information and exits. + + <string> + (required) unlabeld test + + <string> (accepted multiple times) + file names + + + this is a message + diff --git a/tclap-1.2.1/tests/test7.sh b/tclap-1.2.1/tests/test7.sh new file mode 100644 index 0000000..4f92d8d --- /dev/null +++ b/tclap-1.2.1/tests/test7.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test2 -i 10 -s hello goodbye -hABC > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test7.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test70.out b/tclap-1.2.1/tests/test70.out new file mode 100644 index 0000000..afba767 --- /dev/null +++ b/tclap-1.2.1/tests/test70.out @@ -0,0 +1,21 @@ + +USAGE: + + ../examples/test18 [--] [--version] [-h] + + +Where: + + --, --ignore_rest + Ignores the rest of the labeled arguments following this flag. + + --version + Displays version information and exits. + + -h, --help + Displays usage information and exits. + + + Command description message + +Exiting on ExitException. diff --git a/tclap-1.2.1/tests/test70.sh b/tclap-1.2.1/tests/test70.sh new file mode 100644 index 0000000..596d404 --- /dev/null +++ b/tclap-1.2.1/tests/test70.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# Checks that parsing exceptions are properly +# propagated to the caller. +../examples/test18 --help > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test70.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test71.out b/tclap-1.2.1/tests/test71.out new file mode 100644 index 0000000..9fda70a --- /dev/null +++ b/tclap-1.2.1/tests/test71.out @@ -0,0 +1 @@ +found int: 10 diff --git a/tclap-1.2.1/tests/test71.sh b/tclap-1.2.1/tests/test71.sh new file mode 100644 index 0000000..0e418d5 --- /dev/null +++ b/tclap-1.2.1/tests/test71.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success test hex +../examples/test19 -i 0xA > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test71.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test72.out b/tclap-1.2.1/tests/test72.out new file mode 100644 index 0000000..9fda70a --- /dev/null +++ b/tclap-1.2.1/tests/test72.out @@ -0,0 +1 @@ +found int: 10 diff --git a/tclap-1.2.1/tests/test72.sh b/tclap-1.2.1/tests/test72.sh new file mode 100644 index 0000000..d62b74a --- /dev/null +++ b/tclap-1.2.1/tests/test72.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success test octal +../examples/test19 -i 012 > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test72.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test73.out b/tclap-1.2.1/tests/test73.out new file mode 100644 index 0000000..1b45a51 --- /dev/null +++ b/tclap-1.2.1/tests/test73.out @@ -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 diff --git a/tclap-1.2.1/tests/test73.sh b/tclap-1.2.1/tests/test73.sh new file mode 100644 index 0000000..8556ca4 --- /dev/null +++ b/tclap-1.2.1/tests/test73.sh @@ -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 + diff --git a/tclap-1.2.1/tests/test74.out b/tclap-1.2.1/tests/test74.out new file mode 100644 index 0000000..36013d9 --- /dev/null +++ b/tclap-1.2.1/tests/test74.out @@ -0,0 +1,9 @@ +PARSE ERROR: Argument: -b (--btmc) + Mutually exclusive argument already set! + +Brief USAGE: + ../examples/test20 {-a|-b} [--] [--version] [-h] + +For complete USAGE and HELP type: + ../examples/test20 --help + diff --git a/tclap-1.2.1/tests/test74.sh b/tclap-1.2.1/tests/test74.sh new file mode 100644 index 0000000..fff59e9 --- /dev/null +++ b/tclap-1.2.1/tests/test74.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# failure validates that the correct error message +# is displayed for XOR'd args +../examples/test20 -a -b > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test74.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test75.out b/tclap-1.2.1/tests/test75.out new file mode 100644 index 0000000..9686405 --- /dev/null +++ b/tclap-1.2.1/tests/test75.out @@ -0,0 +1,9 @@ +PARSE ERROR: Argument: -a (--atmc) + Mutually exclusive argument already set! + +Brief USAGE: + ../examples/test20 {-a|-b} [--] [--version] [-h] + +For complete USAGE and HELP type: + ../examples/test20 --help + diff --git a/tclap-1.2.1/tests/test75.sh b/tclap-1.2.1/tests/test75.sh new file mode 100644 index 0000000..99bba2c --- /dev/null +++ b/tclap-1.2.1/tests/test75.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# failure validates that the correct error message +# is displayed for XOR'd args +../examples/test20 -b -a > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test75.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test76.out b/tclap-1.2.1/tests/test76.out new file mode 100644 index 0000000..36013d9 --- /dev/null +++ b/tclap-1.2.1/tests/test76.out @@ -0,0 +1,9 @@ +PARSE ERROR: Argument: -b (--btmc) + Mutually exclusive argument already set! + +Brief USAGE: + ../examples/test20 {-a|-b} [--] [--version] [-h] + +For complete USAGE and HELP type: + ../examples/test20 --help + diff --git a/tclap-1.2.1/tests/test76.sh b/tclap-1.2.1/tests/test76.sh new file mode 100644 index 0000000..3f5f854 --- /dev/null +++ b/tclap-1.2.1/tests/test76.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# failure validates that the correct error message +# is displayed for XOR'd args +../examples/test20 -ba > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test76.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test77.out b/tclap-1.2.1/tests/test77.out new file mode 100644 index 0000000..36013d9 --- /dev/null +++ b/tclap-1.2.1/tests/test77.out @@ -0,0 +1,9 @@ +PARSE ERROR: Argument: -b (--btmc) + Mutually exclusive argument already set! + +Brief USAGE: + ../examples/test20 {-a|-b} [--] [--version] [-h] + +For complete USAGE and HELP type: + ../examples/test20 --help + diff --git a/tclap-1.2.1/tests/test77.sh b/tclap-1.2.1/tests/test77.sh new file mode 100644 index 0000000..745d93b --- /dev/null +++ b/tclap-1.2.1/tests/test77.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# failure validates that the correct error message +# is displayed for XOR'd args +../examples/test20 -ab > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test77.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test78.out b/tclap-1.2.1/tests/test78.out new file mode 100644 index 0000000..6c0e533 --- /dev/null +++ b/tclap-1.2.1/tests/test78.out @@ -0,0 +1 @@ +My name (spelled backwards) is: ekim diff --git a/tclap-1.2.1/tests/test78.sh b/tclap-1.2.1/tests/test78.sh new file mode 100644 index 0000000..b02ff4d --- /dev/null +++ b/tclap-1.2.1/tests/test78.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test21 ~~reverse /n mike > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test78.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test8.out b/tclap-1.2.1/tests/test8.out new file mode 100644 index 0000000..1b4af57 --- /dev/null +++ b/tclap-1.2.1/tests/test8.out @@ -0,0 +1,3 @@ + +../examples/test2 version: 0.99 + diff --git a/tclap-1.2.1/tests/test8.sh b/tclap-1.2.1/tests/test8.sh new file mode 100644 index 0000000..798f6a3 --- /dev/null +++ b/tclap-1.2.1/tests/test8.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test2 --version > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test8.out; then + exit 0 +else + exit 1 +fi + diff --git a/tclap-1.2.1/tests/test9.out b/tclap-1.2.1/tests/test9.out new file mode 100644 index 0000000..3575646 --- /dev/null +++ b/tclap-1.2.1/tests/test9.out @@ -0,0 +1,10 @@ +0 -hv +1 one +2 two +for float we got : 3.7 +for int we got : 10 +for string we got : hello +for ulabeled we got : goodbye +for bool A we got : 0 +for bool B we got : 0 +for bool C we got : 0 diff --git a/tclap-1.2.1/tests/test9.sh b/tclap-1.2.1/tests/test9.sh new file mode 100644 index 0000000..e3b1bf4 --- /dev/null +++ b/tclap-1.2.1/tests/test9.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# success +../examples/test2 -i 10 -s hello goodbye -- -hv one two > tmp.out 2>&1 + +if cmp -s tmp.out $srcdir/test9.out; then + exit 0 +else + exit 1 +fi + |