12 require_once (
'CommonCliTest.php');
35 $this->tested_file = dirname(dirname(dirname(__DIR__))).
'/testing/dataFiles/TestData/licenses/jslint.js';
36 $license_report =
"JSON";
38 list($output,) = $this->
runNomos(
"",array($this->tested_file));
39 list(,,,,$license) = explode(
' ', $output);
40 $this->assertEquals(
trim($license), $license_report);
Tests for common CLI operations.
runNomos($args="", $files=array())
Run nomos using the arguments passed.
Run one-shot license analysis on JSON license.
testOneShot_JSON()
Run NOMOS on JSON file.
char * trim(char *ptext)
Trimming whitespace.
list_t type structure used to keep various lists. (e.g. there are multiple lists).