summaryrefslogtreecommitdiff
path: root/tests/ln
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ln')
-rwxr-xr-xtests/ln/backup-118
-rwxr-xr-xtests/ln/misc18
-rwxr-xr-xtests/ln/sf-118
-rwxr-xr-xtests/ln/target-119
4 files changed, 73 insertions, 0 deletions
diff --git a/tests/ln/backup-1 b/tests/ln/backup-1
index 30bdf1d93..b24669324 100755
--- a/tests/ln/backup-1
+++ b/tests/ln/backup-1
@@ -1,6 +1,24 @@
#!/bin/sh
# Try to create a symlink with backup where the destination file exists
# and the backup file name is a hard link to the destination file.
+
+# Copyright (C) 1999 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.
+
# Based on a problem report from Jamie Lokier.
if test "$VERBOSE" = yes; then
diff --git a/tests/ln/misc b/tests/ln/misc
index ab63a975b..51155911a 100755
--- a/tests/ln/misc
+++ b/tests/ln/misc
@@ -1,4 +1,22 @@
#!/bin/sh
+# Miscellaneous tests for "ln".
+
+# Copyright (C) 1998, 1999, 2000, 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
diff --git a/tests/ln/sf-1 b/tests/ln/sf-1
index 8ebbfc0e2..971c25b87 100755
--- a/tests/ln/sf-1
+++ b/tests/ln/sf-1
@@ -1,4 +1,22 @@
#!/bin/sh
+# Test "ln -sf".
+
+# Copyright (C) 1997, 1998, 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.
test=sf-1
diff --git a/tests/ln/target-1 b/tests/ln/target-1
index 91eb45da0..76da11cae 100755
--- a/tests/ln/target-1
+++ b/tests/ln/target-1
@@ -1,4 +1,23 @@
#!/bin/sh
+# Test "ln --target-dir" with one file.
+
+# Copyright (C) 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.
+
# Before coreutils-4.5.3, --target-dir didn't work with one file.
# It would create the desired link, but would fail with a diagnosis like this:
# ln: `d/.': cannot overwrite directory