FOSSology  4.4.0
Open Source License Compliance by Open Source Software
testRun.h
1 /*
2  SPDX-FileCopyrightText: © 2011 Hewlett-Packard Development Company, L.P.
3 
4  SPDX-License-Identifier: GPL-2.0-only
5 */
6 #ifndef RUN_TESTS_H
7 #define RUN_TESTS_H
8 
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <assert.h>
12 #include "CUnit/CUnit.h"
13 #include "CUnit/Automated.h"
14 
15 #include "libfocunit.h"
16 #include "libfodbreposysconf.h"
17 
18 /* for util.c, start */
19 extern CU_TestInfo testcases_ListFolders[];
20 extern CU_TestInfo testcases_DeleteFolders[];
21 extern CU_TestInfo testcases_ReadParameter[];
22 
23 /* Database Init and Clean */
24 int DelagentDBInit();
25 int DelagentDBClean();
26 /* Database and RepositoryInit and Clean */
27 int DelagentInit();
28 int DelagentClean();
29 
30 /* for util.c, end */
31 
36 CU_SuiteInfo suites[] = {
37  {"Testing the function ListFolders:", NULL, NULL, (CU_SetUpFunc)DelagentDBInit, (CU_TearDownFunc)DelagentClean, testcases_ListFolders},
38  {"Testing the function DeleteFolders:", NULL, NULL, (CU_SetUpFunc)DelagentInit, (CU_TearDownFunc)DelagentClean, testcases_DeleteFolders},
39  CU_SUITE_INFO_NULL
40 };
41 
42 #endif
int DelagentDBInit()
initialize db
Definition: testRun.c:56
int DelagentClean()
clean db
Definition: testRun.c:101
int DelagentInit()
init db and repo
Definition: testRun.c:111
CU_SuiteInfo suites[]
all test suites for delagent
Definition: testRun.h:36
CU_TestInfo testcases_DeleteFolders[]
testcases for function Delete
CU_TestInfo testcases_ListFolders[]
testcases for function ListFolders