[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
test-argp-version-etc
From: |
Simon Josefsson |
Subject: |
test-argp-version-etc |
Date: |
Mon, 03 Aug 2009 15:48:14 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) |
Sergey,
the self test fails like this when used in a project:
*** ave-expected.tmp Mon Aug 3 15:37:29 2009
--- - Mon Aug 3 15:37:29 2009
***************
*** 1,4 ****
! test-argp-version-etc (dummy) 0
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.
--- 1,4 ----
! test-argp-version-etc (GNU Libidn) 1.16
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.
FAIL: test-argp-version-etc-1.sh
and it doesn't work at all on mingw because of a missing ${EXEEXT}.
How about this patch?
/Simon
diff --git a/ChangeLog b/ChangeLog
index 5f1cf5e..e2be535 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-08-03 Simon Josefsson <address@hidden>
+
+ * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
+ different project/version.
+
2009-08-02 Paolo Bonzini <address@hidden>
Bruno Haible <address@hidden>
diff --git a/tests/test-argp-version-etc-1.sh b/tests/test-argp-version-etc-1.sh
index e0a9575..a3fef97 100755
--- a/tests/test-argp-version-etc-1.sh
+++ b/tests/test-argp-version-etc-1.sh
@@ -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
-
- test-argp-version-etc,
Simon Josefsson <=