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