blob: 8bfffbe5dc390c9799e5b0a74586eab27e9926e5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2023 Adrian Vovk
* All rights reserved.
*/
#include "test.h"
/* Test p arg - Print to stdout */
DEFINE_TEST(test_p)
{
const char *reffile = "test_basic.zip";
int r;
extract_reference_file(reffile);
r = systemf("%s -p %s >test.out 2>test.err", testprog, reffile);
assertEqualInt(0, r);
assertTextFileContents("contents a\ncontents b\ncontents c\ncontents CAPS\n", "test.out");
assertEmptyFile("test.err");
}
|