]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Split a test for 7-Zip writer into seven tests to know easily what
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 2 Dec 2012 11:05:33 +0000 (20:05 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 2 Dec 2012 11:09:41 +0000 (20:09 +0900)
compression fails.

libarchive/test/test_write_format_7zip.c

index dd62d9e653d434c4498b30a605f7ca18b8375ef9..7c2702fad5e5e18eaf94160710fa6d03cb90eac9 100644 (file)
@@ -894,20 +894,48 @@ DEFINE_TEST(test_write_format_7zip)
        /* Test that making a 7-Zip archive file by default compression
         * in whatever compressions are supported on the running platform. */
        test_basic(NULL);
+       /* Test that making a 7-Zip archive file without empty files. */
+       test_basic2(NULL);
+}
+
+DEFINE_TEST(test_write_format_7zip_basic_bzip2)
+{
+       /* Test that making a 7-Zip archive file with bzip2 compression. */
+       test_basic("bzip2");
+}
+
+DEFINE_TEST(test_write_format_7zip_basic_copy)
+{
        /* Test that making a 7-Zip archive file without compression. */
        test_basic("copy");
+}
+
+DEFINE_TEST(test_write_format_7zip_basic_deflate)
+{
        /* Test that making a 7-Zip archive file with deflate compression. */
        test_basic("deflate");
-       /* Test that making a 7-Zip archive file with bzip2 compression. */
-       test_basic("bzip2");
+}
+
+DEFINE_TEST(test_write_format_7zip_basic_lzma1)
+{
        /* Test that making a 7-Zip archive file with lzma1 compression. */
        test_basic("lzma1");
+}
+
+DEFINE_TEST(test_write_format_7zip_basic_lzma2)
+{
        /* Test that making a 7-Zip archive file with lzma2 compression. */
        test_basic("lzma2");
+}
+
+DEFINE_TEST(test_write_format_7zip_basic_ppmd)
+{
        /* Test that making a 7-Zip archive file with PPMd compression. */
        test_basic("ppmd");
-       /* Test that making a 7-Zip archive file without empty files. */
-       test_basic2(NULL);
+}
+
+DEFINE_TEST(test_write_format_7zip_empty)
+{
        /* Test that making an empty 7-Zip archive file. */
        test_empty_archive();
        /* Test that write an empty file. */
@@ -915,6 +943,12 @@ DEFINE_TEST(test_write_format_7zip)
        test_only_empty_files();
 }
 
+DEFINE_TEST(test_write_format_7zip_large_bzip2)
+{
+       /* Test that making a 7-Zip archive file with bzip2 compression. */
+       test_large("bzip2");
+}
+
 DEFINE_TEST(test_write_format_7zip_large_copy)
 {
        /* Test that making a 7-Zip archive file without compression. */
@@ -927,12 +961,6 @@ DEFINE_TEST(test_write_format_7zip_large_deflate)
        test_large("deflate");
 }
 
-DEFINE_TEST(test_write_format_7zip_large_bzip2)
-{
-       /* Test that making a 7-Zip archive file with bzip2 compression. */
-       test_large("bzip2");
-}
-
 DEFINE_TEST(test_write_format_7zip_large_lzma1)
 {
        /* Test that making a 7-Zip archive file with lzma1 compression. */