Set and use EXEEXT.
authorSimon Josefsson <simon@josefsson.org>
Mon, 27 Oct 2008 12:51:04 +0000 (13:51 +0100)
committerSimon Josefsson <simon@josefsson.org>
Mon, 27 Oct 2008 12:51:04 +0000 (13:51 +0100)
ChangeLog
gnulib-tool
tests/test-argp-2.sh

index f1d6f78..026dc3b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2008-10-27  Simon Josefsson  <simon@josefsson.org>
 
+       * 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  <simon@josefsson.org>
+
        * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
 
 2008-10-27  Bruno Haible  <bruno@clisp.org>
index b0f4c18..c6d9dc1 100755 (executable)
@@ -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 ="
index a3c2fe5..39132bc 100755 (executable)
@@ -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