]> Savannah Git Hosting - gnulib.git/commitdiff
update-copyright tests: fix to match behavior
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 18 Jun 2023 17:49:10 +0000 (10:49 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 18 Jun 2023 17:49:32 +0000 (10:49 -0700)
* tests/test-update-copyright.sh: Change tests to match new behavior.

ChangeLog
tests/test-update-copyright.sh

index ae3a27d5657d698b2dd342a8228313239cfe6859..f4b9116d4243d126f0ef9b3cf225d45d2710d0a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-06-18  Paul Eggert  <eggert@cs.ucla.edu>
+
+       update-copyright tests: fix to match behavior
+       * tests/test-update-copyright.sh: Change tests to match new behavior.
+
 2023-06-18  Bruno Haible  <bruno@clisp.org>
 
        update-copyright tests: Add tests for man pages.
index 5555aa30096b8781abfc4c4ce174291ffe887a56..8e50419adaa1d2b8c984c6fd8f1caa3774a27127 100755 (executable)
@@ -81,160 +81,160 @@ export UPDATE_COPYRIGHT_MAX_LINE_LENGTH
 ## ----------------------------- ##
 
 TMP=$TMP_BASE-ex
-cat > $TMP.1 <<EOF
+cat > $TMP-1 <<EOF
 Copyright @copyright{} 1990-2005, 2007-2009 Free Software
 Foundation, Inc.
 EOF
-cat > $TMP.2 <<EOF
+cat > $TMP-2 <<EOF
 # Copyright (C) 1990-2005, 2007-2009 Free Software
 # Foundation, Inc.
 EOF
-cat > $TMP.3 <<EOF
+cat > $TMP-3 <<EOF
 /*
  * Copyright &copy; 90,2005,2007-2009
  * Free Software Foundation, Inc.
  */
 EOF
-cat > $TMP.4 <<EOF
+cat > $TMP-4 <<EOF
 ## Copyright (C) 1990-2005, 2007-2009 Free Software
 #  Foundation, Inc.
 EOF
-cat > $TMP.5 <<EOF
+cat > $TMP-5 <<EOF
 Copyright (C) 1990-2005, 2007-2009 Acme, Inc.
 EOF
-cat > $TMP.6 <<EOF
+cat > $TMP-6 <<EOF
 ## Copyright (C) 1990-2005, 2007-2009 Free Software
 #  Foundation, Inc.
 
 Copyright (C) 1990-2005, 2007-2009 Free Software Foundation,
 Inc.
 EOF
-cat > $TMP.7 <<EOF
+cat > $TMP-7 <<EOF
 Copyright (C) 1990-2005, 2007-2009 Acme, Inc.
 
 # Copyright (C) 1990-2005, 2007-2009 Free Software
 # Foundation, Inc.
 EOF
-cat > $TMP.8 <<EOF
+cat > $TMP-8 <<EOF
 Copyright (C) 2008 Free Software Foundation, Inc.
 Copyright (C) 2008 Free Software Foundation, Inc.
 EOF
 
 UPDATE_COPYRIGHT_YEAR=2009 \
-  update-copyright $TMP.? 1> $TMP-stdout 2> $TMP-stderr
+  update-copyright $TMP-? 1> $TMP-stdout 2> $TMP-stderr
 compare /dev/null $TMP-stdout || exit 1
 compare - $TMP-stderr <<EOF || exit 1
-$TMP.4: warning: copyright statement not found
-$TMP.5: warning: copyright statement not found
+$TMP-4: warning: copyright statement not found
+$TMP-5: warning: copyright statement not found
 EOF
-compare - $TMP.1 <<EOF || exit 1
+compare - $TMP-1 <<EOF || exit 1
 Copyright @copyright{} 1990-2005, 2007-2009 Free Software
 Foundation, Inc.
 EOF
-compare - $TMP.2 <<EOF || exit 1
+compare - $TMP-2 <<EOF || exit 1
 # Copyright (C) 1990-2005, 2007-2009 Free Software
 # Foundation, Inc.
 EOF
-compare - $TMP.3 <<EOF || exit 1
+compare - $TMP-3 <<EOF || exit 1
 /*
  * Copyright &copy; 90,2005,2007-2009
  * Free Software Foundation, Inc.
  */
 EOF
-compare - $TMP.4 <<EOF || exit 1
+compare - $TMP-4 <<EOF || exit 1
 ## Copyright (C) 1990-2005, 2007-2009 Free Software
 #  Foundation, Inc.
 EOF
-compare - $TMP.5 <<EOF || exit 1
+compare - $TMP-5 <<EOF || exit 1
 Copyright (C) 1990-2005, 2007-2009 Acme, Inc.
 EOF
-compare - $TMP.6 <<EOF || exit 1
+compare - $TMP-6 <<EOF || exit 1
 ## Copyright (C) 1990-2005, 2007-2009 Free Software
 #  Foundation, Inc.
 
 Copyright (C) 1990-2005, 2007-2009 Free Software Foundation,
 Inc.
 EOF
-compare - $TMP.7 <<EOF || exit 1
+compare - $TMP-7 <<EOF || exit 1
 Copyright (C) 1990-2005, 2007-2009 Acme, Inc.
 
 # Copyright (C) 1990-2005, 2007-2009 Free Software
 # Foundation, Inc.
 EOF
-compare - $TMP.8 <<EOF || exit 1
+compare - $TMP-8 <<EOF || exit 1
 Copyright (C) 2008, 2009 Free Software Foundation, Inc.
 Copyright (C) 2008, 2009 Free Software Foundation, Inc.
 EOF
 
 UPDATE_COPYRIGHT_YEAR=2010 UPDATE_COPYRIGHT_USE_INTERVALS=1 \
-  update-copyright $TMP.? 1> $TMP-stdout 2> $TMP-stderr
+  update-copyright $TMP-? 1> $TMP-stdout 2> $TMP-stderr
 compare /dev/null $TMP-stdout || exit 1
 compare - $TMP-stderr <<EOF || exit 1
-$TMP.4: warning: copyright statement not found
-$TMP.5: warning: copyright statement not found
+$TMP-4: warning: copyright statement not found
+$TMP-5: warning: copyright statement not found
 EOF
-compare - $TMP.1 <<EOF || exit 1
+compare - $TMP-1 <<EOF || exit 1
 Copyright @copyright{} 1990-2005, 2007-2010 Free Software Foundation,
 Inc.
 EOF
-compare - $TMP.2 <<EOF || exit 1
+compare - $TMP-2 <<EOF || exit 1
 # Copyright (C) 1990-2005, 2007-2010 Free Software Foundation, Inc.
 EOF
-compare - $TMP.3 <<EOF || exit 1
+compare - $TMP-3 <<EOF || exit 1
 /*
  * Copyright &copy; 1990, 2005, 2007-2010 Free Software Foundation, Inc.
  */
 EOF
-compare - $TMP.4 <<EOF || exit 1
+compare - $TMP-4 <<EOF || exit 1
 ## Copyright (C) 1990-2005, 2007-2009 Free Software
 #  Foundation, Inc.
 EOF
-compare - $TMP.5 <<EOF || exit 1
+compare - $TMP-5 <<EOF || exit 1
 Copyright (C) 1990-2005, 2007-2009 Acme, Inc.
 EOF
-compare - $TMP.6 <<EOF || exit 1
+compare - $TMP-6 <<EOF || exit 1
 ## Copyright (C) 1990-2005, 2007-2009 Free Software
 #  Foundation, Inc.
 
 Copyright (C) 1990-2005, 2007-2010 Free Software Foundation, Inc.
 EOF
-compare - $TMP.7 <<EOF || exit 1
+compare - $TMP-7 <<EOF || exit 1
 Copyright (C) 1990-2005, 2007-2009 Acme, Inc.
 
 # Copyright (C) 1990-2005, 2007-2010 Free Software Foundation, Inc.
 EOF
 
 UPDATE_COPYRIGHT_YEAR=2010 UPDATE_COPYRIGHT_FORCE=1 \
-  update-copyright $TMP.? 1> $TMP-stdout 2> $TMP-stderr
+  update-copyright $TMP-? 1> $TMP-stdout 2> $TMP-stderr
 compare /dev/null $TMP-stdout || exit 1
 compare - $TMP-stderr <<EOF || exit 1
-$TMP.4: warning: copyright statement not found
-$TMP.5: warning: copyright statement not found
+$TMP-4: warning: copyright statement not found
+$TMP-5: warning: copyright statement not found
 EOF
-compare - $TMP.1 <<EOF || exit 1
+compare - $TMP-1 <<EOF || exit 1
 Copyright @copyright{} 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010
 Free Software Foundation, Inc.
 EOF
-compare - $TMP.2 <<EOF || exit 1
+compare - $TMP-2 <<EOF || exit 1
 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
 # 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010 Free
 # Software Foundation, Inc.
 EOF
-compare - $TMP.3 <<EOF || exit 1
+compare - $TMP-3 <<EOF || exit 1
 /*
  * Copyright &copy; 1990, 2005, 2007, 2008, 2009, 2010 Free Software
  * Foundation, Inc.
  */
 EOF
-compare - $TMP.4 <<EOF || exit 1
+compare - $TMP-4 <<EOF || exit 1
 ## Copyright (C) 1990-2005, 2007-2009 Free Software
 #  Foundation, Inc.
 EOF
-compare - $TMP.5 <<EOF || exit 1
+compare - $TMP-5 <<EOF || exit 1
 Copyright (C) 1990-2005, 2007-2009 Acme, Inc.
 EOF
-compare - $TMP.6 <<EOF || exit 1
+compare - $TMP-6 <<EOF || exit 1
 ## Copyright (C) 1990-2005, 2007-2009 Free Software
 #  Foundation, Inc.
 
@@ -242,7 +242,7 @@ Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010 Free
 Software Foundation, Inc.
 EOF
-compare - $TMP.7 <<EOF || exit 1
+compare - $TMP-7 <<EOF || exit 1
 Copyright (C) 1990-2005, 2007-2009 Acme, Inc.
 
 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
@@ -275,10 +275,10 @@ UPDATE_COPYRIGHT_YEAR=2010 UPDATE_COPYRIGHT_USE_INTERVALS=1 \
 compare /dev/null $TMP-stdout || exit 1
 compare /dev/null $TMP-stderr || exit 1
 compare - $TMP.1 <<EOF || exit 1
-'\" Copyright (C) 1998-2010 Free Software Foundation, Inc.
+'\" Copyright (C) 1998\(en2010 Free Software Foundation, Inc.
 EOF
 compare - $TMP.2 <<EOF || exit 1
-Copyright \(co 1998-2010 Free Software Foundation, Inc.
+Copyright \(co 1998\(en2010 Free Software Foundation, Inc.
 EOF
 compare - $TMP.3 <<EOF || exit 1
 Copyright \(co 1998\(en2010 Free Software Foundation, Inc.