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