13 require_once (
'CommonCliTest.php');
38 $oracleBDB_tested_file = dirname(dirname(dirname(__DIR__))).
'/testing/dataFiles/TestData/licenses/Oracle-Berkeley-DB.java';
39 list($output,) = $this->
runNomos(
"",array($oracleBDB_tested_file));
40 list(,,,,$licenseOBDB) = explode(
' ', $output);
41 $this->assertEquals(
trim($licenseOBDB),
"Oracle-Berkeley-DB");
44 $sleepycatTested_file = dirname(dirname(dirname(__DIR__))).
'/testing/dataFiles/TestData/licenses/sleepycat.php';
45 list($outputSc,) = $this->
runNomos(
"",array($sleepycatTested_file));
46 list(,,,,$licenseSc) = explode(
' ', $outputSc);
47 $this->assertEquals(
trim($licenseSc),
"Sleepycat");
Tests for common CLI operations.
runNomos($args="", $files=array())
Run nomos using the arguments passed.
Perform a one-shot license analysis on Oracle-Berkeley-DB and sleepycat license.
testOneShotOracle_Berkeley_DB()
Run NOMOS on license files.
char * trim(char *ptext)
Trimming whitespace.
list_t type structure used to keep various lists. (e.g. there are multiple lists).