summaryrefslogtreecommitdiff
path: root/tests/mkdir
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/mkdir
parent23f176cae633cc795a8d7a0becb56ba1481f32ba (diff)
downloadcoreutils-218fa5c61ba2f211b175aa943faa7eea286ff69e.tar.xz
Add/fix copyright notices and adjust to latest GNU FDL.
Diffstat (limited to 'tests/mkdir')
-rwxr-xr-xtests/mkdir/concurrent-118
-rwxr-xr-xtests/mkdir/p-118
-rwxr-xr-xtests/mkdir/p-217
-rwxr-xr-xtests/mkdir/p-317
-rwxr-xr-xtests/mkdir/p-slashdot17
-rwxr-xr-xtests/mkdir/p-thru-slink17
-rwxr-xr-xtests/mkdir/parents17
-rwxr-xr-xtests/mkdir/perm18
-rwxr-xr-xtests/mkdir/special-117
-rwxr-xr-xtests/mkdir/t-slash17
-rwxr-xr-xtests/mkdir/writable-under-readonly17
11 files changed, 190 insertions, 0 deletions
diff --git a/tests/mkdir/concurrent-1 b/tests/mkdir/concurrent-1
index 0b1a9ae89..ff7e96946 100755
--- a/tests/mkdir/concurrent-1
+++ b/tests/mkdir/concurrent-1
@@ -1,4 +1,22 @@
#!/bin/sh
+# Test whether "mkdir -p" works concurrently.
+
+# 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.
# TMPDIR should be an absolute dir for this test.
# FIXME: enforce it
diff --git a/tests/mkdir/p-1 b/tests/mkdir/p-1
index 272e35eee..5b9eb5b31 100755
--- a/tests/mkdir/p-1
+++ b/tests/mkdir/p-1
@@ -1,4 +1,22 @@
#!/bin/sh
+# Test "mkdir -p".
+
+# Copyright (C) 1997, 2000, 2002, 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
diff --git a/tests/mkdir/p-2 b/tests/mkdir/p-2
index 7e65697cb..38f238072 100755
--- a/tests/mkdir/p-2
+++ b/tests/mkdir/p-2
@@ -1,6 +1,23 @@
#!/bin/sh
# Just like p-1, but with an absolute path.
+# Copyright (C) 1997, 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
mkdir --version
diff --git a/tests/mkdir/p-3 b/tests/mkdir/p-3
index c3e555201..3fab37827 100755
--- a/tests/mkdir/p-3
+++ b/tests/mkdir/p-3
@@ -3,6 +3,23 @@
# causes immediate failure. Also, ensure that we don't create
# subsequent, relative command-line arguments in the wrong place.
+# Copyright (C) 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
mkdir --version
diff --git a/tests/mkdir/p-slashdot b/tests/mkdir/p-slashdot
index de99c5cd5..db750f655 100755
--- a/tests/mkdir/p-slashdot
+++ b/tests/mkdir/p-slashdot
@@ -1,6 +1,23 @@
#!/bin/sh
# Ensure that mkdir -p works with arguments specified with a trailing "/.".
+# 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
mkdir --version
diff --git a/tests/mkdir/p-thru-slink b/tests/mkdir/p-thru-slink
index 448b8f7ea..26c3d7625 100755
--- a/tests/mkdir/p-thru-slink
+++ b/tests/mkdir/p-thru-slink
@@ -1,6 +1,23 @@
#!/bin/sh
# Ensure that mkdir -p foo/bar works when foo is a symbolic link to a directory
+# 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
mkdir --version
diff --git a/tests/mkdir/parents b/tests/mkdir/parents
index 7c37fa966..0bb98ccd0 100755
--- a/tests/mkdir/parents
+++ b/tests/mkdir/parents
@@ -1,6 +1,23 @@
#!/bin/sh
# make sure mkdir's -p options works properly
+# Copyright (C) 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
mkdir --version
diff --git a/tests/mkdir/perm b/tests/mkdir/perm
index 8fa2c49b2..842c881a5 100755
--- a/tests/mkdir/perm
+++ b/tests/mkdir/perm
@@ -2,6 +2,24 @@
# Verify that mkdir's `-m MODE' option works properly
# with various umask settings.
+# Copyright (C) 2000, 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.
+
if test "$VERBOSE" = yes; then
set -x
mkdir --version
diff --git a/tests/mkdir/special-1 b/tests/mkdir/special-1
index 5f0c24b9c..a5b65043b 100755
--- a/tests/mkdir/special-1
+++ b/tests/mkdir/special-1
@@ -1,6 +1,23 @@
#!/bin/sh
# verify that mkdir honors special bits in MODE
+# Copyright (C) 2000, 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
mkdir --version
diff --git a/tests/mkdir/t-slash b/tests/mkdir/t-slash
index b96bf67dd..de0f17f0c 100755
--- a/tests/mkdir/t-slash
+++ b/tests/mkdir/t-slash
@@ -2,6 +2,23 @@
# Ensure that mkdir works with arguments specified with and without
# a trailing slash.
+# Copyright (C) 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
mkdir --version
diff --git a/tests/mkdir/writable-under-readonly b/tests/mkdir/writable-under-readonly
index ab55a22a6..ccd633e52 100755
--- a/tests/mkdir/writable-under-readonly
+++ b/tests/mkdir/writable-under-readonly
@@ -2,6 +2,23 @@
# This is just for the record.
# This test is not run.
+# 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.
+
# Test for the 2005-10-13 patch to lib/mkdir-p.c that fixed this sort
# of bug in mkdir:
#