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