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

Unit test cases for RunCommand() More...

#include "run_tests.h"
Include dependency graph for test_RunCommand.c:

Go to the source code of this file.

Functions

void testRunCommand4ZcatTesting ()
 test the command zcat, just testing if the commmand can run
 
void testRunCommand4Zcat ()
 test the command zcat, unpack via zcat
 
void testRunCommand4Pdf ()
 test the command pdftotext
 
void testRunCommand4Rpm1 ()
 test rpm file, the command is rmp2cpio
 
void testRunCommand4Rpm2 ()
 test rpm file, the command is cpio
 

Variables

static char * Cmd = ""
 
static char * CmdPre = ""
 
static char * File = ""
 
static char * CmdPost = ""
 
static char * Out = ""
 
static char * Where = ""
 
static int Result = 0
 
CU_TestInfo RunCommand_testcases []
 Run test cases. More...
 

Detailed Description

Unit test cases for RunCommand()

Definition in file test_RunCommand.c.

Variable Documentation

◆ RunCommand_testcases

CU_TestInfo RunCommand_testcases[]
Initial value:
=
{
{"RunCommand: Zcat, test if the command can run:", testRunCommand4ZcatTesting},
{"RunCommand: Zcat:", testRunCommand4Zcat},
{"RunCommand: pdf:", testRunCommand4Pdf},
{"RunCommand: rpm file with rpm2cpio", testRunCommand4Rpm1},
{"RunCommand: rpm file with cpio", testRunCommand4Rpm2},
CU_TEST_INFO_NULL
}
void testRunCommand4Rpm1()
test rpm file, the command is rmp2cpio
void testRunCommand4Pdf()
test the command pdftotext
void testRunCommand4Zcat()
test the command zcat, unpack via zcat
void testRunCommand4ZcatTesting()
test the command zcat, just testing if the commmand can run
void testRunCommand4Rpm2()
test rpm file, the command is cpio

Run test cases.

Definition at line 115 of file test_RunCommand.c.