summaryrefslogtreecommitdiff
path: root/tests/touch
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-08-17 19:58:17 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-08-17 19:58:17 +0000
commit218fa5c61ba2f211b175aa943faa7eea286ff69e (patch)
treed54a459a9d5016a567e168b385cc3c4670f603ef /tests/touch
parent23f176cae633cc795a8d7a0becb56ba1481f32ba (diff)
downloadcoreutils-218fa5c61ba2f211b175aa943faa7eea286ff69e.tar.xz
Add/fix copyright notices and adjust to latest GNU FDL.
Diffstat (limited to 'tests/touch')
-rw-r--r--tests/touch/Makefile.am21
-rwxr-xr-xtests/touch/dangling-symlink17
-rwxr-xr-xtests/touch/empty-file19
-rwxr-xr-xtests/touch/fail-diag17
-rwxr-xr-xtests/touch/fifo17
-rwxr-xr-xtests/touch/no-create-missing17
-rwxr-xr-xtests/touch/no-rights17
-rwxr-xr-xtests/touch/not-owner17
-rwxr-xr-xtests/touch/obsolescent17
-rwxr-xr-xtests/touch/read-only17
-rwxr-xr-xtests/touch/relative17
11 files changed, 192 insertions, 1 deletions
diff --git a/tests/touch/Makefile.am b/tests/touch/Makefile.am
index 3c5900fa0..6a7554746 100644
--- a/tests/touch/Makefile.am
+++ b/tests/touch/Makefile.am
@@ -1,4 +1,23 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
+# Make coreutils tests for "touch". -*-Makefile-*-
+
+# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+# Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
AUTOMAKE_OPTIONS = 1.3 gnits
TESTS = \
diff --git a/tests/touch/dangling-symlink b/tests/touch/dangling-symlink
index b61beb4bb..2f4390211 100755
--- a/tests/touch/dangling-symlink
+++ b/tests/touch/dangling-symlink
@@ -2,6 +2,23 @@
# Make sure touch can create a file through a dangling symlink.
# This was broken in the 4.0[e-i] test releases.
+# Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
if test "$VERBOSE" = yes; then
set -x
touch --version
diff --git a/tests/touch/empty-file b/tests/touch/empty-file
index c9092b258..22d857ee1 100755
--- a/tests/touch/empty-file
+++ b/tests/touch/empty-file
@@ -1,5 +1,24 @@
#!/bin/sh
# Make sure touch can set the mtime on an empty file.
+
+# Copyright (C) 1998, 1999, 2000, 2005 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+
# Volker Borchert reported that touch 3.16r (and presumably all before that)
# fails to work on SunOS 4.1.3 with `most of the recommended patches' when
# the empty file is on an NFS-mounted 4.2 volume.
diff --git a/tests/touch/fail-diag b/tests/touch/fail-diag
index f6dba8ee3..50b19d41d 100755
--- a/tests/touch/fail-diag
+++ b/tests/touch/fail-diag
@@ -1,6 +1,23 @@
#!/bin/sh
# make sure touch gives reasonable diagnostics
+# Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
if test "$VERBOSE" = yes; then
set -x
touch --version
diff --git a/tests/touch/fifo b/tests/touch/fifo
index 27071fbfe..dc33c0f28 100755
--- a/tests/touch/fifo
+++ b/tests/touch/fifo
@@ -1,6 +1,23 @@
#!/bin/sh
# Make sure touch works on fifos without hanging.
+# Copyright (C) 2000 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
if test "$VERBOSE" = yes; then
set -x
touch --version
diff --git a/tests/touch/no-create-missing b/tests/touch/no-create-missing
index 781b5a951..cdba337e9 100755
--- a/tests/touch/no-create-missing
+++ b/tests/touch/no-create-missing
@@ -1,6 +1,23 @@
#!/bin/sh
# Ensure that touch -c no-such-file no longer fails (it did in 4.1.8).
+# Copyright (C) 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
if test "$VERBOSE" = yes; then
set -x
touch --version
diff --git a/tests/touch/no-rights b/tests/touch/no-rights
index cf0a92267..0d9e3bd86 100755
--- a/tests/touch/no-rights
+++ b/tests/touch/no-rights
@@ -2,6 +2,23 @@
# Make sure touch can update the times on a file that is neither
# readable nor writable.
+# Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
if test "$VERBOSE" = yes; then
set -x
touch --version
diff --git a/tests/touch/not-owner b/tests/touch/not-owner
index 1002c0cd9..59282caef 100755
--- a/tests/touch/not-owner
+++ b/tests/touch/not-owner
@@ -2,6 +2,23 @@
# Make sure that touch gives reasonable diagnostics when applied
# to an unwritable directory owned by some other user.
+# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
if test "$VERBOSE" = yes; then
set -x
touch --version
diff --git a/tests/touch/obsolescent b/tests/touch/obsolescent
index 98dfdd742..000ccf558 100755
--- a/tests/touch/obsolescent
+++ b/tests/touch/obsolescent
@@ -1,6 +1,23 @@
#!/bin/sh
# Test touch with obsolescent 8- or 10-digit time stamps.
+# Copyright (C) 2000, 2004, 2005 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
_POSIX2_VERSION=199209; export _POSIX2_VERSION
POSIXLY_CORRECT=1; export POSIXLY_CORRECT
diff --git a/tests/touch/read-only b/tests/touch/read-only
index 11516d3c8..de59f0762 100755
--- a/tests/touch/read-only
+++ b/tests/touch/read-only
@@ -1,6 +1,23 @@
#!/bin/sh
# ensure that touch can operate on read-only files
+# Copyright (C) 2005 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
if test "$VERBOSE" = yes; then
set -x
touch --version
diff --git a/tests/touch/relative b/tests/touch/relative
index d996cd455..35d1d4d46 100755
--- a/tests/touch/relative
+++ b/tests/touch/relative
@@ -2,6 +2,23 @@
# Demonstrate using a combination of --reference and --date to
# set the time of a file back by an arbitrary amount.
+# Copyright (C) 2004 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
if test "$VERBOSE" = yes; then
set -x
touch --version