X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=tests%2Flisted04.at;fp=tests%2Flisted04.at;h=239998d256a88000af03120c0abb258b46c6139f;hb=1a44d77d50f4fb37c0410eed04b82303624ea2ec;hp=0000000000000000000000000000000000000000;hpb=dda6367c9eac71da8f2ab1c60b3df60f19ce4755;p=debian%2Ftar
diff --git a/tests/listed04.at b/tests/listed04.at
new file mode 100644
index 00000000..239998d2
--- /dev/null
+++ b/tests/listed04.at
@@ -0,0 +1,47 @@
+# Process this file with autom4te to create testsuite. -*- Autotest -*-
+
+# Test suite for GNU tar.
+# Copyright (C) 2010 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 .
+
+# This checks for the bug reported by Martin Weigel
+# .
+# The test is derived from the ideas in Jean-Louis Martineau's followup email
+# .
+
+AT_SETUP([--listed-incremental and --one-file-system])
+AT_KEYWORDS([listed incremental listed04])
+
+AT_TAR_CHECK([
+
+mkdir dir
+echo a >dir/a
+echo b >dir/b
+
+tar --one-file-system -cvf archive.tar -g archive.incr dir || exit
+tar -tf archive.tar || exit
+],
+[0],
+[dir/
+dir/a
+dir/b
+dir/
+dir/a
+dir/b
+],
+[tar: dir: Directory is new
+],[],[],[gnu])
+
+AT_CLEANUP