FOSSology  4.4.0
Open Source License Compliance by Open Source Software
testRun.c File Reference

main function for in this testing module More...

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
#include "CUnit/CUnit.h"
#include "CUnit/Automated.h"
#include "testRun.h"
Include dependency graph for testRun.c:

Go to the source code of this file.

Functions

char * getUser ()
 Helper function to get db owner. More...
 
int DelagentDBInit ()
 initialize db More...
 
int DelagentClean ()
 clean db
 
int DelagentInit ()
 init db and repo More...
 
int main (int argc, char *argv[])
 main test function
 

Variables

char * DBConfFile = NULL
 
CU_SuiteInfo suites []
 all test suites for delagent More...
 

Detailed Description

main function for in this testing module

Definition in file testRun.c.

Function Documentation

◆ DelagentDBInit()

int DelagentDBInit ( )

initialize db

Returns
0 on success, -1 otherwise

Definition at line 56 of file testRun.c.

◆ DelagentInit()

int DelagentInit ( )

init db and repo

Returns
0 on success, -1 otherwise

Definition at line 111 of file testRun.c.

◆ getUser()

char* getUser ( )

Helper function to get db owner.

Returns
Owner of the database

Definition at line 29 of file testRun.c.

Variable Documentation

◆ suites

CU_SuiteInfo suites[]
extern

all test suites for delagent

array of every test suite. There should be at least one test suite for every library includes in libfossology.

Todo:
Fix fossscheduler_testcases

all test suites for delagent

Todo:
tests_job is not running

Definition at line 36 of file testRun.h.