Mercurial > hg > octave-lojdl > gnulib-hg
changeset 12227:84db083586d0
test-update-copyright: update test to match script changes
* tests/test-update-copyright.sh: Avoid hard-coding perl
location. Don't update *.bak created by earlier runs.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Mon, 02 Nov 2009 10:23:33 -0700 |
parents | c878d857a1d2 |
children | 465038ef6bc4 |
files | ChangeLog tests/test-update-copyright.sh |
diffstat | 2 files changed, 15 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-11-02 Eric Blake <ebb9@byu.net> + + test-update-copyright: update test to match script changes + * tests/test-update-copyright.sh: Avoid hard-coding perl + location. Don't update *.bak created by earlier runs. + 2009-11-02 Paul Eggert <eggert@cs.ucla.edu> Simon Josefsson <simon@josefsson.org> Bruno Haible <bruno@clisp.org>
--- a/tests/test-update-copyright.sh +++ b/tests/test-update-copyright.sh @@ -32,7 +32,12 @@ TMP=$TMP_BASE s=$TMP-script -printf '#!/usr/bin/perl -pi\ns/a/b/\n' > $s +cat <<\EOF > $s +eval '(exit $?0)' && eval 'exec perl -wS -0777 -pi "$0" ${1+"$@"}' + & eval 'exec perl -wS -0777 -pi "$0" $argv:q' + if 0; +s/a/b/ +EOF chmod a+x $s echo a > $TMP-in ./$s $TMP-in 2>/dev/null && test b = "`cat $TMP-in 2>/dev/null`" || @@ -82,6 +87,7 @@ # Foundation, Inc. EOF +rm -f $TMP.*.bak UPDATE_COPYRIGHT_YEAR=2009 \ update-copyright $TMP.* 1> $TMP-stdout 2> $TMP-stderr compare /dev/null $TMP-stdout || exit 1 @@ -124,6 +130,7 @@ # Foundation, Inc. EOF +rm -f $TMP.*.bak UPDATE_COPYRIGHT_YEAR=2010 UPDATE_COPYRIGHT_USE_INTERVALS=1 \ update-copyright $TMP.* 1> $TMP-stdout 2> $TMP-stderr compare /dev/null $TMP-stdout || exit 1 @@ -162,6 +169,7 @@ # Copyright (C) 1990-2005, 2007-2010 Free Software Foundation, Inc. EOF +rm -f $TMP.*.bak UPDATE_COPYRIGHT_YEAR=2010 UPDATE_COPYRIGHT_FORCE=1 \ update-copyright $TMP.* 1> $TMP-stdout 2> $TMP-stderr compare /dev/null $TMP-stdout || exit 1