14 require_once (
'CommonCliTest.php');
38 $this->empty = dirname(dirname(__FILE__)).
'/testdata/empty';
39 $this->assertFileExists($this->empty,
"OneShotemptyTest FAILURE! $this->empty not found\n");
41 list($output,) = $this->
runNomos(
"",array($this->empty));
42 list(,$fname,,,$license) = explode(
' ', $output);
43 $this->assertEquals($fname,
'empty',
"Error filename $fname does not equal empty");
44 $this->assertEquals(
trim($license),
'No_license_found',
"Error license does not
45 equal No_license_found, $license was returned");
Tests for common CLI operations.
runNomos($args="", $files=array())
Run nomos using the arguments passed.
Run a one-shot license test on an empty file.
testOneShotempty()
Run NOMOS on an empty file.
char * trim(char *ptext)
Trimming whitespace.
list_t type structure used to keep various lists. (e.g. there are multiple lists).