Home
last modified time | relevance | path

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

/freebsd-src/contrib/libarchive/unzip/test/
H A Dtest_x.c5 * All rights reserved.
7 #include "test.h"
12 const char *reffile = "test_basic.zip";
16 r = systemf("%s %s -x test_basic/c >test.out 2>test.err", testprog, reffile);
18 assertNonEmptyFile("test.out");
19 assertEmptyFile("test.er
[all...]
H A Dtest_d.c5 * All rights reserved.
7 #include "test.h"
12 const char *reffile = "test_basic.zip";
16 r = systemf("%s -d foobar %s >test.out 2>test.err", testprog, reffile);
18 assertNonEmptyFile("test.out");
19 assertEmptyFile("test.err");
21 assertTextFileContents("contents a\n", "foobar/test_basic/
[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)
12 const char *reffile = "test_basic.zip";
16 r = systemf("%s %s >test.out 2>test.err", testprog, reffile);
18 assertNonEmptyFile("test.ou
29 DEFINE_TEST(test_basic) DEFINE_TEST() argument
[all...]
H A Dtest_n.c5 * All rights reserved.
7 #include "test.h"
12 const char *reffile = "test_basic.zip";
15 assertMakeDir("test_basic", 0755);
16 assertMakeFile("test_basic/a", 0644, "orig a\n");
17 assertMakeFile("test_basic/b", 0644, "orig b\n");
20 r = systemf("%s -n %s >test.out 2>test.er
[all...]
H A Dtest_o.c5 * All rights reserved.
7 #include "test.h"
12 const char *reffile = "test_basic.zip";
15 assertMakeDir("test_basic", 0755);
16 assertMakeFile("test_basic/a", 0644, "orig a\n");
17 assertMakeFile("test_basic/b", 0644, "orig b\n");
20 r = systemf("%s -o %s >test.out 2>test.er
[all...]
H A Dtest_doubledash.c5 * All rights reserved.
7 #include "test.h"
12 const char *reffile = "test_basic.zip";
16 r = systemf("%s -- %s >test.out 2>test.err", testprog, reffile);
18 assertNonEmptyFile("test.out");
19 assertEmptyFile("test.err");
21 assertTextFileContents("contents a\n", "test_basic/
[all...]
H A Dtest_L.c5 * All rights reserved.
7 #include "test.h"
12 const char *reffile = "test_basic.zip";
16 r = systemf("%s -L %s >test.out 2>test.err", testprog, reffile);
18 assertNonEmptyFile("test.out");
19 assertEmptyFile("test.err");
21 assertTextFileContents("contents a\n", "test_basic/
[all...]
H A Dtest_glob.c5 * All rights reserved.
7 #include "test.h"
12 const char *reffile = "test_basic.zip";
16 r = systemf("%s %s test_*/[ab] >test.out 2>test.err", testprog, reffile);
18 assertNonEmptyFile("test.out");
19 assertEmptyFile("test.err");
21 assertTextFileContents("contents a\n", "test_basic/
[all...]
H A Dtest_q.c5 * All rights reserved.
7 #include "test.h"
12 const char *reffile = "test_basic.zip";
16 r = systemf("%s -q %s >test.out 2>test.err", testprog, reffile);
18 assertEmptyFile("test.out");
19 assertEmptyFile("test.err");
21 assertTextFileContents("contents a\n", "test_basic/
[all...]
H A Dtest_C.c5 * All rights reserved.
7 #include "test.h"
12 const char *reffile = "test_basic.zip";
16 r = systemf("%s -C %s test_basic/caps >test.out 2>test.err", testprog, reffile);
18 assertNonEmptyFile("test.out");
19 assertEmptyFile("test.er
[all...]
H A Dtest_Z1.c5 * All rights reserved.
7 #include "test.h"
12 const char *reffile = "test_basic.zip";
16 r = systemf("%s -Z1 %s >test.out 2>test.err", testprog, reffile);
18 assertNonEmptyFile("test.out");
19 assertTextFileContents("test_basic/\ntest_basic/a\ntest_basic/b\ntest_basic/c\ntest_basic/CAPS\n", "test.ou
[all...]
HDtest_basic.zip.uu1 begin 644 test_basic.zip
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";
16 r = systemf("%s -t %s >test.out 2>test.err", testprog, reffile);
18 assertNonEmptyFile("test.out");
19 assertEmptyFile("test.er
[all...]
H A Dtest_p.c5 * All rights reserved.
7 #include "test.h"
12 const char *reffile = "test_basic.zip";
16 r = systemf("%s -p %s >test.out 2>test.err", testprog, reffile);
18 assertTextFileContents("contents a\ncontents b\ncontents c\ncontents CAPS\n", "test.out");
19 assertEmptyFile("test.err");
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. */
[all...]
H A Dtest_j.c5 * All rights reserved.
7 #include "test.h"
12 const char *reffile = "test_basic.zip";
16 r = systemf("%s -j %s >test.out 2>test.err", testprog, reffile);
18 assertNonEmptyFile("test.out");
19 assertEmptyFile("test.err");
/freebsd-src/usr.bin/unzip/tests/
H A DMakefile11 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.
[all...]
/freebsd-src/contrib/libarchive/libarchive/test/
H A Dtest_write_format_7zip.c3 * 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 Dtest_read_format_zip.c4 * 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"
29 #include <archive_crc32.h>
79 * to properly decode test file. */ in extract_one_using_blocks()
[all …]
/freebsd-src/usr.bin/tar/tests/
H A DMakefile11 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.
[all...]
/freebsd-src/usr.bin/cpio/tests/
H A DMakefile11 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 .PAT
[all...]