2002-07-01 19:29:40 +00:00
|
|
|
#! /usr/local/bin/php
|
|
|
|
<?php
|
|
|
|
// test the seti@home client
|
|
|
|
//
|
|
|
|
// You must have done "make" in all source directories
|
|
|
|
|
|
|
|
include_once("init.inc");
|
|
|
|
|
|
|
|
check_env_vars(); // THIS IS ABSOLUTELY CRITICAL!!!
|
|
|
|
clear_db();
|
|
|
|
clear_data_dirs();
|
2002-07-15 23:37:55 +00:00
|
|
|
create_keys(); //added
|
|
|
|
init_client_dirs("prefs3.xml"); //"account_sah.xml");
|
2002-07-01 19:29:40 +00:00
|
|
|
copy_to_download_dir("work_unit.sah");
|
|
|
|
add_platform();
|
2002-07-05 22:04:16 +00:00
|
|
|
add_core_client(null);
|
2002-07-01 19:29:40 +00:00
|
|
|
add_user(null);
|
2002-07-05 22:04:16 +00:00
|
|
|
add_app("setiathome-3.06",null,null);
|
2002-12-05 19:13:06 +00:00
|
|
|
create_work("-appname setiathome-3.06 -wu_name sah_wu -wu_template sah_wu -result_template sah_result -redundancy 1 work_unit.sah");
|
2002-07-01 19:29:40 +00:00
|
|
|
echo "starting feeder\n";
|
|
|
|
start_feeder();
|
|
|
|
echo "started feeder\n";
|
|
|
|
run_client();
|
|
|
|
echo "ran client\n";
|
|
|
|
stop_feeder();
|
|
|
|
|
|
|
|
check_results_done();
|
|
|
|
?>
|