| /freebsd-14.2/contrib/libarchive/unzip/test/ |
| H A D | test_x.c | 5 * All rights reserved. 7 #include "test.h" 12 const char *reffile = "test_basic.zip"; in DEFINE_TEST() 16 r = systemf("%s %s -x test_basic/c >test.out 2>test.err", testprog, reffile); in DEFINE_TEST() 18 assertNonEmptyFile("test.out"); in DEFINE_TEST() 19 assertEmptyFile("test.err"); in DEFINE_TEST() 30 const char *reffile = "test_basic.zip"; in DEFINE_TEST() 34 r = systemf("%s %s -x test_basic/c test_basic/b >test.out 2>test.err", testprog, reffile); in DEFINE_TEST() 37 assertEmptyFile("test.err"); in DEFINE_TEST() 48 const char *reffile = "test_basic.zip"; in DEFINE_TEST() [all …]
|
| H A D | test_d.c | 5 * All rights reserved. 7 #include "test.h" 12 const char *reffile = "test_basic.zip"; in DEFINE_TEST() 16 r = systemf("%s -d foobar %s >test.out 2>test.err", testprog, reffile); in DEFINE_TEST() 18 assertNonEmptyFile("test.out"); in DEFINE_TEST() 19 assertEmptyFile("test.err"); in DEFINE_TEST() 21 assertTextFileContents("contents a\n", "foobar/test_basic/a"); in DEFINE_TEST() 30 const char *reffile = "test_basic.zip"; in DEFINE_TEST() 34 r = systemf("%s %s -d foobar >test.out 2>test.err", testprog, reffile); in DEFINE_TEST() 36 assertNonEmptyFile("test.out"); in DEFINE_TEST() [all …]
|
| H A D | test_basic.c | 5 * All rights reserved. 7 #include "test.h" 9 /* This test just does a basic zip decompression */ 10 DEFINE_TEST(test_basic) in DEFINE_TEST() argument 12 const char *reffile = "test_basic.zip"; in DEFINE_TEST() 16 r = systemf("%s %s >test.out 2>test.err", testprog, reffile); in DEFINE_TEST() 18 assertNonEmptyFile("test.out"); in DEFINE_TEST() 19 assertEmptyFile("test.err"); in DEFINE_TEST() 21 assertTextFileContents("contents a\n", "test_basic/a"); in DEFINE_TEST() 22 assertTextFileContents("contents b\n", "test_basic/b"); in DEFINE_TEST() [all …]
|
| H A D | test_n.c | 5 * All rights reserved. 7 #include "test.h" 12 const char *reffile = "test_basic.zip"; in DEFINE_TEST() 15 assertMakeDir("test_basic", 0755); in DEFINE_TEST() 16 assertMakeFile("test_basic/a", 0644, "orig a\n"); in DEFINE_TEST() 17 assertMakeFile("test_basic/b", 0644, "orig b\n"); in DEFINE_TEST() 20 r = systemf("%s -n %s >test.out 2>test.err", testprog, reffile); in DEFINE_TEST() 22 assertNonEmptyFile("test.out"); in DEFINE_TEST() 23 assertEmptyFile("test.err"); in DEFINE_TEST() 25 assertTextFileContents("orig a\n", "test_basic/a"); in DEFINE_TEST() [all …]
|
| H A D | test_o.c | 5 * All rights reserved. 7 #include "test.h" 12 const char *reffile = "test_basic.zip"; in DEFINE_TEST() 15 assertMakeDir("test_basic", 0755); in DEFINE_TEST() 16 assertMakeFile("test_basic/a", 0644, "orig a\n"); in DEFINE_TEST() 17 assertMakeFile("test_basic/b", 0644, "orig b\n"); in DEFINE_TEST() 20 r = systemf("%s -o %s >test.out 2>test.err", testprog, reffile); in DEFINE_TEST() 22 assertEmptyFile("test.err"); in DEFINE_TEST() 24 assertTextFileContents("contents a\n", "test_basic/a"); in DEFINE_TEST() 25 assertTextFileContents("contents b\n", "test_basic/b"); in DEFINE_TEST() [all …]
|
| H A D | test_L.c | 5 * All rights reserved. 7 #include "test.h" 12 const char *reffile = "test_basic.zip"; in DEFINE_TEST() 16 r = systemf("%s -L %s >test.out 2>test.err", testprog, reffile); in DEFINE_TEST() 18 assertNonEmptyFile("test.out"); in DEFINE_TEST() 19 assertEmptyFile("test.err"); in DEFINE_TEST() 21 assertTextFileContents("contents a\n", "test_basic/a"); in DEFINE_TEST() 22 assertTextFileContents("contents b\n", "test_basic/b"); in DEFINE_TEST() 23 assertTextFileContents("contents c\n", "test_basic/c"); in DEFINE_TEST() 24 assertTextFileContents("contents CAPS\n", "test_basic/caps"); in DEFINE_TEST()
|
| H A D | test_q.c | 5 * All rights reserved. 7 #include "test.h" 12 const char *reffile = "test_basic.zip"; in DEFINE_TEST() 16 r = systemf("%s -q %s >test.out 2>test.err", testprog, reffile); in DEFINE_TEST() 18 assertEmptyFile("test.out"); in DEFINE_TEST() 19 assertEmptyFile("test.err"); in DEFINE_TEST() 21 assertTextFileContents("contents a\n", "test_basic/a"); in DEFINE_TEST() 22 assertTextFileContents("contents b\n", "test_basic/b"); in DEFINE_TEST() 23 assertTextFileContents("contents c\n", "test_basic/c"); in DEFINE_TEST() 24 assertTextFileContents("contents CAPS\n", "test_basic/CAPS"); in DEFINE_TEST()
|
| H A D | test_doubledash.c | 5 * All rights reserved. 7 #include "test.h" 12 const char *reffile = "test_basic.zip"; in DEFINE_TEST() 16 r = systemf("%s -- %s >test.out 2>test.err", testprog, reffile); in DEFINE_TEST() 18 assertNonEmptyFile("test.out"); in DEFINE_TEST() 19 assertEmptyFile("test.err"); in DEFINE_TEST() 21 assertTextFileContents("contents a\n", "test_basic/a"); in DEFINE_TEST() 22 assertTextFileContents("contents b\n", "test_basic/b"); in DEFINE_TEST() 23 assertTextFileContents("contents c\n", "test_basic/c"); in DEFINE_TEST() 24 assertTextFileContents("contents CAPS\n", "test_basic/CAPS"); in DEFINE_TEST()
|
| H A D | test_glob.c | 5 * All rights reserved. 7 #include "test.h" 12 const char *reffile = "test_basic.zip"; in DEFINE_TEST() 16 r = systemf("%s %s test_*/[ab] >test.out 2>test.err", testprog, reffile); in DEFINE_TEST() 18 assertNonEmptyFile("test.out"); in DEFINE_TEST() 19 assertEmptyFile("test.err"); in DEFINE_TEST() 21 assertTextFileContents("contents a\n", "test_basic/a"); in DEFINE_TEST() 22 assertTextFileContents("contents b\n", "test_basic/b"); in DEFINE_TEST() 23 assertFileNotExists("test_basic/c"); in DEFINE_TEST() 24 assertFileNotExists("test_basic/CAPS"); in DEFINE_TEST()
|
| H A D | test_C.c | 5 * All rights reserved. 7 #include "test.h" 12 const char *reffile = "test_basic.zip"; in DEFINE_TEST() 16 r = systemf("%s -C %s test_basic/caps >test.out 2>test.err", testprog, reffile); in DEFINE_TEST() 18 assertNonEmptyFile("test.out"); in DEFINE_TEST() 19 assertEmptyFile("test.err"); in DEFINE_TEST() 21 assertTextFileContents("contents CAPS\n", "test_basic/CAPS"); in DEFINE_TEST()
|
| H A D | test_Z1.c | 5 * All rights reserved. 7 #include "test.h" 12 const char *reffile = "test_basic.zip"; in DEFINE_TEST() 16 r = systemf("%s -Z1 %s >test.out 2>test.err", testprog, reffile); in DEFINE_TEST() 18 assertNonEmptyFile("test.out"); in DEFINE_TEST() 19 …assertTextFileContents("test_basic/\ntest_basic/a\ntest_basic/b\ntest_basic/c\ntest_basic/CAPS\n",… in DEFINE_TEST() 20 assertEmptyFile("test.err"); in DEFINE_TEST()
|
| H A D | test_t.c | 5 * All rights reserved. 7 #include "test.h" 9 /* Test t arg - Test zip contents */ 12 const char *reffile = "test_basic.zip"; in DEFINE_TEST() 16 r = systemf("%s -t %s >test.out 2>test.err", testprog, reffile); in DEFINE_TEST() 18 assertNonEmptyFile("test.out"); in DEFINE_TEST() 19 assertEmptyFile("test.err"); in DEFINE_TEST()
|
| H A D | test_basic.zip.uu | 1 begin 644 test_basic.zip
|
| H A D | test_p.c | 5 * All rights reserved. 7 #include "test.h" 12 const char *reffile = "test_basic.zip"; in DEFINE_TEST() 16 r = systemf("%s -p %s >test.out 2>test.err", testprog, reffile); in DEFINE_TEST() 18 assertTextFileContents("contents a\ncontents b\ncontents c\ncontents CAPS\n", "test.out"); in DEFINE_TEST() 19 assertEmptyFile("test.err"); in DEFINE_TEST()
|
| H A D | test.h | 5 * All rights reserved. 8 /* Every test program should #include "test.h" as the first thing. */ 10 #define KNOWNREF "test_basic.zip.uu" 11 #define ENVBASE "BSDUNZIP" /* Prefix for environment variables. */ 12 #define PROGRAM "bsdunzip" /* Name of program being tested. */ 14 #undef LIBRARY /* Not testing a library. */ 17 /* How to generate extra version info. */ 20 #include "test_common.h"
|
| H A D | test_j.c | 5 * All rights reserved. 7 #include "test.h" 12 const char *reffile = "test_basic.zip"; in DEFINE_TEST() 16 r = systemf("%s -j %s >test.out 2>test.err", testprog, reffile); in DEFINE_TEST() 18 assertNonEmptyFile("test.out"); in DEFINE_TEST() 19 assertEmptyFile("test.err"); in DEFINE_TEST()
|
| /freebsd-14.2/usr.bin/unzip/tests/ |
| H A D | Makefile | 37 test_basic.c \ 53 SRCS.bsdunzip_test= list.h \ 65 grep -h DEFINE_TEST ${.ALLSRC:N*Makefile}) > ${.TARGET}.tmp 66 @mv ${.TARGET}.tmp ${.TARGET} 68 CLEANFILES+= list.h list.h.tmp 70 ${PACKAGE}FILES+= test_I.zip.uu 71 ${PACKAGE}FILES+= test_basic.zip.uu 72 ${PACKAGE}FILES+= test_encrypted.zip.uu 73 ${PACKAGE}FILES+= test_singlefile.zip.uu 74 ${PACKAGE}FILES+= test_t_bad.zip.uu [all …]
|
| /freebsd-14.2/contrib/libarchive/libarchive/test/ |
| H A D | test_write_format_7zip.c | 530 test_basic(NULL); in DEFINE_TEST() 531 /* Test that making a 7-Zip archive file without empty files. */ in DEFINE_TEST() 537 /* Test that making a 7-Zip archive file with bzip2 compression. */ in DEFINE_TEST() 538 test_basic("bzip2"); in DEFINE_TEST() 543 /* Test that making a 7-Zip archive file without compression. */ in DEFINE_TEST() 544 test_basic("copy"); in DEFINE_TEST() 549 /* Test that making a 7-Zip archive file with deflate compression. */ in DEFINE_TEST() 555 /* Test that making a 7-Zip archive file with lzma1 compression. */ in DEFINE_TEST() 561 /* Test that making a 7-Zip archive file with lzma2 compression. */ in DEFINE_TEST() 567 /* Test that making a 7-Zip archive file with PPMd compression. */ in DEFINE_TEST() [all …]
|
| H A D | test_read_format_zip.c | 179 test_basic(void) in test_basic() function 181 const char *refname = "test_read_format_zip.zip"; in test_basic() 206 * Read Info-ZIP New Unix Extra Field 0x7875 "ux". 251 const char *refname = "test_read_format_zip_ux.zip"; in test_info_zip_ux() 277 * Zip entries that use length-at-end. 315 const char *refname = "test_read_format_zip_length_at_end.zip"; in test_extract_length_at_end() 342 const char *refname = "test_read_format_zip_symlink.zip"; in test_symlink() 379 test_basic(); in DEFINE_TEST() 964 const char *refname = "test_read_format_zip_bz2_hang.zip"; in DEFINE_TEST() 1100 const char *refname = "test_read_format_zip_7z_lzma.zip"; in DEFINE_TEST() [all …]
|
| /freebsd-14.2/usr.bin/tar/tests/ |
| H A D | Makefile | 29 test_basic.c \ 107 @mv ${.TARGET}.tmp ${.TARGET} 109 CLEANFILES+= list.h list.h.tmp 111 ${PACKAGE}FILES+= test_extract.tar.Z.uu 112 ${PACKAGE}FILES+= test_extract.tar.bz2.uu 114 ${PACKAGE}FILES+= test_extract.tar.gz.uu 116 ${PACKAGE}FILES+= test_extract.tar.lz.uu 120 ${PACKAGE}FILES+= test_extract.tar.xz.uu 124 ${PACKAGE}FILES+= test_option_passphrase.zip.uu 125 ${PACKAGE}FILES+= test_option_s.tar.Z.uu [all …]
|
| /freebsd-14.2/usr.bin/cpio/tests/ |
| H A D | Makefile | 35 test_basic.c \ 97 @mv ${.TARGET}.tmp ${.TARGET} 99 CLEANFILES+= list.h list.h.tmp 101 ${PACKAGE}FILES+= test_extract.cpio.Z.uu 102 ${PACKAGE}FILES+= test_extract.cpio.bz2.uu 103 ${PACKAGE}FILES+= test_extract.cpio.grz.uu 104 ${PACKAGE}FILES+= test_extract.cpio.gz.uu 106 ${PACKAGE}FILES+= test_extract.cpio.lz.uu 110 ${PACKAGE}FILES+= test_extract.cpio.xz.uu 122 ${PACKAGE}FILES+= test_option_passphrase.zip.uu [all …]
|