FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
testRun.c
Go to the documentation of this file.
1 /*********************************************************************
2 Copyright (C) 2011 Hewlett-Packard Development Company, L.P.
3 
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 version 2 as published by the Free Software Foundation.
7 
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 
13 You should have received a copy of the GNU General Public License along
14 with this program; if not, write to the Free Software Foundation, Inc.,
15 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 *********************************************************************/
17 
18 #include "testRun.h"
19 
29 #if CU_VERSION_P == 213
30 CU_SuiteInfo suites[] = {
31  // for wget_agent.c
32 #if 0
33 #endif
34  {"GetURL", NULL, NULL, (CU_SetUpFunc)GetURLInit, (CU_TearDownFunc)GetURLClean, testcases_GetURL},
35  {"SetEnv", NULL, NULL, (CU_SetUpFunc)SetEnvInit, (CU_TearDownFunc)SetEnvClean, testcases_SetEnv},
36  {"Utiliies", NULL, NULL, NULL, NULL, testcases_Utiliies},
37  {"DBLoadGold", NULL, NULL, (CU_SetUpFunc)DBLoadGoldInit, (CU_TearDownFunc)DBLoadGoldClean, testcases_DBLoadGold},
38  CU_SUITE_INFO_NULL
39 };
40 #else
41 CU_SuiteInfo suites[] = {
42  // for wget_agent.c
43 #if 0
44 #endif
45  {"GetURL", GetURLInit, GetURLClean, testcases_GetURL},
46  {"SetEnv", SetEnvInit, SetEnvClean, testcases_SetEnv},
47  {"Utiliies", NULL, NULL, testcases_Utiliies},
49  CU_SUITE_INFO_NULL
50 };
51 #endif
52 
53 /*
54  * \brief main test function
55  */
56 int main( int argc, char *argv[] )
57 {
58  return focunit_main(argc, argv, "wget_agent_Tests", suites) ;
59 }
60 
int GetURLClean()
clean the env
Definition: testGetURL.c:53
CU_SuiteInfo suites[]
all test suites for delagent
Definition: testRun.h:54
int GetURLInit()
initialize
Definition: testGetURL.c:46
CU_TestInfo testcases_DBLoadGold[]
testcases for function DBLoadGold
CU_TestInfo testcases_SetEnv[]
testcases for function SetEnv
Definition: testSetEnv.c:78
int SetEnvInit()
initialize
Definition: testSetEnv.c:36
int main(int argc, char *argv[])
main test function
Definition: testRun.c:146
CU_TestInfo testcases_Utiliies[]
testcases for function SetEnv
int DBLoadGoldClean()
Clean the env.
CU_TestInfo testcases_GetURL[]
testcases for function GetURL
Definition: testGetURL.c:111
int SetEnvClean()
clean the env
Definition: testSetEnv.c:48
int DBLoadGoldInit()
initialize