From: Simon Josefsson Date: Mon, 27 Oct 2008 12:51:04 +0000 (+0100) Subject: Set and use EXEEXT. X-Git-Tag: v0.1~6756 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=f27ea4d35597f50a19c1a5e8c123a31ee5233d40;p=gnulib.git Set and use EXEEXT. --- diff --git a/ChangeLog b/ChangeLog index f1d6f7884..026dc3b77 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2008-10-27 Simon Josefsson + * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in + TESTS_ENVIRONMENT, for shell scripts that needs to call built + programs. + * tests/test-argp-2.sh: Use $EXEEXT when needed. + +2008-10-27 Simon Josefsson + * lib/sys_stat.in.h (lstat): Fix declaration for mingw. 2008-10-27 Bruno Haible diff --git a/gnulib-tool b/gnulib-tool index b0f4c1884..c6d9dc152 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -2012,7 +2012,7 @@ func_emit_tests_Makefile_am () # "AM_GNU_GETTEXT used but SUBDIRS not defined" echo "SUBDIRS =" echo "TESTS =" - echo "TESTS_ENVIRONMENT =" + echo "TESTS_ENVIRONMENT = EXEEXT=\$(EXEEXT)" echo "noinst_PROGRAMS =" if ! $for_test; then echo "check_PROGRAMS =" diff --git a/tests/test-argp-2.sh b/tests/test-argp-2.sh index a3c2fe55e..39132bc4c 100755 --- a/tests/test-argp-2.sh +++ b/tests/test-argp-2.sh @@ -39,7 +39,7 @@ Usage: test-argp [-tvCSOlp?V] [-f FILE] [-o[ARG]] [--test] [--file=FILE] [--version] ARGS... EOT -./test-argp --usage | func_compare || ERR=1 +./test-argp$EXEEXT --usage | func_compare || ERR=1 #### # Test working usage-indent format @@ -50,7 +50,7 @@ Usage: test-argp [-tvCSOlp?V] [-f FILE] [-o[ARG]] [--test] [--file=FILE] [--limerick] [--poem] [--help] [--usage] [--version] ARGS... EOT -ARGP_HELP_FMT='usage-indent=0' ./test-argp --usage | func_compare || ERR=1 +ARGP_HELP_FMT='usage-indent=0' ./test-argp$EXEEXT --usage | func_compare || ERR=1 #### # Test --help output @@ -93,16 +93,16 @@ for any corresponding short options. Report bugs to <>. EOT -./test-argp --help | func_compare || ERR=1 +./test-argp$EXEEXT --help | func_compare || ERR=1 #### # Test ambiguous option handling -./test-argp --optio 2>/dev/null && ERR=1 +./test-argp$EXEEXT --optio 2>/dev/null && ERR=1 #### # Run built-in tests -./test-argp || ERR=1 +./test-argp$EXEEXT || ERR=1 rm $TMP