14 require_once (
'CommonCliTest.php');
38 $this->none = dirname(dirname(__FILE__)).
'/testdata/noLic';
39 $this->assertFileExists($this->none,
"OneShotnoneTest FAILURE! $this->none not found\n");
42 list(,$fname,,,$license) = explode(
' ', $output);
44 $this->assertEquals($fname,
'noLic',
"Error filename $fname does not equal noLic");
45 $this->assertEquals(
trim($license),
'No_license_found',
"Error license does not
46 equal No_license_found, $license was returned");
Tests for common CLI operations.
runNomos($args="", $files=array())
Run nomos using the arguments passed.
Perform a one-shot license analysis on a file with no license.
testOneShotnone()
Run NOMOS on file without license information.
char * trim(char *ptext)
Trimming whitespace.
list_t type structure used to keep various lists. (e.g. there are multiple lists).