Added copyleft header

This commit is contained in:
Sergey Poznyakoff
2004-05-07 14:54:29 +00:00
parent fc22e70a00
commit 66cc5df1c6
22 changed files with 423 additions and 8 deletions

View File

@@ -1,6 +1,25 @@
#! /bin/sh #! /bin/sh
# Append was just not working. # Append was just not working.
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
. $srcdir/before . $srcdir/before

View File

@@ -1,6 +1,25 @@
#! /bin/sh #! /bin/sh
# Deleting a member after a big one was destroying the archive. # Deleting a member after a big one was destroying the archive.
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
. $srcdir/before . $srcdir/before

View File

@@ -1,6 +1,25 @@
#! /bin/sh #! /bin/sh
# Deleting a member with the archive from stdin was not working correctly. # Deleting a member with the archive from stdin was not working correctly.
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
. $srcdir/before . $srcdir/before
@@ -12,7 +31,7 @@ tar cf archive 1 2 3
tar tf archive tar tf archive
cat archive | tar f - --delete 2 > archive2 cat archive | tar f - --delete 2 > archive2
echo ----- echo -----
tar tf archive tar tf archive2
out="\ out="\
1 1

View File

@@ -1,6 +1,25 @@
#! /bin/sh #! /bin/sh
# Deleting a large last member was destroying earlier members. # Deleting a large last member was destroying earlier members.
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
. $srcdir/before . $srcdir/before

View File

@@ -1,6 +1,25 @@
#! /bin/sh #! /bin/sh
# There was a diagnostic when directory already exists. # There was a diagnostic when directory already exists.
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
. $srcdir/before . $srcdir/before

View File

@@ -1,6 +1,25 @@
#! /bin/sh #! /bin/sh
# Could not extract symlinks over an existing file. # Could not extract symlinks over an existing file.
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
. $srcdir/before . $srcdir/before

View File

@@ -1,14 +1,33 @@
#! /bin/sh #! /bin/sh
# Paths going up and down were inducing extraction loops. # Paths going up and down were inducing extraction loops.
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
. $srcdir/before . $srcdir/before
set -e set -e
mkdir directory mkdir directory
tar cfv archive directory/../directory tar -cPvf archive directory/../directory
echo ----- echo -----
tar xfv archive tar -xPvf archive
out="\ out="\
directory/../directory/ directory/../directory/

View File

@@ -1,6 +1,25 @@
#! /bin/sh #! /bin/sh
# Check for fnmatch problems in glibc 2.1.95. # Check for fnmatch problems in glibc 2.1.95.
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
. $srcdir/before . $srcdir/before

View File

@@ -1,6 +1,25 @@
#! /bin/sh #! /bin/sh
# tar should detect that its gzip child failed. # tar should detect that its gzip child failed.
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
TAR_ARCHIVE_FORMATS=auto TAR_ARCHIVE_FORMATS=auto
. $srcdir/before . $srcdir/before

View File

@@ -1,12 +1,34 @@
#! /bin/sh #! /bin/sh
# Unreadable directories yielded error despite --ignore-failed-read. # Unreadable directories yielded error despite --ignore-failed-read.
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
. $srcdir/before . $srcdir/before
> check-uid > check-uid
set - x`ls -l check-uid` set - x`ls -l check-uid`
if test $3 = root; then uid_name="$3"
set - x`ls -ln check-uid`
uid_number="$3"
if test "$uid_name" = root || test "$uid_number" = 0; then
# The test is meaningless for super-user. # The test is meaningless for super-user.
rm check-uid rm check-uid
@@ -47,15 +69,15 @@ else
err="\ err="\
----- -----
tar: Cannot add file file: Permission denied tar: file: Cannot open: Permission denied
tar: Error exit delayed from previous errors tar: Error exit delayed from previous errors
----- -----
tar: Cannot add file file: Permission denied tar: file: Warning: Cannot open: Permission denied
----- -----
tar: Cannot add directory directory: Permission denied tar: directory: Cannot savedir: Permission denied
tar: Error exit delayed from previous errors tar: Error exit delayed from previous errors
----- -----
tar: Cannot add directory directory: Permission denied tar: directory: Warning: Cannot savedir: Permission denied
" "
fi fi

View File

@@ -1,6 +1,25 @@
#! /bin/sh #! /bin/sh
# A directory older than the listed entry was skipped completely. # A directory older than the listed entry was skipped completely.
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
TAR_ARCHIVE_FORMATS="gnu oldgnu" TAR_ARCHIVE_FORMATS="gnu oldgnu"
. $srcdir/before . $srcdir/before

View File

@@ -1,6 +1,25 @@
#! /bin/sh #! /bin/sh
# Test multivolume dumps from pipes. # Test multivolume dumps from pipes.
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
TAR_ARCHIVE_FORMATS="gnu oldgnu" TAR_ARCHIVE_FORMATS="gnu oldgnu"
. $srcdir/before . $srcdir/before

View File

@@ -1,6 +1,25 @@
#! /bin/sh #! /bin/sh
# An old archive was not receiving directories. # An old archive was not receiving directories.
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
TAR_ARCHIVE_FORMATS=auto TAR_ARCHIVE_FORMATS=auto
. $srcdir/before . $srcdir/before

View File

@@ -1,6 +1,25 @@
#! /bin/sh #! /bin/sh
# Ensure that TAR_OPTIONS works in conjunction with old-style options. # Ensure that TAR_OPTIONS works in conjunction with old-style options.
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
TAR_ARCHIVE_FORMATS=auto TAR_ARCHIVE_FORMATS=auto
. $srcdir/before . $srcdir/before

View File

@@ -1,5 +1,23 @@
#! /bin/sh #! /bin/sh
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
. $srcdir/before . $srcdir/before

View File

@@ -1,4 +1,22 @@
#! /bin/sh #! /bin/sh
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
star_prereq gtarfail.tar star_prereq gtarfail.tar
TAR_ARCHIVE_FORMATS=auto TAR_ARCHIVE_FORMATS=auto

View File

@@ -1,4 +1,22 @@
#! /bin/sh #! /bin/sh
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
star_prereq gtarfail2.tar star_prereq gtarfail2.tar
TAR_ARCHIVE_FORMATS=auto TAR_ARCHIVE_FORMATS=auto

View File

@@ -1,4 +1,22 @@
#! /bin/sh #! /bin/sh
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
star_prereq gnu-multi-fail-volume1.gtar star_prereq gnu-multi-fail-volume1.gtar
star_prereq gnu-multi-fail-volume2.gtar star_prereq gnu-multi-fail-volume2.gtar

View File

@@ -1,4 +1,22 @@
#! /bin/sh #! /bin/sh
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
star_prereq pax-big-10g.tar.bz2 star_prereq pax-big-10g.tar.bz2
TAR_ARCHIVE_FORMATS=auto TAR_ARCHIVE_FORMATS=auto

View File

@@ -1,4 +1,22 @@
#! /bin/sh #! /bin/sh
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
star_prereq ustar-all-quicktest.tar star_prereq ustar-all-quicktest.tar
star_prereq quicktest.filelist star_prereq quicktest.filelist

View File

@@ -1,6 +1,25 @@
#! /bin/sh #! /bin/sh
# Check if the proper version is being tested. # Check if the proper version is being tested.
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
if test -n "`$PACKAGE --version | sed -n s/$PACKAGE.*$VERSION/OK/p`"; then if test -n "`$PACKAGE --version | sed -n s/$PACKAGE.*$VERSION/OK/p`"; then

View File

@@ -1,6 +1,25 @@
#! /bin/sh #! /bin/sh
# Volume labels are checked on read by fnmatch. # Volume labels are checked on read by fnmatch.
# This file is part of GNU tar testsuite.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
. ./preset . ./preset
TAR_ARCHIVE_FORMATS="gnu oldgnu" TAR_ARCHIVE_FORMATS="gnu oldgnu"
. $srcdir/before . $srcdir/before