#!/usr/bin/env php 'localhost', 'REMOTE_ADDR' => '127.0.0.1', 'REQUEST_METHOD' => 'GET', 'SCRIPT_NAME' => 'index.php', 'SCRIPT_FILENAME' => 'index.php', 'QUERY_STRING' => '', ); require_once 'includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); /** * Actually runs tests * @param array $testlist list of tests to run or DEFAULT NULL run all tests */ function simpletest_run_tests_with_xml_output($testlist = NULL) { global $test_running; if (!$test_running) { $test_running = TRUE; $test = simpletest_get_total_test($testlist); cache_clear_all(); exit($test->run(new XmlReporter()) ? 0 : 1); } } /** * Gooooooo planet... */ simpletest_load(); simpletest_run_tests_with_xml_output();