Store results of tests for Ctest-Reporting */
($text, $user, $testname, $file, $result)
| 89 | Store results of tests for Ctest-Reporting |
| 90 | */ |
| 91 | function reportTestResult($text, $user, $testname, $file, $result) { |
| 92 | # check if we have the correct user |
| 93 | if ($user == "all" && $file != "") |
| 94 | { |
| 95 | $user = $GLOBALS["file_maintainers"][$file]; |
| 96 | } |
| 97 | $reportAs = $file."_".$testname; |
| 98 | $GLOBALS["TestList"][$reportAs] = array(); |
| 99 | $GLOBALS["TestList"][$reportAs]["message"] = $text; |
| 100 | $GLOBALS["TestList"][$reportAs]["result"] = $result; |
| 101 | $GLOBALS["TestList"][$reportAs]["user"] = $user; |
| 102 | } |
| 103 | |
| 104 | function xmlentities($string) { |
| 105 | return str_replace(array("&", "<", ">", "\"", "'"), array("&", "<", ">", """, "'"), $string); |