63 require_once
'fo_integration.php';
65 $usage =
"fointeg [-a] [-b] [-f] [-h] [-i] [-t] [-u] 66 -a: run everything, build, install, unit and functional tests 68 -f: run functional tests (which build/install and run func tests) 70 -i: install upstream sources 71 -t: run unit and functional tests 72 -u: run unit tests (make tests, and process results)";
74 $options = getopt(
'abfhitu');
80 if (array_key_exists(
'h', $options))
85 if (array_key_exists(
'a', $options))
87 echo
"-a option is not yet implimented\n";
90 if (array_key_exists(
'b', $options))
95 $Make =
new Build(getcwd());
103 if (array_key_exists(
'f', $options))
105 echo
"-f option is not yet implimented\n";
108 if (array_key_exists(
'i', $options))
110 echo
"-i option is not yet implimented\n";
113 if (array_key_exists(
't', $options))
115 echo
"-t option is not yet implimented\n";
118 if (array_key_exists(
'u', $options))
134 if(array_key_exists(
'WORKSPACE', $_ENV))
136 $WORKSPACE = $_ENV[
'WORKSPACE'];
140 if(!chdir($WORKSPACE .
"/fossology2.0/fossology/src"))
142 echo
"FATAL! Cannot cd to " . $WORKSPACE .
"/fossology2.0/fossology/src";
make fossology, check for warnings and errors