Fix argp-version-etc-test module.
authorSimon Josefsson <simon@josefsson.org>
Mon, 3 Aug 2009 13:58:20 +0000 (15:58 +0200)
committerSimon Josefsson <simon@josefsson.org>
Mon, 3 Aug 2009 13:58:20 +0000 (15:58 +0200)
ChangeLog
tests/test-argp-version-etc-1.sh

index 5f1cf5e..e2be535 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-08-03  Simon Josefsson  <simon@josefsson.org>
+
+       * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
+       different project/version.
+
 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
             Bruno Haible  <bruno@clisp.org>
 
index e0a9575..a3fef97 100755 (executable)
@@ -22,7 +22,7 @@ export LC_ALL
 ERR=0
 
 cat > $TMP <<EOT
-test-argp-version-etc (dummy) 0
+test-argp-version-etc (PROJECT) VERSION
 COPYRIGHT
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
 This is free software: you are free to change and redistribute it.
@@ -31,11 +31,11 @@ There is NO WARRANTY, to the extent permitted by law.
 Written by Sergey Poznyakoff.
 EOT
 
-./test-argp-version-etc --version |
+./test-argp-version-etc${EXEEXT} --version |
  sed '2s/Copyright (C) [0-9]\{4,4\} Free Software Foundation, Inc\./COPYRIGHT/' |
+ sed '1s/test-argp-version-etc (.*) .*/test-argp-version-etc (PROJECT) VERSION/' |
  diff -c $TMP - || ERR=1
 
 rm $TMP
 
 exit $ERR
-