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