*** empty log message ***

svn path=/trunk/boinc/; revision=96
This commit is contained in:
Michael Gary 2002-06-06 23:59:10 +00:00
parent 2e28756bd6
commit b7bdc19df7
7 changed files with 100 additions and 6 deletions

View File

@ -371,11 +371,11 @@ Michael Gary June 06, 2002
cs_scheduler.C
client_types.h
test/
max_water_prefs.xml
min_water_prefs.xml
normal_water_prefs.xml
test_max_water_prefs.php
test_min_water_prefs.php
test_normal_water_prefs.php
max_water_prefs.xml (new)
min_water_prefs.xml (new)
normal_water_prefs.xml (new)
test_max_water_prefs.php (new)
test_min_water_prefs.php (new)
test_normal_water_prefs.php (new)

2
test/max_water_prefs.xml Normal file
View File

@ -0,0 +1,2 @@
<hi_water_secs>2592000</hi_water_secs>
<lo_water_secs>1</lo_water_secs>

2
test/min_water_prefs.xml Normal file
View File

@ -0,0 +1,2 @@
<hi_water_secs>172800</hi_water_secs>
<lo_water_secs>300</lo_water_secs>

View File

@ -0,0 +1,2 @@
<hi_water_secs>172800</hi_water_secs>
<lo_water_secs>300</lo_water_secs>

29
test/test_max_water_prefs.php Executable file
View File

@ -0,0 +1,29 @@
#! /usr/local/bin/php
<?php
// test preferences
//
include_once("init.inc");
clear_db();
clear_data_dirs();
init_client_dirs("account1.xml");
copy_to_download_dir("small_input");
add_platform();
add_core_client();
add_user("max_water_prefs.xml");
add_app("uc_slow");
create_work("-appname uc_slow -wu_name ucs_wu -wu_template ucs_wu -result_template ucs_result -nresults 1 small_input");
//will automatically run client instead
//echo "Now run the client manually; start and stop it a few times.\n";
//run_client();
//compare_file("ucs_wu_0_0", "uc_small_correct_output");
echo "starting feeder\n";
start_feeder();
echo "started feeder\n";
run_client();
echo "ran client\n";
stop_feeder();
//not sure what correct results should be, so will have to figure
//this out so can run diff
?>

29
test/test_min_water_prefs.php Executable file
View File

@ -0,0 +1,29 @@
#! /usr/local/bin/php
<?php
// test preferences
//
include_once("init.inc");
clear_db();
clear_data_dirs();
init_client_dirs("account1.xml");
copy_to_download_dir("small_input");
add_platform();
add_core_client();
add_user("min_water_prefs.xml");
add_app("uc_slow");
create_work("-appname uc_slow -wu_name ucs_wu -wu_template ucs_wu -result_template ucs_result -nresults 1 small_input");
//will automatically run client instead
//echo "Now run the client manually; start and stop it a few times.\n";
//run_client();
//compare_file("ucs_wu_0_0", "uc_small_correct_output");
echo "starting feeder\n";
start_feeder();
echo "started feeder\n";
run_client();
echo "ran client\n";
stop_feeder();
//not sure what correct results should be, so will have to figure
//this out so can run diff
?>

View File

@ -0,0 +1,30 @@
#! /usr/local/bin/php
<?php
// test preferences
//
include_once("init.inc");
clear_db();
clear_data_dirs();
init_client_dirs("account1.xml");
copy_to_download_dir("small_input");
add_platform();
add_core_client();
add_user("normal_water_prefs.xml");
add_app("upper_case");
create_work("-appname uc_slow -wu_name ucs_wu -wu_template ucs_wu -result_template ucs_result -nresults 1 small_input");
//echo "Now run the client manually; start and stop it a few times.\n";
//run_client();
//compare_file("ucs_wu_0_0", "uc_small_correct_output");
//This is so that the client will automatically run, instead of
//manually running
echo "starting feeder\n";
start_feeder();
echo "started feeder\n";
run_client();
echo "ran client\n";
stop_feeder();
//not sure what correct results should be, so will have to figure
//this out so can run diff
?>