11 static char *Label =
"";
18 MagicCookie = magic_open(MAGIC_PRESERVE_ATIME|MAGIC_MIME);
21 fprintf(stderr,
"FATAL: Failed to initialize magic cookie\n");
46 Filename =
"../testdata/testthree.zip";
47 deleteTmpFiles(
"./test-result/");
49 FO_ASSERT_EQUAL(
exists, 0);
52 FO_ASSERT_EQUAL(
exists, 1);
64 deleteTmpFiles(
"./test-result/");
66 FO_ASSERT_EQUAL(
exists, 0);
69 FO_ASSERT_EQUAL(
exists, 1);
magic_t MagicCookie
for Magic
void testTraverseStartDir()
test TraverseStart() for directory
int TraverseStartInit()
initialize
int TraverseStartClean()
clean env and others
void testTraverseStartNormal()
Test TraverseStart() for normal file.
CU_TestInfo TraverseStart_testcases[]
TraverseStart() test cases.
void TraverseStart(char *Filename, char *Label, char *NewDir, int Recurse)
Find all files (assuming a directory) and process (unpack) all of them.
int file_dir_exists(char *path_name)
test if a file or directory exists
int exists
Default not exists.
int Recurse
Level of unpack recursion. Default to infinite.
char * NewDir
Test result directory.