17 #include "run_tests.h" 45 deleteTmpFiles(
"./test-result/");
49 MkDirs(
"./test-result/test.iso.dir/");
69 strcpy(Queue[0].ChildRecurse,
"./test-result/test.iso.dir");
80 FO_ASSERT_EQUAL(
exists, 1);
93 deleteTmpFiles(
"./test-result/");
96 Filename =
"../testdata/test_1-1.dsc";
103 strcpy(CITemp.
Partname,
"test_1-1.dsc");
105 ParentInfo PITemp = {28, 1287725739, 1287725739, 0};
126 FO_ASSERT_EQUAL(
exists, 1);
140 deleteTmpFiles(
"./test-result/");
143 Filename =
"../testdata/vmlinuz-2.6.26-2-686";
144 MkDirs(
"./test-result/vmlinuz-2.6.26-2-686.dir/");
145 strcpy(Queue[0].ChildRecurse,
"./test-result/vmlinuz-2.6.26-2-686.dir/");
151 strcpy(CITemp.
Partname,
"vmlinuz-2.6.26-2-686");
152 strcpy(CITemp.
PartnameNew,
"vmlinuz-2.6.26-2-686");
153 ParentInfo PITemp = {27, 1287725739, 1287725739, 0};
166 FO_ASSERT_EQUAL(
exists, 1);
void testTraverseChild4PartitionFile()
test the partition file
int file_dir_exists(char *path_name)
test if a file or directory exists
int ParentWait()
Wait for a child. Sets child status.
Queue for files to be unpacked.
Structure for storing information about a particular file.
CU_TestInfo TraverseChild_testcases[]
TraverseChild() test cases.
char Partname[FILENAME_MAX]
unpackqueue Queue[MAXCHILD+1]
Manage children.
void testTraverseChild4DebianSourceFile()
unpack debian source
char Partdir[FILENAME_MAX]
char * NewDir
Test result directory.
void TraverseChild(int Index, ContainerInfo *CI, char *NewDir)
Called by exec'd child to process.
int exists
Default not exists.
int MkDirs(char *Fname)
Same as command-line "mkdir -p".
void InitCmd()
Initialize the metahandler CMD table.
int TraverseChildInit()
initialize
char PartnameNew[FILENAME_MAX]
void testTraverseChild4IsoFile()
ununpack iso file