/freebsd/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() 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 assertTextFileContents("contents CAPS\n", "test_basic/CAPS"); 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() 22 assertTextFileContents("contents b\n", "foobar/test_basic/b"); in DEFINE_TEST() 23 assertTextFileContents("contents c\n", "foobar/test_basic/c"); in DEFINE_TEST() 24 assertTextFileContents("contents CAPS\n", "foobar/test_basic/CAPS"); 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_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_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_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()
|
HD | 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/contrib/libarchive/libarchive/test/ |
H A D | test_write_format_7zip.c | 3 * All rights reserved. 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright 12 * documentation and/or other materials provided with the distribution. 16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 #include "test.h" 30 test_basic(const char *compression_type) in test_basic() function 41 /* Create a new archive in memory. */ in test_basic() [all …]
|
H A D | test_read_format_zip.c | 4 * All rights reserved. 9 * 1. Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. 11 * 2. Redistributions in binary form must reproduce the above copyright 13 * documentation and/or other materials provided with the distribution. 17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 #include "test.h" 78 * to properly decode test file. */ in extract_one_using_blocks() 112 assertEqualString("ZIP 1.0 (uncompressed)", archive_format_name(a)); in verify_basic() [all …]
|
/freebsd/usr.bin/unzip/tests/ |
H A D | Makefile | 11 CFLAGS+= -DPLATFORM_CONFIG_H=\"${SRCTOP}/lib/libarchive/config_freebsd.h\" 12 CFLAGS+= -I${SRCTOP}/lib/libarchive -I${.OBJDIR} 14 CFLAGS+= -I${.OBJDIR} 23 CFLAGS.test_utils.c+= -Wno-cast-align 25 .PATH: ${_LIBARCHIVEDIR}/libarchive_fe 26 UNZIP_SRCS+= err.c 28 .PATH: ${_LIBARCHIVEDIR}/unzip/test 30 test_0.c \ 31 test_C.c \ 32 test_I.c \ [all …]
|
/freebsd/usr.bin/tar/tests/ |
H A D | Makefile | 11 CFLAGS+= -DPLATFORM_CONFIG_H=\"${SRCTOP}/lib/libarchive/config_freebsd.h\" 12 CFLAGS+= -I${SRCTOP}/lib/libarchive -I${.OBJDIR} 17 CFLAGS.test_utils.c+= -Wno-cast-align 25 .PATH: ${_LIBARCHIVEDIR}/tar/test 27 test_0.c \ 28 test_basic.c \ 29 test_copy.c \ 30 test_empty_mtree.c \ 31 test_extract_tar_bz2.c \ 32 test_extract_tar_grz.c \ [all …]
|
/freebsd/usr.bin/cpio/tests/ |
H A D | Makefile | 11 CFLAGS+= -DPLATFORM_CONFIG_H=\"${SRCTOP}/lib/libarchive/config_freebsd.h\" 12 CFLAGS+= -I${SRCTOP}/lib/libarchive -I${.OBJDIR} 14 CFLAGS+= -I${.OBJDIR} 23 CFLAGS.test_utils.c+= -Wno-cast-align 25 .PATH: ${_LIBARCHIVEDIR}/cpio 26 CPIO_SRCS= cmdline.c 28 .PATH: ${_LIBARCHIVEDIR}/libarchive_fe 29 CPIO_SRCS+= err.c 31 .PATH: ${_LIBARCHIVEDIR}/cpio/test 33 test_0.c \ [all …]
|