13 #include "CUnit/CUnit.h"
14 #include "CUnit/Automated.h"
17 #include "libfocunit.h"
18 #include "libfodbreposysconf.h"
32 #define AGENT_DIR "../"
39 dbManager = createTestEnvironment(AGENT_DIR,
"pkgagent", 1);
50 dropTestEnvironment(
dbManager, AGENT_DIR,
"pkgagent");
59 {
"Testing the function RecordMetadataDEB:", NULL, NULL, (CU_SetUpFunc)PkgagentDBInit, (CU_TearDownFunc)PkgagentDBClean,
testcases_RecordMetadataDEB},
60 {
"Testing the function GetMetadataDebSource:", NULL, NULL, (CU_SetUpFunc)PkgagentDBInit, (CU_TearDownFunc)PkgagentDBClean,
testcases_GetMetadataDebSource},
61 {
"Testing the function RecordMetadataRPM:", NULL, NULL, (CU_SetUpFunc)PkgagentDBInit, (CU_TearDownFunc)PkgagentDBClean,
testcases_RecordMetadataRPM},
62 {
"Testing the function GetMetadataDebBinary:", NULL, NULL, (CU_SetUpFunc)PkgagentDBInit, (CU_TearDownFunc)PkgagentDBClean,
testcases_GetMetadataDebBinary},
63 {
"Testing the function GetMetadata:", NULL, NULL, (CU_SetUpFunc)PkgagentDBInit, (CU_TearDownFunc)PkgagentDBClean,
testcases_GetMetadata},
67 int main(
int argc,
char *argv[] )
69 return focunit_main(argc, argv,
"pkgagent_Tests",
suites) ;
int main(int argc, char *argv[])
main test function
CU_SuiteInfo suites[]
all test suites for delagent
char * get_dbconf()
get Db.conf path just created by create_db_repo_sysconf()
The main FOSSology C library.
fo_dbManager * dbManager
fo_dbManager object
char * DBConfFile
DB conf file location.
CU_TestInfo testcases_GetFieldValue[]
testcases for function GetFieldValue