summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-12-05 09:45:35 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-12-05 09:45:35 +0000
commit336519aa4f81415a34064d3342ce1d984be5f290 (patch)
treedbaf36f0c284e615c93ef38f9e4b6fc3d3d5e07d
parent5f4d99491da44c47654f3b4f0cab30ed84328138 (diff)
downloadtar-336519aa4f81415a34064d3342ce1d984be5f290.tar.gz
Add shortupd.at.
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/shortupd.at33
-rw-r--r--tests/testsuite.at1
3 files changed, 35 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 84d6f497..729bdd95 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -100,6 +100,7 @@ TESTSUITE_AT = \
same-order01.at\
same-order02.at\
shortfile.at\
+ shortupd.at\
shortrec.at\
sparse01.at\
sparse02.at\
diff --git a/tests/shortupd.at b/tests/shortupd.at
new file mode 100644
index 00000000..739774bf
--- /dev/null
+++ b/tests/shortupd.at
@@ -0,0 +1,33 @@
+# Process this file with autom4te to create testsuite. -*- Autotest -*-
+
+# Test suite for GNU tar.
+# Copyright (C) 2007 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 3, 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, see <http://www.gnu.org/licenses/>.
+
+#
+# Reported by: Ozan @,{C}a@v{g}layan <ozancag@gmail.com>
+# References: <4755A82A.9060607@gmail.com>
+
+AT_SETUP([updating short archives])
+AT_KEYWORDS([shortfile shortfile1 shortupd])
+
+AT_TAR_CHECK([
+touch foo
+tar uf archive foo
+],
+[0])
+
+AT_CLEANUP
+
diff --git a/tests/testsuite.at b/tests/testsuite.at
index bfb601f9..5b633540 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -180,6 +180,7 @@ m4_include([volsize.at])
m4_include([comprec.at])
m4_include([shortfile.at])
+m4_include([shortupd.at])
m4_include([truncate.at])
m4_include([grow.at])