52 require_once
'fo_integration.php';
54 $usage =
"fointeg [-a] [-b] [-f] [-h] [-i] [-t] [-u]
55 -a: run everything, build, install, unit and functional tests
57 -f: run functional tests (which build/install and run func tests)
59 -i: install upstream sources
60 -t: run unit and functional tests
61 -u: run unit tests (make tests, and process results)";
63 $options = getopt(
'abfhitu');
69 if (array_key_exists(
'h', $options))
74 if (array_key_exists(
'a', $options))
76 echo
"-a option is not yet implimented\n";
79 if (array_key_exists(
'b', $options))
84 $Make =
new Build(getcwd());
92 if (array_key_exists(
'f', $options))
94 echo
"-f option is not yet implimented\n";
97 if (array_key_exists(
'i', $options))
99 echo
"-i option is not yet implimented\n";
102 if (array_key_exists(
't', $options))
104 echo
"-t option is not yet implimented\n";
107 if (array_key_exists(
'u', $options))
123 if(array_key_exists(
'WORKSPACE', $_ENV))
125 $WORKSPACE = $_ENV[
'WORKSPACE'];
129 if(!chdir($WORKSPACE .
"/fossology2.0/fossology/src"))
131 echo
"FATAL! Cannot cd to " . $WORKSPACE .
"/fossology2.0/fossology/src";
make fossology, check for warnings and errors