23 require_once (
'CommonCliTest.php');
46 $this->bsd = dirname(dirname(dirname(dirname(__FILE__)))).
'/testing/dataFiles/TestData/licenses/BSD_style_d.txt';
47 $this->assertFileExists($this->bsd,
"OneShotbsdTest FAILURE! $this->bsd not found\n");
49 $bsdlic =
"BSD-3-Clause";
50 list(,$fname,,,$license) = explode(
' ', $output);
51 $this->assertEquals($fname,
'BSD_style_d.txt',
"Error filename $fname does not equal BSD_style_d.txt");
52 $this->assertEquals(
trim($license), $bsdlic);
64 $this->bsd = dirname(dirname(dirname(dirname(__FILE__)))).
'/testing/dataFiles/TestData/licenses/DNSDigest.c';
65 $this->assertFileExists($this->bsd,
"OneShotbsdTest FAILURE! $this->bsd not found\n");
67 $bsdlic =
"Apache-2.0,BSD-style,GPL";
68 list(,$fname,,,$license) = explode(
' ', $output);
69 $this->assertEquals($fname,
'DNSDigest.c',
"Error filename $fname does not equal DNSDigest.c");
70 $this->assertEquals(
trim($license), $bsdlic);
Perform a one-shot license analysis on a file (include bsd license)
testOneShotBsd()
Run NOMOS on BSD style license.
runNomos($args="", $files=array())
Run nomos using the arguments passed.
Tests for common CLI operations.
testOneShotDnsdigest()
Run NOMOS on DNS digest.
list_t type structure used to keep various lists. (e.g. there are multiple lists).
char * trim(char *ptext)
Trimming whitespace.