23 require_once (
'CommonCliTest.php');
40 $gplv21 = dirname(dirname(dirname(dirname(__FILE__)))).
'/testing/dataFiles/TestData/licenses/gplv2.1';
41 $this->assertFileExists($gplv21,
"OneShotgplv21Test FAILURE! $gplv21 not found\n");
44 list(,$fname,,,$license) = explode(
' ', $output);
45 $this->assertEquals($fname,
'gplv2.1',
"Error filename $fname does not equal gplv2.1");
46 $this->assertEquals(
trim($license),
'LGPL-2.1',
"Error license does not equal LGPL_v2.1, 47 $license was returned");
runNomos($args="", $files=array())
Run nomos using the arguments passed.
Tests for common CLI operations.
testOneShotgplv21()
Run NOMOS on GPL_v2.1 license.
Run one-shot license analysis on LGPL_v2.1 license.
list_t type structure used to keep various lists. (e.g. there are multiple lists).
char * trim(char *ptext)
Trimming whitespace.