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

Unit test runner for ununpack agent. More...

#include "run_tests.h"
#include "../agent/ununpack_globals.h"
Include dependency graph for run_tests.c:

Go to the source code of this file.

Macros

#define AGENT_DIR   "../../"
 

Functions

int file_dir_exists (char *path_name)
 test if a file or directory exists More...
 
int main (int argc, char **argv)
 

Variables

char * Filename = ""
 Filename.
 
char * NewDir = "./test-result"
 Test result directory.
 
int Recurse = -1
 Level of unpack recursion. Default to infinite.
 
int exists = 0
 Default not exists.
 
char * DBConfFile = NULL
 DB conf file location.
 
CU_TestInfo ExtractAR_testcases []
 AR test cases.
 
CU_TestInfo ExtractZstd_testcases []
 Zstd test cases.
 
CU_TestInfo ununpack_iso_testcases []
 ISO test cases.
 
CU_TestInfo ununpack_disk_testcases []
 Disk image test cases.
 
CU_TestInfo CopyFile_testcases []
 Copy test cases.
 
CU_TestInfo FindCmd_testcases []
 FindCmd() test cases.
 
CU_TestInfo Prune_testcases []
 Prune() test cases.
 
CU_TestInfo RunCommand_testcases []
 Run test cases.
 
CU_TestInfo Traverse_testcases []
 Traverse() test cases.
 
CU_TestInfo TraverseChild_testcases []
 TraverseChild() test cases.
 
CU_TestInfo TraverseStart_testcases []
 TraverseStart() test cases.
 
CU_TestInfo TaintString_testcases []
 TaintString() test cases.
 
CU_TestInfo IsFunctions_testcases []
 Isxxx() test cases.
 
CU_TestInfo ContainerInfo_testcases []
 Container info test cases.
 
CU_TestInfo Checksum_testcases []
 Checksum test cases.
 
CU_TestInfo PathCheck_testcases []
 Pacth check test cases.
 
CU_TestInfo DBInsertPfile_testcases []
 DB insertion test cases (pfile)
 
CU_TestInfo DBInsertUploadTree_testcases []
 DB insertion test cases (uploadtree)
 
CU_SuiteInfo suites []
 all test suites for delagent More...
 

Detailed Description

Unit test runner for ununpack agent.

Definition in file run_tests.c.

Function Documentation

◆ file_dir_exists()

int file_dir_exists ( char *  path_name)

test if a file or directory exists

Parameters
path_name,thepathname of a file or directory to test
Returns
0=path_name does not exist, 1=exists

Definition at line 90 of file run_tests.c.

Variable Documentation

◆ suites

CU_SuiteInfo suites[]

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 45 of file run_tests.c.