[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] [PATCH] testsuite: check --compare & --listed-incremental
From: |
Pavel Raiskup |
Subject: |
[Bug-tar] [PATCH] testsuite: check --compare & --listed-incremental |
Date: |
Thu, 12 Dec 2013 16:55:54 +0100 |
I haven't found --diff feature test case in conjunction with
--listed-incremental so here it is. This is check for regression
fixed by commit d88b2a613f4.
* tests/incr10.at: New testcase.
* tests/Makefile.am: Add new testcase.
* tests/testsuite.at: Likewise.
---
tests/Makefile.am | 1 +
tests/incr10.at | 38 ++++++++++++++++++++++++++++++++++++++
tests/testsuite.at | 1 +
3 files changed, 40 insertions(+)
create mode 100644 tests/incr10.at
diff --git a/tests/Makefile.am b/tests/Makefile.am
index fc72c51..8c13733 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -114,6 +114,7 @@ TESTSUITE_AT = \
incr07.at\
incr08.at\
incr09.at\
+ incr10.at\
indexfile.at\
ignfail.at\
label01.at\
diff --git a/tests/incr10.at b/tests/incr10.at
new file mode 100644
index 0000000..b1cb0cb
--- /dev/null
+++ b/tests/incr10.at
@@ -0,0 +1,38 @@
+# Process this file with autom4te to create testsuite. -*- Autotest -*-
+
+# Test suite for GNU tar.
+# Copyright (C) 2013 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/>.
+
+AT_SETUP([incremental dumps and --compare option])
+AT_KEYWORDS([incremental incr10])
+
+AT_TAR_CHECK([
+mkdir dir
+mkdir dir/sub
+genfile --file dir/file1
+genfile --file dir/sub/file2
+
+tar -c -f archive-0.1.tar -g db.1 dir
+tar --diff -f archive-0.1.tar -G
+rm dir/file1
+cp db.1 db.2
+tar -c -f archive-0.2.tar -g db.2 dir
+tar --diff -f archive-0.2.tar -G
+],
+[0],
+[],[],[],[],[gnu, oldgnu, posix])
+
+AT_CLEANUP
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 1aab6f7..9334c6d 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -299,6 +299,7 @@ m4_include([incr06.at])
m4_include([incr07.at])
m4_include([incr08.at])
m4_include([incr09.at])
+m4_include([incr10.at])
AT_BANNER([Files removed while archiving])
m4_include([filerem01.at])
--
1.8.4.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-tar] [PATCH] testsuite: check --compare & --listed-incremental,
Pavel Raiskup <=