/[drupal]/contributions/modules/simpletestauto/run_tests.php
ViewVC logotype

Contents of /contributions/modules/simpletestauto/run_tests.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Sun Aug 20 10:15:48 2006 UTC (3 years, 3 months ago) by rokZlender
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +16 -4 lines
File MIME type: text/x-php
- merging differences with 1.2.2.5 version from DRUPAL-4-7
- run tests now uses php to run test_it script
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 ?>

  ViewVC Help
Powered by ViewVC 1.1.2