2002-04-30 22:22:54 +00:00
|
|
|
#! /usr/local/bin/php
|
|
|
|
<?php
|
|
|
|
// test the uc (upper-case) application
|
|
|
|
//
|
|
|
|
// You must have done "make" in all source directories
|
|
|
|
|
|
|
|
include_once("init.inc");
|
|
|
|
|
2002-05-24 04:29:10 +00:00
|
|
|
check_env_vars();
|
2002-04-30 22:22:54 +00:00
|
|
|
clear_db();
|
2002-08-26 22:57:17 +00:00
|
|
|
if (true) {
|
2002-08-28 21:50:51 +00:00
|
|
|
clear_server_dirs(false);
|
2002-08-26 22:57:17 +00:00
|
|
|
} else {
|
2002-08-28 21:50:51 +00:00
|
|
|
clear_server_dirs(true);
|
|
|
|
create_keys();
|
2002-08-26 22:57:17 +00:00
|
|
|
}
|
|
|
|
clear_client_dirs();
|
2002-09-26 05:57:10 +00:00
|
|
|
init_client_dirs("prefs1.xml", "account1.xml");
|
2002-04-30 22:22:54 +00:00
|
|
|
copy_to_download_dir("input");
|
2002-08-25 07:54:33 +00:00
|
|
|
add_project("Test Project");
|
2002-06-20 23:27:37 +00:00
|
|
|
add_platform(null);
|
2002-09-27 06:12:50 +00:00
|
|
|
add_user(null);
|
2002-07-07 20:39:24 +00:00
|
|
|
add_app("upper_case", null, null);
|
2002-08-28 21:50:51 +00:00
|
|
|
add_core_client(null);
|
2002-07-07 20:39:24 +00:00
|
|
|
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");
|
2002-06-01 20:26:21 +00:00
|
|
|
start_feeder();
|
2002-08-28 21:50:51 +00:00
|
|
|
//run_client("-exit_after 10");
|
|
|
|
run_client("-exit_when_idle");
|
2002-06-01 20:26:21 +00:00
|
|
|
stop_feeder();
|
2002-04-30 22:22:54 +00:00
|
|
|
check_results_done();
|
|
|
|
compare_file("uc_wu_0_0", "uc_correct_output");
|
|
|
|
compare_file("uc_wu_1_0", "uc_correct_output");
|
|
|
|
?>
|