summaryrefslogtreecommitdiff
path: root/tests/atlocal.in
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2013-03-10 11:29:04 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2013-03-12 23:08:53 +0200
commita40e565719314287a3c4abcf5909d77bfb19797d (patch)
treee24da3c55a2ac47786a915e624ec935e23d1e337 /tests/atlocal.in
parent17f99bc6f1405effe6cc31a60bb7353a033c13d6 (diff)
downloadtar-a40e565719314287a3c4abcf5909d77bfb19797d.tar.gz
Fix interaction of various --exclude-tag options with --listed-incremental.
* src/incremen.c (procdir): Set directory->tagfile in the exclusion_tag_contents case. (makedumpdir): Mark all entries as ignored if directory->tagfile is set. Free new_dump before returning. (maketagdumpdir): New function. (scan_directory): If directory->children is set to NO_CHILDREN and directory->tagfile is set, create a dumpdir consisting of the tagfile only. * tests/exclude08.at: New testcase. * tests/exclude09.at: New testcase. * tests/exclude10.at: New testcase. * tests/exclude11.at: New testcase. * tests/exclude12.at: New testcase. * tests/exclude13.at: New testcase. * tests/exclude14.at: New testcase. * tests/exclude15.at: New testcase. * tests/exclude16.at: New testcase. * tests/Makefile.am: Add new tests. * tests/testsuite.at: Include new tests. * tests/atlocal.in (mkexcltest): New function. * tests/chtype.at: Update keywords. * tests/filerem01.at: Likewise. * tests/filerem02.at: Likewise. * tests/incremental.at: Likewise. * tests/multiv04.at: Likewise.
Diffstat (limited to 'tests/atlocal.in')
-rw-r--r--tests/atlocal.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/atlocal.in b/tests/atlocal.in
index b10397a5..2bef145d 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -49,3 +49,11 @@ decho() {
echo $*
echo >&2 $*
}
+
+mkexcltest() {
+ mkdir $1 $1/subdir
+ genfile --file=$1/top-level-file
+ genfile --file=$1/subdir/excludeme
+ genfile --file=$1/subdir/subdir-file
+}
+ \ No newline at end of file