23 deleteTmpFiles(
"./test-result/");
25 FO_ASSERT_EQUAL(
exists, 0);
26 MkDirs(
"./test-result/test.zst.dir/");
30 FO_ASSERT_EQUAL(
exists, 1);
31 FO_ASSERT_EQUAL(
Result, 0);
42 deleteTmpFiles(
"./test-result/");
44 FO_ASSERT_EQUAL(
exists, 0);
45 MkDirs(
"./test-result/test.lz4.dir/");
49 FO_ASSERT_EQUAL(
exists, 1);
50 FO_ASSERT_EQUAL(
Result, 0);
61 deleteTmpFiles(
"./test-result/");
63 FO_ASSERT_EQUAL(
exists, 0);
64 MkDirs(
"./test-result/test.lzma.dir/");
68 FO_ASSERT_EQUAL(
exists, 1);
69 FO_ASSERT_EQUAL(
Result, 0);
80 deleteTmpFiles(
"./test-result/");
82 FO_ASSERT_EQUAL(
exists, 0);
84 FO_ASSERT_EQUAL(
Result, 1);
95 deleteTmpFiles(
"./test-result/");
97 FO_ASSERT_EQUAL(
exists, 0);
98 MkDirs(
"./test-result/null_file.dir/");
101 FO_ASSERT_EQUAL(
Result, 1);
static int Result
Result of calls.
void testExtractZstdFile()
unpack ZSTd file
CU_TestInfo ExtractZstd_testcases[]
Zstd test cases.
void testExtractZst4EmptyParameters()
abnormal parameters
void testExtractZstlzmaFile()
unpack lzma file
void testExtractZst4ErrorParameters()
abnormal parameters
void testExtractZstlz4File()
unpack lz4 file
int ExtractAR(char *Source, char *Destination)
Given an AR file, extract the contents to the directory. This uses the command ar.
int MkDirs(char *Fname)
Same as command-line "mkdir -p".
int file_dir_exists(char *path_name)
test if a file or directory exists
int exists
Default not exists.