Home
last modified time | relevance | path

Searched +full:test_basic +full:. +full:zip (Results 1 – 21 of 21) sorted by relevance

/freebsd-14.2/contrib/libarchive/unzip/test/
H A Dtest_x.c5 * 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 Dtest_d.c5 * 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 Dtest_basic.c5 * 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 Dtest_n.c5 * 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 Dtest_o.c5 * 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 Dtest_L.c5 * 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 Dtest_q.c5 * 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 Dtest_doubledash.c5 * 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 Dtest_glob.c5 * 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 Dtest_C.c5 * 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 Dtest_Z1.c5 * 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 Dtest_t.c5 * 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 Dtest_basic.zip.uu1 begin 644 test_basic.zip
H A Dtest_p.c5 * 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 Dtest.h5 * 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 Dtest_j.c5 * 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 DMakefile37 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 Dtest_write_format_7zip.c530 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 Dtest_read_format_zip.c179 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 DMakefile29 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 DMakefile35 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 …]