version-etc-test: Make it work imported into projects.
authorSimon Josefsson <simon@josefsson.org>
Thu, 13 Aug 2009 11:10:21 +0000 (13:10 +0200)
committerSimon Josefsson <simon@josefsson.org>
Thu, 13 Aug 2009 11:10:21 +0000 (13:10 +0200)
ChangeLog
tests/test-version-etc.sh

index ab44403..ba2ed7e 100644 (file)
--- 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'.
index c88bb93..30b017d 100755 (executable)
@@ -22,7 +22,7 @@ export LC_ALL
 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 @@ EOT
 
 ./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