+2009-08-13 Simon Josefsson <simon@josefsson.org>
+
+ * tests/test-version-etc.sh: Don't fail on different
+ project/version. Don't fail on CRLF differences. Rewrite to use
+ multiple -e instead of multiple sed forks, suggested by Eric Blake
+ <ebb9@byu.net>.
+ * tests/test-argp-version-etc-1.sh: Likewise.
+
2009-08-13 Simon Josefsson <simon@josefsson.org>
* tests/test-version-etc.sh: Don't fail on different
EOT
./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/' |
+ sed \
+ -e '2s/Copyright (C) [0-9]\{4,4\} Free Software Foundation, Inc\./COPYRIGHT/' \
+ -e '1s/test-argp-version-etc (.*) .*/test-argp-version-etc (PROJECT) VERSION/' \
+ -e 's/\r//g' |
diff -c $TMP - || ERR=1
rm $TMP
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/' |
+ sed \
+ -e '2s/Copyright (C) [0-9]\{4,4\}/COPYRIGHT/' \
+ -e '1s/test-version-etc (.*) .*/test-version-etc (PROJECT) VERSION/' \
+ -e 's/\r//g' |
diff -c $TMP - || ERR=1
rm $TMP