| 1 |
<?php
|
| 2 |
// $Id: run_tests.php,v 1.1.2.5 2006/08/13 12:46:50 rokZlender Exp $
|
| 3 |
chdir(realpath(dirname(__FILE__) . '/../../'));
|
| 4 |
if (file_exists('./includes/bootstrap.inc')) {
|
| 5 |
include_once './includes/bootstrap.inc';
|
| 6 |
}
|
| 7 |
else {
|
| 8 |
chdir(getcwd() . '/../../');
|
| 9 |
if (file_exists('./includes/bootstrap.inc')) {
|
| 10 |
include_once './includes/bootstrap.inc';
|
| 11 |
}
|
| 12 |
else {
|
| 13 |
die("bootstrap.inc could not be loaded");
|
| 14 |
}
|
| 15 |
}
|
| 16 |
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
|
| 17 |
global $base_url;
|
| 18 |
|
| 19 |
$nodes = get_untested_patches();
|
| 20 |
foreach( $nodes as $nid) {
|
| 21 |
$node = node_load($nid);
|
| 22 |
$node->body .= "<br>".format_date(time(), 'large')."<br>Test started.";
|
| 23 |
$node->tested = 1;
|
| 24 |
node_save($node);
|
| 25 |
$test_it_path = realpath(dirname(__FILE__));
|
| 26 |
exec("php $test_it_path/test_it.php $node->nid > /dev/null &");
|
| 27 |
}
|
| 28 |
|
| 29 |
?>
|