2002-07-24 19:47:36 +00:00
|
|
|
#! /usr/local/bin/php
|
|
|
|
<?php
|
|
|
|
// test the time reporting mechanism in the client
|
|
|
|
//
|
|
|
|
// You must have done "make" in all source directories
|
|
|
|
|
|
|
|
include_once("init.inc");
|
|
|
|
|
|
|
|
check_env_vars();
|
|
|
|
clear_db();
|
|
|
|
create_keys();
|
|
|
|
init_client_dirs("prefs1.xml");
|
|
|
|
copy_to_download_dir("small_input");
|
|
|
|
add_platform(null);
|
|
|
|
add_core_client(null);
|
|
|
|
add_user("prefs.xml");
|
2002-07-25 00:09:43 +00:00
|
|
|
add_app("uc_cpu", null, null);
|
2002-07-31 19:05:15 +00:00
|
|
|
create_work("-appname uc_cpu -rsc_fpops 4500000000 -rsc_iops 500000000 -wu_name uccpu_wu -wu_template uccpu_wu -result_template uccpu_result -nresults 1 small_input");
|
2002-07-24 19:47:36 +00:00
|
|
|
start_feeder();
|
2002-07-31 19:05:15 +00:00
|
|
|
run_client("-exit_after 12");
|
|
|
|
$app_time = get_time("app_time");
|
|
|
|
PassThru("cp client_state.xml client_state.xml.one");
|
2002-07-24 19:47:36 +00:00
|
|
|
run_client("-exit_when_idle");
|
2002-07-31 19:05:15 +00:00
|
|
|
$app_time += get_time("app_time");
|
2002-07-25 00:09:43 +00:00
|
|
|
compare_file("uccpu_wu_0_0", "uc_small_correct_output");
|
2002-07-31 19:05:15 +00:00
|
|
|
compare_time($app_time);
|
2002-07-24 19:47:36 +00:00
|
|
|
?>
|