changeset 11821:fb4a525e28c9

version-etc-test: Make it work imported into projects.
author Simon Josefsson <simon@josefsson.org>
date Thu, 13 Aug 2009 13:10:21 +0200
parents 48b5d5434e51
children 5023d4da7f56
files ChangeLog tests/test-version-etc.sh
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-08-13  Simon Josefsson  <simon@josefsson.org>
+
+	* tests/test-version-etc.sh: Don't fail on different
+	project/version.
+
 2009-08-12  Bruno Haible  <bruno@clisp.org>
 
 	Tests for modules 'getopt-posix', 'getopt-gnu'.
--- a/tests/test-version-etc.sh
+++ b/tests/test-version-etc.sh
@@ -22,7 +22,7 @@
 ERR=0
 
 cat > $TMP <<EOT
-test-version-etc (dummy) 0
+test-version-etc (PROJECT) VERSION
 COPYRIGHT Free Software Foundation, Inc.
 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.
@@ -33,6 +33,7 @@
 
 ./test-version-etc${EXEEXT} --version |
  sed '2s/Copyright (C) [0-9]\{4,4\}/COPYRIGHT/' |
+ sed '1s/test-version-etc (.*) .*/test-version-etc (PROJECT) VERSION/' |
  diff -c $TMP - || ERR=1
 
 rm $TMP