19 #include <CUnit/CUnit.h> 20 #include "wget_agent.h" 28 static char Source[MAX_LENGTH];
29 static char TempFileDir[MAX_LENGTH];
65 strcpy(Source,
"38 - https://mirrors.kernel.org/fossology/releases/3.0.0/ubuntu/ -l 1 -R *.deb");
66 strcpy(TempFileDir,
"./test_result");
67 SetEnv(Source, TempFileDir);
70 CU_ASSERT_PTR_NOT_NULL(cptr);
71 CU_ASSERT_STRING_EQUAL(
GlobalURL,
"https://mirrors.kernel.org/fossology/releases/3.0.0/ubuntu/");
72 CU_ASSERT_STRING_EQUAL(
GlobalParam,
"-l 1 -R *.deb");
long GlobalUploadKey
Input for this system.
char GlobalParam[STRMAX]
Additional parameters.
CU_TestInfo testcases_SetEnv[]
testcases for function SetEnv
int SetEnvInit()
initialize
char GlobalURL[URLMAX]
URL to download.
void SetEnv(char *S, char *TempFileDir)
Convert input pairs into globals.
void testSetEnvNormal()
set the global variables
char GlobalTempFile[STRMAX]
Temp file to be used.
int SetEnvClean()
clean the env