17 #include "run_tests.h" 33 deleteTmpFiles(
"./test-result/");
35 FO_ASSERT_EQUAL(
exists, 0);
37 MkDirs(
"./test-result/test.iso.dir");
39 FO_ASSERT_EQUAL(
Result, 0);
42 FO_ASSERT_EQUAL(
exists, 1);
53 deleteTmpFiles(
"./test-result/");
55 FO_ASSERT_EQUAL(
exists, 0);
57 FO_ASSERT_EQUAL(
Result, 1);
68 deleteTmpFiles(
"./test-result/");
70 FO_ASSERT_EQUAL(
exists, 0);
71 Filename =
"../testdata/test_1.orig.tar.gz";
72 MkDirs(
"./test-result/test_1.orig.tar.gz.dir");
74 FO_ASSERT_EQUAL(
Result, 0);
static int Result
Result of calls.
void testExtractISO()
unpack iso file
void testExtractISO4EmptyParameters()
abnormal parameters
int file_dir_exists(char *path_name)
test if a file or directory exists
int ExtractISO(char *Source, char *Destination)
Given an ISO image and a directory, extract the image to the directory.
int exists
Default not exists.
int MkDirs(char *Fname)
Same as command-line "mkdir -p".
void testExtractISO4ErrorParameters()
abnormal parameters
CU_TestInfo ununpack_iso_testcases[]
ISO test cases.