23 #include "run_tests.h" 24 #include "../agent/ununpack_globals.h" 26 #define AGENT_DIR "../../" 55 #if CU_VERSION_P == 213 141 if ((stat (path_name, &sts)) == -1) exists = 0;
150 int main(
int argc,
char** argv)
155 printf(
"Unable to connect to test database\n");
161 int rc = focunit_main(argc, argv,
"ununpack_Tests",
suites);
162 dropTestEnvironment(dbManager, AGENT_DIR,
"ununpack");
CU_TestInfo FindCmd_testcases[]
FindCmd() test cases.
CU_TestInfo RunCommand_testcases[]
Run test cases.
CU_TestInfo Traverse_testcases[]
Traverse() test cases.
int file_dir_exists(char *path_name)
test if a file or directory exists
int FatDiskNameInit()
initialize
CU_TestInfo ExtractAR_testcases[]
AR test cases.
int TraverseInit()
initialize
int DBInsertClean()
clean the database
CU_TestInfo PathCheck_testcases[]
Pacth check test cases.
int TraverseStartInit()
initialize
CU_TestInfo TaintString_testcases[]
TaintString() test cases.
char * get_dbconf()
get Db.conf path just created by create_db_repo_sysconf()
int PruneClean()
clean env and others
int PruneInit()
initialize
int TraverseClean()
clean env and others
int CopyFileClean()
clean env and others
int TraverseStartClean()
clean env and others
CU_SuiteInfo suites[]
all test suites for delagent
char * DBConfFile
DB conf file location.
CU_TestInfo Checksum_testcases[]
Checksum test cases.
CU_TestInfo DBInsertPfile_testcases[]
DB insertion test cases (pfile)
char * NewDir
Test result directory.
CU_TestInfo TraverseChild_testcases[]
TraverseChild() test cases.
CU_TestInfo IsFunctions_testcases[]
Isxxx() test cases.
int FatDiskNameClean()
clean env and others
fo_dbManager * dbManager
fo_dbManager object
CU_TestInfo ContainerInfo_testcases[]
Container info test cases.
CU_TestInfo ununpack_disk_testcases[]
Disk image test cases.
CU_TestInfo ununpack_iso_testcases[]
ISO test cases.
CU_TestInfo CopyFile_testcases[]
Copy test cases.
int DBInsertInit()
initialize
int CopyFileInit()
initialize
int exists
Default not exists.
int TraverseChildInit()
initialize
CU_TestInfo Prune_testcases[]
Prune() test cases.
int Recurse
Level of unpack recursion. Default to infinite.
CU_TestInfo DBInsertUploadTree_testcases[]
DB insertion test cases (uploadtree)
CU_TestInfo TraverseStart_testcases[]
TraverseStart() test cases.