fixed test script bug

svn path=/trunk/boinc/; revision=200
This commit is contained in:
Michael Gary 2002-07-15 21:09:10 +00:00
parent d3fbdcd90a
commit c546d812cc
2 changed files with 2 additions and 4 deletions

View File

@ -109,8 +109,7 @@ function copy_to_download_dir($f) {
function add_user($prefs_file) {
global $BOINC_EMAIL;
PassThru("sed -e s/BOINC_MASTER_URL/$BOINC_MASTER_URL/ $prefs_file > prefs_temp.xml");
PassThru("sed -e s/BOINC_MASTER_URL/\$BOINC_MASTER_URL/ $prefs_file > prefs_temp.xml");
$cmd = "../tools/add user -email_addr $BOINC_EMAIL -user_name David -web_password foobar -authenticator 3f7b90793a0175ad0bda68684e8bd136 ";
if ($prefs_file) {
$cmd = $cmd." -prefs_file prefs_temp.xml";

View File

@ -13,14 +13,13 @@
init_client_dirs("prefs1.xml");
copy_to_download_dir("input");
add_platform(null);
add_user(null);
add_user("prefs.xml");
add_app("upper_case", null, null);
create_work("-appname upper_case -rsc_iops 180000000000.0 -rsc_fpops 0.0 -wu_name uc_wu -wu_template uc_wu -result_template uc_result -nresults 2 input input input input input");
start_feeder();
//run_client("-exit_after 10");
run_client("-exit_when_idle");
stop_feeder();
check_results_done();
compare_file("uc_wu_0_0", "uc_correct_output");
compare_file("uc_wu_1_0", "uc_correct_output");