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>
25 lines
587 B
C
25 lines
587 B
C
/*-
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
* Copyright (c) 2014 Mike Kazantsev
|
|
* Copyright (c) 2012 Michihiro NAKAJIMA
|
|
* All rights reserved.
|
|
*/
|
|
#include "test.h"
|
|
|
|
DEFINE_TEST(test_expand_bz2)
|
|
{
|
|
const char *reffile = "test_expand.bz2";
|
|
int f;
|
|
|
|
extract_reference_file(reffile);
|
|
f = systemf("%s %s >test.out 2>test.err", testprog, reffile);
|
|
if (f == 0 || canBzip2()) {
|
|
assertEqualInt(0, f);
|
|
assertTextFileContents("contents of test_expand.bz2.\n", "test.out");
|
|
assertEmptyFile("test.err");
|
|
} else {
|
|
skipping("It seems bzip2 is not supported on this platform");
|
|
}
|
|
}
|