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