]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
--keep-newer-files is the correct option name.
authorTim Kientzle <kientzle@gmail.com>
Mon, 12 Apr 2010 02:11:28 +0000 (22:11 -0400)
committerTim Kientzle <kientzle@gmail.com>
Mon, 12 Apr 2010 02:11:28 +0000 (22:11 -0400)
SVN-Revision: 2243

Makefile.am
tar/test/CMakeLists.txt
tar/test/test_option_keep_newer_files.c [moved from tar/test/test_option_keep_newer.c with 88% similarity]
tar/test/test_option_keep_newer_files.tgz.uu [moved from tar/test/test_option_keep_newer.tgz.uu with 100% similarity]

index 330ebf423ac07372829eb3b7595403d19ad3cd4f..9ab3f7e0f497f6b2b85c4b3a58c503bc2d49d15b 100644 (file)
@@ -493,7 +493,7 @@ bsdtar_test_SOURCES=                                                \
        tar/test/test_option_b.c                                \
        tar/test/test_option_exclude.c                          \
        tar/test/test_option_k.c                                \
-       tar/test/test_option_keep_newer.c                       \
+       tar/test/test_option_keep_newer_files.c                 \
        tar/test/test_option_q.c                                \
        tar/test/test_option_r.c                                \
        tar/test/test_option_s.c                                \
index d38dcdacb302735cd0ac4b5a9a86ba601c2e5641..9b422f70e4f3b961fedb35e8d355f9cee1a87798 100644 (file)
@@ -24,7 +24,7 @@ IF(ENABLE_TAR AND ENABLE_TEST)
     test_option_b.c
     test_option_exclude.c
     test_option_k.c
-    test_option_keep_newer.c
+    test_option_keep_newer_files.c
     test_option_q.c
     test_option_r.c
     test_option_s.c
similarity index 88%
rename from tar/test/test_option_keep_newer.c
rename to tar/test/test_option_keep_newer_files.c
index 3062587d06694c65bf5a8ab1aa4cce84a0157a9c..20c2a149ed305dfbcb64828ad27703f1d0c471ed 100644 (file)
 #include "test.h"
 __FBSDID("$FreeBSD$");
 
-DEFINE_TEST(test_option_keep_newer)
+DEFINE_TEST(test_option_keep_newer_files)
 {
-       const char *reffile = "test_option_keep_newer.tgz";
+       const char *reffile = "test_option_keep_newer_files.tgz";
 
        /* Reference file has one entry "file" with a very old timestamp. */
        extract_reference_file(reffile);
 
-       /* Test 1: Without --keep-newer */
+       /* Test 1: Without --keep-newer-files */
        assertMakeDir("test1", 0755);
        assertChdir("test1");
        assertMakeFile("file", 0644, "new");
@@ -43,12 +43,12 @@ DEFINE_TEST(test_option_keep_newer)
        assertEmptyFile("test.err");
        assertChdir("..");
 
-       /* Test 2: With --keep-newer */
+       /* Test 2: With --keep-newer-files */
        assertMakeDir("test2", 0755);
        assertChdir("test2");
        assertMakeFile("file", 0644, "new");
        assertEqualInt(0,
-           systemf("%s -xf ../%s --keep-newer >test.out 2>test.err", testprog, reffile));
+           systemf("%s -xf ../%s --keep-newer-files >test.out 2>test.err", testprog, reffile));
        assertFileContents("new", 3, "file");
        assertEmptyFile("test.out");
        assertEmptyFile("test.err");