34 deleteTmpFiles(
"./test-result/");
38 MkDirs(
"./test-result/test.iso.dir/");
58 strcpy(
Queue[0].ChildRecurse,
"./test-result/test.iso.dir");
69 FO_ASSERT_EQUAL(
exists, 1);
82 deleteTmpFiles(
"./test-result/");
85 Filename =
"../testdata/test_1-1.dsc";
92 strcpy(CITemp.
Partname,
"test_1-1.dsc");
94 ParentInfo PITemp = {28, 1287725739, 1287725739, 0};
115 FO_ASSERT_EQUAL(
exists, 1);
129 deleteTmpFiles(
"./test-result/");
132 Filename =
"../testdata/vmlinuz-2.6.26-2-686";
133 MkDirs(
"./test-result/vmlinuz-2.6.26-2-686.dir/");
134 strcpy(
Queue[0].ChildRecurse,
"./test-result/vmlinuz-2.6.26-2-686.dir/");
140 strcpy(CITemp.
Partname,
"vmlinuz-2.6.26-2-686");
141 strcpy(CITemp.
PartnameNew,
"vmlinuz-2.6.26-2-686");
142 ParentInfo PITemp = {27, 1287725739, 1287725739, 0};
155 FO_ASSERT_EQUAL(
exists, 1);
Structure for storing information about a particular file.
char Partname[FILENAME_MAX]
char PartnameNew[FILENAME_MAX]
char Partdir[FILENAME_MAX]
Queue for files to be unpacked.
CU_TestInfo TraverseChild_testcases[]
TraverseChild() test cases.
unpackqueue Queue[MAXCHILD+1]
Manage children.
void testTraverseChild4PartitionFile()
test the partition file
void testTraverseChild4DebianSourceFile()
unpack debian source
void testTraverseChild4IsoFile()
ununpack iso file
int TraverseChildInit()
initialize
void TraverseChild(int Index, ContainerInfo *CI, char *NewDir)
Called by exec'd child to process.
int MkDirs(char *Fname)
Same as command-line "mkdir -p".
int ParentWait()
Wait for a child. Sets child status.
void InitCmd()
Initialize the metahandler CMD table.
int file_dir_exists(char *path_name)
test if a file or directory exists
int exists
Default not exists.
char * NewDir
Test result directory.