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);
|
2002-10-22 18:19:31 +00:00
|
|
|
$app_version->platform_name = "windows_intelx86";
|
|
|
|
$app_version->exec_name = "upper_case.exe";
|
2002-10-04 05:30:44 +00:00
|
|
|
|
|
|
|
$project->add_user($user);
|
|
|
|
$project->add_app($app);
|
|
|
|
$project->add_app_version($app_version);
|
2002-10-22 18:19:31 +00:00
|
|
|
$project->add_platform("windows_intelx86");
|
2002-10-04 05:30:44 +00:00
|
|
|
$project->install(); // must install projects before adding to hosts
|
|
|
|
|
|
|
|
echo "adding work\n";
|
|
|
|
|
|
|
|
$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");
|
|
|
|
$work->install($project);
|
|
|
|
|
2002-10-09 04:56:41 +00:00
|
|
|
$project->start_feeder();
|
2002-10-04 05:30:44 +00:00
|
|
|
|
|
|
|
echo "go run the client\n";
|
|
|
|
|
|
|
|
//$project->stop();
|
|
|
|
|
2002-10-06 00:43:55 +00:00
|
|
|
//$project->check_results(2, $result);
|
2002-10-04 05:30:44 +00:00
|
|
|
//$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
|
|
|
?>
|