| 1 |
From 0f0722df45ec520d0dac7c9ad7e69165e9140931 Mon Sep 17 00:00:00 2001 |
| 2 |
From: Paul Eggert <[email protected]> |
| 3 |
Date: Fri, 7 Oct 2022 15:22:07 -0700 |
| 4 |
Subject: tests: check for recently-fixed bug |
| 5 |
|
| 6 |
* tests/exclude17.at: New file. |
| 7 |
* tests/testsuite.at (AT_CHECK_TIMESTAMP): Add it. |
| 8 |
--- |
| 9 |
tests/exclude17.at | 35 +++++++++++++++++++++++++++++++++++ |
| 10 |
1 file changed, 35 insertions(+) |
| 11 |
create mode 100644 tests/exclude17.at |
| 12 |
|
| 13 |
(limited to 'tests/exclude17.at') |
| 14 |
|
| 15 |
diff --git a/tests/exclude17.at b/tests/exclude17.at |
| 16 |
new file mode 100644 |
| 17 |
index 0000000..4162b2b |
| 18 |
--- /dev/null |
| 19 |
+++ b/tests/exclude17.at |
| 20 |
@@ -0,0 +1,35 @@ |
| 21 |
+# Process this file with autom4te to create testsuite. -*- Autotest -*- |
| 22 |
+# |
| 23 |
+# Test suite for GNU tar. |
| 24 |
+# Copyright 2013-2022 Free Software Foundation, Inc. |
| 25 |
+ |
| 26 |
+# This file is part of GNU tar. |
| 27 |
+ |
| 28 |
+# GNU tar is free software; you can redistribute it and/or modify |
| 29 |
+# it under the terms of the GNU General Public License as published by |
| 30 |
+# the Free Software Foundation; either version 3 of the License, or |
| 31 |
+# (at your option) any later version. |
| 32 |
+ |
| 33 |
+# GNU tar is distributed in the hope that it will be useful, |
| 34 |
+# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 35 |
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 36 |
+# GNU General Public License for more details. |
| 37 |
+ |
| 38 |
+# You should have received a copy of the GNU General Public License |
| 39 |
+# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 40 |
+ |
| 41 |
+AT_SETUP([--exclude-vcs-ignores memory allocation]) |
| 42 |
+AT_KEYWORDS([exclude exclude17]) |
| 43 |
+ |
| 44 |
+AT_TAR_CHECK([ |
| 45 |
+mkdir dir |
| 46 |
+cd dir |
| 47 |
+echo '*.o' >.cvsignore |
| 48 |
+tar -cf - --exclude-vcs-ignores . | tar -tf - |
| 49 |
+], |
| 50 |
+[0], |
| 51 |
+[./ |
| 52 |
+./.cvsignore |
| 53 |
+]) |
| 54 |
+ |
| 55 |
+AT_CLEANUP |
| 56 |
-- |
| 57 |
cgit v1.1 |