2003-06-11 23:47:36 +00:00
|
|
|
#!/usr/local/bin/php -q
|
|
|
|
<?php {
|
|
|
|
// $Id$
|
2002-10-04 05:30:44 +00:00
|
|
|
|
|
|
|
include_once("test.inc");
|
|
|
|
|
2003-06-11 23:47:36 +00:00
|
|
|
test_msg("client checkpoint/restart mechanism");
|
|
|
|
|
2002-10-04 05:30:44 +00:00
|
|
|
$project = new Project;
|
|
|
|
$user = new User();
|
2003-06-11 23:47:36 +00:00
|
|
|
$host = new Host();
|
2002-10-04 05:30:44 +00:00
|
|
|
|
|
|
|
$project->add_user($user);
|
2003-06-11 23:47:36 +00:00
|
|
|
$project->add_app_and_version("upper_case");
|
2002-10-04 05:30:44 +00:00
|
|
|
$project->install(); // must install projects before adding to hosts
|
|
|
|
|
2003-06-11 23:47:36 +00:00
|
|
|
$host->add_user($user, $project);
|
2002-10-04 05:30:44 +00:00
|
|
|
$host->install();
|
|
|
|
|
2003-06-11 23:47:36 +00:00
|
|
|
$work = new Work();
|
2002-10-04 05:30:44 +00:00
|
|
|
$work->wu_template = "ucs_wu";
|
2003-06-16 17:59:38 +00:00
|
|
|
$work->result_template = "uc_result";
|
2002-10-04 05:30:44 +00:00
|
|
|
array_push($work->input_files, "small_input");
|
|
|
|
$work->install($project);
|
|
|
|
|
2003-06-11 23:47:36 +00:00
|
|
|
$project->install_feeder();
|
|
|
|
$project->start_servers();
|
|
|
|
|
|
|
|
verbose_echo(0, "Now run the client manually; start and stop it a few times");
|
2002-04-30 22:22:54 +00:00
|
|
|
//compare_file("ucs_wu_0_0", "uc_small_correct_output");
|
2003-06-11 23:47:36 +00:00
|
|
|
} ?>
|