VirtualBox

source: kBuild/vendor/grep/2.12/gnulib-tests/test-update-copyright.sh@ 3532

Last change on this file since 3532 was 2595, checked in by bird, 13 years ago

gnu grep version 2.12 (grep-2.12.tar.xz, md5sum=8d2f0346d08b13c18afb81f0e8aa1e2f)

  • Property svn:eol-style set to native
File size: 16.4 KB
Line 
1#!/bin/sh
2# Test suite for update-copyright.
3# Copyright (C) 2009-2012 Free Software Foundation, Inc.
4# This file is part of the GNUlib Library.
5#
6# This program is free software: you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 3 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19diffout=`diff -u /dev/null /dev/null 2>&1`
20if test x"$diffout" = x"" && test $? -eq 0; then
21 compare() { diff -u "$@"; }
22else
23 compare() { cmp "$@"; }
24fi
25
26# Ensure the update-copyright program gets found.
27PATH=$abs_aux_dir:$PATH
28export PATH
29
30TMP_BASE=update-copyright.test
31trap 'rm -f $TMP_BASE*' 0 1 2 3 15
32
33## --------------------------------- ##
34## Skip if user does not have perl. ##
35## --------------------------------- ##
36
37TMP=$TMP_BASE
38s=$TMP-script
39cat <<\EOF > $s
40eval '(exit $?0)' && eval 'exec perl -wS -0777 -pi "$0" ${1+"$@"}'
41 & eval 'exec perl -wS -0777 -pi "$0" $argv:q'
42 if 0;
43s/a/b/
44EOF
45chmod a+x $s
46echo a > $TMP-in
47./$s $TMP-in 2>/dev/null && test b = "`cat $TMP-in 2>/dev/null`" ||
48 {
49 printf '%s\n' "$0: skipping this test;" \
50 'your system has insufficient support for Perl' 1>&2
51 exit 77
52 }
53
54# Skip this test if Perl is too old. FIXME: 5.8.0 is just a guess.
55# We have a report that 5.6.1 is inadequate and that 5.8.0 works.
56perl -e 'require 5.8.0' || {
57 echo '$0: skipping this test; Perl version is too old' 1>&2
58 exit 77
59}
60
61# Do not let a different envvar setting perturb results.
62UPDATE_COPYRIGHT_MAX_LINE_LENGTH=72
63export UPDATE_COPYRIGHT_MAX_LINE_LENGTH
64
65## ----------------------------- ##
66## Examples from documentation. ##
67## ----------------------------- ##
68
69TMP=$TMP_BASE-ex
70cat > $TMP.1 <<EOF
71Copyright @copyright{} 1990-2005, 2007-2009 Free Software
72Foundation, Inc.
73EOF
74cat > $TMP.2 <<EOF
75# Copyright (C) 1990-2005, 2007-2009 Free Software
76# Foundation, Inc.
77EOF
78cat > $TMP.3 <<EOF
79/*
80 * Copyright &copy; 90,2005,2007-2009
81 * Free Software Foundation, Inc.
82 */
83EOF
84cat > $TMP.4 <<EOF
85## Copyright (C) 1990-2005, 2007-2009 Free Software
86# Foundation, Inc.
87EOF
88cat > $TMP.5 <<EOF
89Copyright (C) 1990-2005, 2007-2009 Acme, Inc.
90EOF
91cat > $TMP.6 <<EOF
92## Copyright (C) 1990-2005, 2007-2009 Free Software
93# Foundation, Inc.
94
95Copyright (C) 1990-2005, 2007-2009 Free Software Foundation,
96Inc.
97EOF
98cat > $TMP.7 <<EOF
99Copyright (C) 1990-2005, 2007-2009 Acme, Inc.
100
101# Copyright (C) 1990-2005, 2007-2009 Free Software
102# Foundation, Inc.
103EOF
104
105UPDATE_COPYRIGHT_YEAR=2009 \
106 update-copyright $TMP.? 1> $TMP-stdout 2> $TMP-stderr
107compare /dev/null $TMP-stdout || exit 1
108compare - $TMP-stderr <<EOF || exit 1
109$TMP.4: warning: copyright statement not found
110$TMP.5: warning: copyright statement not found
111EOF
112compare - $TMP.1 <<EOF || exit 1
113Copyright @copyright{} 1990-2005, 2007-2009 Free Software
114Foundation, Inc.
115EOF
116compare - $TMP.2 <<EOF || exit 1
117# Copyright (C) 1990-2005, 2007-2009 Free Software
118# Foundation, Inc.
119EOF
120compare - $TMP.3 <<EOF || exit 1
121/*
122 * Copyright &copy; 90,2005,2007-2009
123 * Free Software Foundation, Inc.
124 */
125EOF
126compare - $TMP.4 <<EOF || exit 1
127## Copyright (C) 1990-2005, 2007-2009 Free Software
128# Foundation, Inc.
129EOF
130compare - $TMP.5 <<EOF || exit 1
131Copyright (C) 1990-2005, 2007-2009 Acme, Inc.
132EOF
133compare - $TMP.6 <<EOF || exit 1
134## Copyright (C) 1990-2005, 2007-2009 Free Software
135# Foundation, Inc.
136
137Copyright (C) 1990-2005, 2007-2009 Free Software Foundation,
138Inc.
139EOF
140compare - $TMP.7 <<EOF || exit 1
141Copyright (C) 1990-2005, 2007-2009 Acme, Inc.
142
143# Copyright (C) 1990-2005, 2007-2009 Free Software
144# Foundation, Inc.
145EOF
146
147UPDATE_COPYRIGHT_YEAR=2010 UPDATE_COPYRIGHT_USE_INTERVALS=1 \
148 update-copyright $TMP.? 1> $TMP-stdout 2> $TMP-stderr
149compare /dev/null $TMP-stdout || exit 1
150compare - $TMP-stderr <<EOF || exit 1
151$TMP.4: warning: copyright statement not found
152$TMP.5: warning: copyright statement not found
153EOF
154compare - $TMP.1 <<EOF || exit 1
155Copyright @copyright{} 1990-2005, 2007-2010 Free Software Foundation,
156Inc.
157EOF
158compare - $TMP.2 <<EOF || exit 1
159# Copyright (C) 1990-2005, 2007-2010 Free Software Foundation, Inc.
160EOF
161compare - $TMP.3 <<EOF || exit 1
162/*
163 * Copyright &copy; 1990, 2005, 2007-2010 Free Software Foundation, Inc.
164 */
165EOF
166compare - $TMP.4 <<EOF || exit 1
167## Copyright (C) 1990-2005, 2007-2009 Free Software
168# Foundation, Inc.
169EOF
170compare - $TMP.5 <<EOF || exit 1
171Copyright (C) 1990-2005, 2007-2009 Acme, Inc.
172EOF
173compare - $TMP.6 <<EOF || exit 1
174## Copyright (C) 1990-2005, 2007-2009 Free Software
175# Foundation, Inc.
176
177Copyright (C) 1990-2005, 2007-2010 Free Software Foundation, Inc.
178EOF
179compare - $TMP.7 <<EOF || exit 1
180Copyright (C) 1990-2005, 2007-2009 Acme, Inc.
181
182# Copyright (C) 1990-2005, 2007-2010 Free Software Foundation, Inc.
183EOF
184
185UPDATE_COPYRIGHT_YEAR=2010 UPDATE_COPYRIGHT_FORCE=1 \
186 update-copyright $TMP.? 1> $TMP-stdout 2> $TMP-stderr
187compare /dev/null $TMP-stdout || exit 1
188compare - $TMP-stderr <<EOF || exit 1
189$TMP.4: warning: copyright statement not found
190$TMP.5: warning: copyright statement not found
191EOF
192compare - $TMP.1 <<EOF || exit 1
193Copyright @copyright{} 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
1941998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010
195Free Software Foundation, Inc.
196EOF
197compare - $TMP.2 <<EOF || exit 1
198# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
199# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010 Free
200# Software Foundation, Inc.
201EOF
202compare - $TMP.3 <<EOF || exit 1
203/*
204 * Copyright &copy; 1990, 2005, 2007, 2008, 2009, 2010 Free Software
205 * Foundation, Inc.
206 */
207EOF
208compare - $TMP.4 <<EOF || exit 1
209## Copyright (C) 1990-2005, 2007-2009 Free Software
210# Foundation, Inc.
211EOF
212compare - $TMP.5 <<EOF || exit 1
213Copyright (C) 1990-2005, 2007-2009 Acme, Inc.
214EOF
215compare - $TMP.6 <<EOF || exit 1
216## Copyright (C) 1990-2005, 2007-2009 Free Software
217# Foundation, Inc.
218
219Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
2201999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010 Free
221Software Foundation, Inc.
222EOF
223compare - $TMP.7 <<EOF || exit 1
224Copyright (C) 1990-2005, 2007-2009 Acme, Inc.
225
226# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
227# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010 Free
228# Software Foundation, Inc.
229EOF
230
231rm $TMP*
232
233## -------------- ##
234## Current year. ##
235## -------------- ##
236
237TMP=$TMP_BASE-current-year
238YEAR=`date +%Y`
239cat > $TMP <<EOF
240'\" Copyright (C) 2006
241'\" Free Software Foundation,
242'\" Inc.
243EOF
244update-copyright $TMP 1> $TMP-stdout 2> $TMP-stderr
245compare /dev/null $TMP-stdout || exit 1
246compare /dev/null $TMP-stderr || exit 1
247compare - $TMP <<EOF || exit 1
248'\" Copyright (C) 2006, $YEAR Free Software Foundation, Inc.
249EOF
250UPDATE_COPYRIGHT_USE_INTERVALS=1 \
251 update-copyright $TMP 1> $TMP-stdout 2> $TMP-stderr
252compare /dev/null $TMP-stdout || exit 1
253compare /dev/null $TMP-stderr || exit 1
254compare - $TMP <<EOF || exit 1
255'\" Copyright (C) 2006, $YEAR Free Software Foundation, Inc.
256EOF
257rm $TMP*
258
259## ------------------ ##
260## Surrounding text. ##
261## ------------------ ##
262
263TMP=$TMP_BASE-surrounding-text
264cat > $TMP <<EOF
265 Undisturbed text.
266dnl Undisturbed text.
267dnl Copyright (C) 89
268dnl Free Software Foundation, Inc.
269dnl Undisturbed text.
270EOF
271UPDATE_COPYRIGHT_YEAR=2010 \
272 update-copyright $TMP 1> $TMP-stdout 2> $TMP-stderr
273compare /dev/null $TMP-stdout || exit 1
274compare /dev/null $TMP-stderr || exit 1
275compare - $TMP <<EOF || exit 1
276 Undisturbed text.
277dnl Undisturbed text.
278dnl Copyright (C) 1989, 2010 Free Software Foundation, Inc.
279dnl Undisturbed text.
280EOF
281rm $TMP*
282
283## --------------- ##
284## Widest prefix. ##
285## --------------- ##
286
287TMP=$TMP_BASE-widest-prefix
288cat > $TMP <<EOF
289#### Copyright (C) 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1983, 1984, 1985,
290#### 1986, 1987, 1988, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
291#### 2008 Free Software Foundation, Inc.
292EOF
293UPDATE_COPYRIGHT_YEAR=2010 \
294 update-copyright $TMP 1> $TMP-stdout 2> $TMP-stderr
295compare /dev/null $TMP-stdout || exit 1
296compare /dev/null $TMP-stderr || exit 1
297compare - $TMP <<EOF || exit 1
298#### Copyright (C) 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1983, 1984,
299#### 1985, 1986, 1987, 1988, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
300#### 2006, 2007, 2008, 2010 Free Software Foundation, Inc.
301EOF
302UPDATE_COPYRIGHT_YEAR=2011 UPDATE_COPYRIGHT_USE_INTERVALS=1 \
303 update-copyright $TMP 1> $TMP-stdout 2> $TMP-stderr
304compare /dev/null $TMP-stdout || exit 1
305compare /dev/null $TMP-stderr || exit 1
306compare - $TMP <<EOF || exit 1
307#### Copyright (C) 1976-1988, 1999-2008, 2010-2011 Free Software
308#### Foundation, Inc.
309EOF
310rm $TMP*
311
312## ------------------- ##
313## Prefix too large. ##
314## ------------------- ##
315
316TMP=$TMP_BASE-prefix-too-large
317cat > $TMP <<EOF
318#### Copyright (C) 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1983, 1984, 1985,
319#### 1986, 1987, 1988, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
320#### 2008 Free Software Foundation, Inc.
321EOF
322UPDATE_COPYRIGHT_YEAR=2010 \
323 update-copyright $TMP 1> $TMP-stdout 2> $TMP-stderr
324compare /dev/null $TMP-stdout || exit 1
325compare - $TMP-stderr <<EOF || exit 1
326$TMP: warning: copyright statement not found
327EOF
328compare - $TMP <<EOF || exit 1
329#### Copyright (C) 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1983, 1984, 1985,
330#### 1986, 1987, 1988, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
331#### 2008 Free Software Foundation, Inc.
332EOF
333rm $TMP*
334
335## ------------- ##
336## Blank lines. ##
337## ------------- ##
338
339TMP=$TMP_BASE-blank-lines
340cat > $TMP <<EOF
341#Copyright (C) 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1983, 1984, 1985,
342#
343#1986, 1987, 1988, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
344#2008 Free Software Foundation, Inc.
345
346Copyright (C) 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1983, 1984, 1985,
347
3481986, 1987, 1988, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
3492008 Free Software Foundation, Inc.
350EOF
351UPDATE_COPYRIGHT_YEAR=2010 \
352 update-copyright $TMP 1> $TMP-stdout 2> $TMP-stderr
353compare /dev/null $TMP-stdout || exit 1
354compare - $TMP-stderr <<EOF || exit 1
355$TMP: warning: copyright statement not found
356EOF
357compare - $TMP <<EOF || exit 1
358#Copyright (C) 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1983, 1984, 1985,
359#
360#1986, 1987, 1988, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
361#2008 Free Software Foundation, Inc.
362
363Copyright (C) 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1983, 1984, 1985,
364
3651986, 1987, 1988, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
3662008 Free Software Foundation, Inc.
367EOF
368rm $TMP*
369
370## -------------- ##
371## Leading tabs. ##
372## -------------- ##
373
374TMP=$TMP_BASE-leading-tabs
375cat > $TMP <<EOF
376 Copyright (C) 87, 88, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 98,
377 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free
378 Software Foundation, Inc.
379EOF
380UPDATE_COPYRIGHT_YEAR=2010 \
381 update-copyright $TMP 1> $TMP-stdout 2> $TMP-stderr
382compare /dev/null $TMP-stdout || exit 1
383compare /dev/null $TMP-stderr || exit 1
384compare - $TMP <<EOF || exit 1
385 Copyright (C) 1987, 1988, 1991, 1992, 1993, 1994, 1995, 1996,
386 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
387 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
388EOF
389UPDATE_COPYRIGHT_YEAR=2011 UPDATE_COPYRIGHT_USE_INTERVALS=1 \
390 update-copyright $TMP 1> $TMP-stdout 2> $TMP-stderr
391compare /dev/null $TMP-stdout || exit 1
392compare /dev/null $TMP-stderr || exit 1
393compare - $TMP <<EOF || exit 1
394 Copyright (C) 1987-1988, 1991-2011 Free Software Foundation,
395 Inc.
396EOF
397rm $TMP*
398
399## -------------------- ##
400## Unusual whitespace. ##
401## -------------------- ##
402
403TMP=$TMP_BASE-unusual-ws
404cat > $TMP <<EOF
405 # Copyright (C) 87-88, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
406 # 98, 1999, 2000, 2001, 2002, 2003,
407 2004, 2005, 2006, 2007, 2008,
408 # 2009 Free Software Foundation, Inc.
409EOF
410UPDATE_COPYRIGHT_YEAR=2010 \
411 update-copyright $TMP 1> $TMP-stdout 2> $TMP-stderr
412compare /dev/null $TMP-stdout || exit 1
413compare /dev/null $TMP-stderr || exit 1
414compare - $TMP <<EOF || exit 1
415 # Copyright (C) 1987, 1988, 1991, 1992, 1993, 1994,
416 # 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
417 # 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
418 # Foundation, Inc.
419EOF
420UPDATE_COPYRIGHT_YEAR=2011 UPDATE_COPYRIGHT_USE_INTERVALS=1 \
421 update-copyright $TMP 1> $TMP-stdout 2> $TMP-stderr
422compare /dev/null $TMP-stdout || exit 1
423compare /dev/null $TMP-stderr || exit 1
424compare - $TMP <<EOF || exit 1
425 # Copyright (C) 1987-1988, 1991-2011 Free Software
426 # Foundation, Inc.
427EOF
428UPDATE_COPYRIGHT_YEAR=2011 UPDATE_COPYRIGHT_USE_INTERVALS=2 \
429 UPDATE_COPYRIGHT_FORCE=1 update-copyright $TMP 1> $TMP-stdout 2> $TMP-stderr
430compare /dev/null $TMP-stdout || exit 1
431compare /dev/null $TMP-stderr || exit 1
432compare - $TMP <<EOF || exit 1
433 # Copyright (C) 1987-2011 Free Software Foundation, Inc.
434EOF
435rm $TMP*
436
437## --------- ##
438## DOS EOL. ##
439## --------- ##
440
441TMP=$TMP_BASE-dos-eol
442tr @ '\015' > $TMP <<\EOF
443Rem Copyright (C) 87, 88, 1991, 1992, 1993, 1994, 1995, 1996, 1997,@
444Rem 98, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,@
445Rem 2009 Free Software Foundation, Inc.@
446EOF
447UPDATE_COPYRIGHT_YEAR=2010 \
448 update-copyright $TMP 1> $TMP-stdout 2> $TMP-stderr
449compare /dev/null $TMP-stdout || exit 1
450compare /dev/null $TMP-stderr || exit 1
451tr @ '\015' > $TMP-exp <<\EOF
452Rem Copyright (C) 1987, 1988, 1991, 1992, 1993, 1994, 1995, 1996, 1997,@
453Rem 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,@
454Rem 2009, 2010 Free Software Foundation, Inc.@
455EOF
456compare $TMP-exp $TMP || exit 1
457rm $TMP*
458
459## --------------- ##
460## Omitted "(C)". ##
461## --------------- ##
462
463TMP=$TMP_BASE-omitted-circle-c
464cat > $TMP <<EOF
465 Copyright 87, 88, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
466 98, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
467 2009 Free Software Foundation, Inc.
468EOF
469UPDATE_COPYRIGHT_YEAR=2010 \
470 update-copyright $TMP 1> $TMP-stdout 2> $TMP-stderr
471compare /dev/null $TMP-stdout || exit 1
472compare /dev/null $TMP-stderr || exit 1
473compare - $TMP <<EOF || exit 1
474 Copyright 1987, 1988, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
475 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
476 Free Software Foundation, Inc.
477EOF
478rm $TMP*
479
480## ------------------ ##
481## C-style comments. ##
482## ------------------ ##
483
484TMP=$TMP_BASE-c-style-comments
485cat > $TMP.star <<EOF
486/* Copyright 87, 88, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
487 * 98, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
488 * 2009 Free Software Foundation, Inc. */
489EOF
490cat > $TMP.space <<EOF
491 /*Copyright 87, 88, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
492 98, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
493 2009 Free Software Foundation, Inc. */
494EOF
495cat > $TMP.single-line <<EOF
496/* Copyright 87, 1991, 1992 Free Software Foundation, Inc. */
497EOF
498cat > $TMP.single-line-wrapped <<EOF
499 /* Copyright 1988, 1991, 1992, 1993 Free Software Foundation, Inc. */
500EOF
501cat > $TMP.extra-text-star <<EOF
502 /* Copyright 1987, 1988, 1991, 1992 Free Software Foundation, Inc. End
503 * More comments. */
504EOF
505cat > $TMP.extra-text-space <<EOF
506 /* Copyright 1987, 1988, 1991, 1992 Free Software Foundation, Inc. ***
507 * End of comments. */
508EOF
509UPDATE_COPYRIGHT_YEAR=2010 \
510 update-copyright $TMP.* 1> $TMP-stdout 2> $TMP-stderr
511compare /dev/null $TMP-stdout || exit 1
512compare /dev/null $TMP-stderr || exit 1
513compare - $TMP.star <<EOF || exit 1
514/* Copyright 1987, 1988, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
515 * 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
516 * 2009, 2010 Free Software Foundation, Inc. */
517EOF
518compare - $TMP.space <<EOF || exit 1
519 /*Copyright 1987, 1988, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
520 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
521 2009, 2010 Free Software Foundation, Inc. */
522EOF
523compare - $TMP.single-line <<EOF || exit 1
524/* Copyright 1987, 1991, 1992, 2010 Free Software Foundation, Inc. */
525EOF
526compare - $TMP.single-line-wrapped <<EOF || exit 1
527 /* Copyright 1988, 1991, 1992, 1993, 2010 Free Software Foundation,
528 * Inc. */
529EOF
530compare - $TMP.extra-text-star <<EOF || exit 1
531 /* Copyright 1987, 1988, 1991, 1992, 2010 Free Software Foundation,
532 * Inc. End
533 * More comments. */
534EOF
535compare - $TMP.extra-text-space <<EOF || exit 1
536 /* Copyright 1987, 1988, 1991, 1992, 2010 Free Software Foundation,
537 Inc. ***
538 * End of comments. */
539EOF
540rm $TMP*
541
542exit 0
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette