####################### helper functions ###############################
()
| 40 | |
| 41 | ######################## helper functions ############################### |
| 42 | function printUsage() { |
| 43 | print "Usage: checker.php <OpenMS src path> <OpenMS build path> [-u \"user name\"] [-t test] [options]\n"; |
| 44 | print "\n"; |
| 45 | print "This script works only if an OpenMS copy is used, where\n"; |
| 46 | print "- the internal documentation was built (doc_internal),\n"; |
| 47 | print "- the XML documentation was built (doc_xml),\n"; |
| 48 | print "- all tests were executed.\n"; |
| 49 | print "\n"; |
| 50 | print "The user name given with the '-u' option is matched against the maintainers in the\n"; |
| 51 | print "file headers. If no user name is given, the tests are performed for all users.\n"; |
| 52 | print "\n"; |
| 53 | print "tests:\n"; |
| 54 | foreach ($GLOBALS["all_tests"] as $name => $desc) |
| 55 | { |
| 56 | print " $name -- $desc\n"; |
| 57 | } |
| 58 | print "\n"; |
| 59 | print "options:\n"; |
| 60 | print " -x do not rebuild doxygen xml output\n"; |
| 61 | print " -s comma-sparated list of tests to skip\n"; |
| 62 | print " -d <level> debug mode\n"; |
| 63 | print " -r report as Testing.xml for ctest submission\n"; |
| 64 | print " --help shows this help\n"; |
| 65 | } |
| 66 | |
| 67 | function realOutput($text, $user, $filename) { |
| 68 | print "------> "; |