22 deleteTmpFiles(
"./test-result/");
24 FO_ASSERT_EQUAL(
exists, 0);
26 MkDirs(
"./test-result/test.iso.dir");
28 FO_ASSERT_EQUAL(
Result, 0);
31 FO_ASSERT_EQUAL(
exists, 1);
42 deleteTmpFiles(
"./test-result/");
44 FO_ASSERT_EQUAL(
exists, 0);
46 FO_ASSERT_EQUAL(
Result, 1);
57 deleteTmpFiles(
"./test-result/");
59 FO_ASSERT_EQUAL(
exists, 0);
60 Filename =
"../testdata/test_1.orig.tar.gz";
61 MkDirs(
"./test-result/test_1.orig.tar.gz.dir");
63 FO_ASSERT_EQUAL(
Result, 0);
static int Result
Result of calls.
void testExtractISO4ErrorParameters()
abnormal parameters
void testExtractISO()
unpack iso file
CU_TestInfo ununpack_iso_testcases[]
ISO test cases.
void testExtractISO4EmptyParameters()
abnormal parameters
int ExtractISO(char *Source, char *Destination)
Given an ISO image and a directory, extract the image to the directory.
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.