2002-08-14 23:02:32 +00:00
|
|
|
#! /usr/local/bin/php
|
|
|
|
<?php
|
2002-10-04 05:30:44 +00:00
|
|
|
// set up a test for the windows client
|
|
|
|
// set BOINC_PLATFORM to "windows_intelx86"
|
|
|
|
|
|
|
|
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);
|
2003-04-01 07:34:08 +00:00
|
|
|
$platform->name = "windows_intelx86";
|
|
|
|
$platform->user_friendly_name = "Windows";
|
|
|
|
$app_version->platform = $platform;
|
2002-10-22 18:19:31 +00:00
|
|
|
$app_version->exec_name = "upper_case.exe";
|
2002-10-04 05:30:44 +00:00
|
|
|
|
|
|
|
$work = new Work($app);
|
|
|
|
$work->wu_template = "uc_wu";
|
|
|
|
$work->result_template = "uc_result";
|
2002-12-05 19:13:06 +00:00
|
|
|
$work->redundancy = 2;
|
2002-10-04 05:30:44 +00:00
|
|
|
array_push($work->input_files, "input");
|
2003-04-01 07:34:08 +00:00
|
|
|
|
|
|
|
$project->add_user($user);
|
|
|
|
$project->add_app($app);
|
|
|
|
$project->add_app_version($app_version);
|
|
|
|
$project->add_platform($platform);
|
|
|
|
$project->install();
|
|
|
|
$project->install_feeder();
|
|
|
|
$project->install_make_work($work,20,5);
|
|
|
|
|
|
|
|
echo "adding work\n";
|
2002-10-04 05:30:44 +00:00
|
|
|
$work->install($project);
|
|
|
|
|
2003-04-01 07:34:08 +00:00
|
|
|
$project->start_servers();
|
2002-10-04 05:30:44 +00:00
|
|
|
|
2003-04-01 07:34:08 +00:00
|
|
|
echo "Go run the client\n";
|
|
|
|
/*echo "Hit any key to stop the server\n";
|
2002-10-04 05:30:44 +00:00
|
|
|
|
2003-04-01 07:34:08 +00:00
|
|
|
$project->stop();
|
2002-10-04 05:30:44 +00:00
|
|
|
|
2003-04-01 07:34:08 +00:00
|
|
|
$project->check_results(2, $result);
|
|
|
|
$project->compare_file("uc_wu_0_0", "uc_correct_output");
|
|
|
|
$project->compare_file("uc_wu_1_0", "uc_correct_output");
|
|
|
|
*/
|
2002-08-14 23:02:32 +00:00
|
|
|
?>
|