mirror of
https://github.com/libarchive/libarchive.git
synced 2026-01-31 03:45:41 +00:00
This is the first part of converting the project to use SPDX license identifiers instead using the verbose license text. The patches are semi-automated and I've went through manually to ensure no license changes were made. That said, I would welcome another pair of eyes, since I am only human. See https://github.com/libarchive/libarchive/issues/2298 --------- Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> (cherry picked from commit 6287b99eb78ad4ffada536f75c55902208234425)
26 lines
676 B
C
26 lines
676 B
C
/*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
* Copyright (c) 2023 Adrian Vovk
|
|
* All rights reserved.
|
|
*/
|
|
#include "test.h"
|
|
|
|
/* This test just does a basic zip decompression */
|
|
DEFINE_TEST(test_basic)
|
|
{
|
|
const char *reffile = "test_basic.zip";
|
|
int r;
|
|
|
|
extract_reference_file(reffile);
|
|
r = systemf("%s %s >test.out 2>test.err", testprog, reffile);
|
|
assertEqualInt(0, r);
|
|
assertNonEmptyFile("test.out");
|
|
assertEmptyFile("test.err");
|
|
|
|
assertTextFileContents("contents a\n", "test_basic/a");
|
|
assertTextFileContents("contents b\n", "test_basic/b");
|
|
assertTextFileContents("contents c\n", "test_basic/c");
|
|
assertTextFileContents("contents CAPS\n", "test_basic/CAPS");
|
|
}
|