2002-04-30 22:22:54 +00:00
|
|
|
#! /usr/local/bin/php
|
|
|
|
<?php
|
|
|
|
// test the 1sec application
|
2002-06-10 06:14:18 +00:00
|
|
|
// This tests whether CPU time is divided correctly between projects
|
|
|
|
// TODO: make this test what it's supposed to test
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
include_once("init.inc");
|
|
|
|
|
2002-06-10 06:14:18 +00:00
|
|
|
check_env_vars();
|
2002-04-30 22:22:54 +00:00
|
|
|
clear_db();
|
|
|
|
clear_data_dirs();
|
2002-07-05 05:33:40 +00:00
|
|
|
create_keys();
|
2002-06-21 06:52:47 +00:00
|
|
|
init_client_dirs("prefs2.xml");
|
2002-04-30 22:22:54 +00:00
|
|
|
add_platform();
|
|
|
|
add_core_client();
|
2002-05-29 23:25:21 +00:00
|
|
|
add_user(null);
|
2002-04-30 22:22:54 +00:00
|
|
|
add_app("1sec");
|
|
|
|
create_work("-appname 1sec -wu_name 1sec_wu -wu_template 1sec_wu -result_template 1sec_result -nresults 10");
|
2002-06-10 06:14:18 +00:00
|
|
|
start_feeder();
|
2002-07-02 19:51:45 +00:00
|
|
|
run_client("-exit_when_idle");
|
2002-06-10 06:14:18 +00:00
|
|
|
stop_feeder();
|
2002-04-30 22:22:54 +00:00
|
|
|
?>
|