2002-10-09 04:56:41 +00:00
|
|
|
#! /usr/local/bin/php
|
|
|
|
<?php
|
|
|
|
// This tests whether the most basic mechanisms are working
|
|
|
|
// Also whether stderr output is reported correctly
|
|
|
|
|
|
|
|
include_once("test.inc");
|
|
|
|
|
|
|
|
$project = new Project;
|
|
|
|
$user = new User();
|
|
|
|
$host = new Host($user);
|
|
|
|
$app = new App("upper_case");
|
|
|
|
$app_version = new App_Version($app);
|
|
|
|
|
|
|
|
$project->add_user($user);
|
|
|
|
$project->add_app($app);
|
|
|
|
$project->add_app_version($app_version);
|
2003-02-24 21:58:23 +00:00
|
|
|
$project->start_feeder = true;
|
|
|
|
$project->start_make_work = true;
|
|
|
|
$project->start_validate = true;
|
|
|
|
$project->start_file_delete = true;
|
|
|
|
$project->start_assimilator = true;
|
2002-10-09 04:56:41 +00:00
|
|
|
$project->install(); // must install projects before adding to hosts
|
|
|
|
|
|
|
|
$host->log_flags = "log_flags.xml";
|
|
|
|
$host->add_project($project);
|
|
|
|
$host->install();
|
|
|
|
|
|
|
|
echo "adding work\n";
|
|
|
|
|
|
|
|
$work = new Work($app);
|
|
|
|
$work->wu_template = "uc_wu";
|
|
|
|
$work->result_template = "uc_result";
|
2003-01-07 01:02:08 +00:00
|
|
|
$work->redundancy = 3;
|
2002-12-20 02:12:27 +00:00
|
|
|
|
2002-10-09 04:56:41 +00:00
|
|
|
array_push($work->input_files, "input");
|
|
|
|
$work->install($project);
|
|
|
|
|
|
|
|
$project->start_feeder();
|
2002-10-14 23:10:12 +00:00
|
|
|
$project->start_make_work($work);
|
2002-10-19 17:14:08 +00:00
|
|
|
$project->start_validate($app, 3);
|
2003-01-23 08:07:48 +00:00
|
|
|
$project->start_file_delete();
|
2003-01-07 01:02:08 +00:00
|
|
|
$project->start_assimilator($app);
|
2003-01-13 23:37:56 +00:00
|
|
|
$project->start_stripchart();
|
2003-02-24 21:58:23 +00:00
|
|
|
//$project->start_servers();
|
2003-01-13 23:37:56 +00:00
|
|
|
$host->run();
|
2003-01-23 08:07:48 +00:00
|
|
|
$project->stop();
|
2002-10-09 04:56:41 +00:00
|
|
|
?>
|