26 #include <CUnit/CUnit.h> 27 #include <CUnit/Automated.h> 38 #include <interface.h> 40 #include <scheduler.h> 60 if(!testdb && (testdb = getenv(
"FOSSOLOGY_TESTCONFIG")) == NULL)
62 printf(
"ERROR: scheduler unit tests require a test database");
90 #if CU_VERSION_P == 213 96 {
"InterfaceThread", NULL, NULL, (CU_SetUpFunc)
init_suite, (CU_TearDownFunc)
clean_suite, tests_interface_thread },
101 {
"MetaAgent", NULL, NULL, (CU_SetUpFunc)
init_suite, (CU_TearDownFunc)
clean_suite, tests_meta_agent },
123 int main(
int argc,
char *argv[] )
125 #if !GLIB_CHECK_VERSION(2,35,0) 130 return focunit_main(argc, argv,
"scheduler_Tests",
suites);
void log_destroy(log_t *log)
Free memory associated with the log file.
CU_SuiteInfo suites[]
all test suites for delagent
int main(int argc, char *argv[])
main test function
log_t * log_new(gchar *log_name, gchar *pro_name, pid_t pro_pid)
Creates a new log.
The main FOSSology C library.
Event handling operations.
Header file with agent related operations.