FOSSology  4.4.0
Open Source License Compliance by Open Source Software
run_tests.c
Go to the documentation of this file.
1 /*
2  SPDX-FileCopyrightText: © 2014 Siemens AG
3 
4  SPDX-License-Identifier: GPL-2.0-only
5 */
13 /* local includes */
14 #include <libfocunit.h>
15 
16 /* std library includes */
17 #include <stdio.h>
18 #include <assert.h>
19 
20 /* cunit includes */
21 #include <CUnit/CUnit.h>
22 #include <CUnit/Automated.h>
23 
24 #include "nomos.h"
25 #include "util.h"
26 #include "list.h"
27 #include "licenses.h"
28 #include "process.h"
29 #include "nomos_regex.h"
30 #include "_autodefs.h"
31 //nomos globals
32 extern licText_t licText[];
33 struct globals gl;
34 struct curScan cur;
35 
36 /* ************************************************************************** */
37 /* **** test case sets ****************************************************** */
38 /* ************************************************************************** */
39 
40 extern CU_TestInfo nomos_gap_testcases[];
41 extern CU_TestInfo doctorBuffer_testcases[];
42 /* ************************************************************************** */
43 /* **** create test suite *************************************************** */
44 /* ************************************************************************** */
45 
46 CU_SuiteInfo suites[] =
47 {
48  {"Testing process:", NULL, NULL, NULL, NULL, nomos_gap_testcases},
49  {"Testing doctor Buffer:", NULL, NULL, NULL, NULL, doctorBuffer_testcases},
50  CU_SUITE_INFO_NULL
51 };
52 
53 /* ************************************************************************** */
54 /* **** main test functions ************************************************* */
55 /* ************************************************************************** */
56 
57 int main(int argc, char** argv)
58 {
59  return focunit_main(argc, argv, "nomos_Util_Tests", suites);
60 }
licText_t licText[]
CU_SuiteInfo suites[]
all test suites for delagent
Definition: run_tests.c:46
Nomos header file.
Struct that tracks state related to current file being scanned.
Definition: nomos.h:391
Structure holding data truly global in that it remains consistent for each file scanned.
Definition: nomos.h:344