boinc/test/test_1sec.php

23 lines
635 B
PHP
Raw Normal View History

#! /usr/local/bin/php
<?php
// test the 1sec application
// This tests whether CPU time is divided correctly between projects
// TODO: make this test what it's supposed to test
include_once("init.inc");
check_env_vars();
clear_db();
clear_data_dirs();
create_keys();
init_client_dirs("prefs2.xml");
add_platform(null);
add_core_client();
add_user("prefs.xml");
add_app("1sec", null, null);
create_work("-appname 1sec -wu_name 1sec_wu -wu_template 1sec_wu -result_template 1sec_result -nresults 10");
start_feeder();
run_client("-exit_when_idle");
stop_feeder();
?>