2002-04-30 22:22:54 +00:00
|
|
|
#! /usr/local/bin/php
|
|
|
|
<?php
|
|
|
|
// test the error-reporting mechanism
|
|
|
|
//
|
|
|
|
|
|
|
|
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("prefs1.xml");
|
2002-04-30 22:22:54 +00:00
|
|
|
copy_to_download_dir("input");
|
2002-07-17 22:53:43 +00:00
|
|
|
add_platform(null);
|
|
|
|
add_core_client(null);
|
|
|
|
add_user("prefs.xml");
|
|
|
|
add_app("upper_case", null, null);
|
2002-04-30 22:22:54 +00:00
|
|
|
create_work("-appname upper_case -wu_name uc_wu -wu_template uc_wu -result_template uc_result -nresults 2 input input");
|
2002-06-10 06:14:18 +00:00
|
|
|
start_feeder();
|
2002-07-17 22:53:43 +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
|
|
|
|
|
|
|
check_results_done();
|
|
|
|
compare_file("uc_wu_0_0", "uc_correct_output");
|
|
|
|
compare_file("uc_wu_1_0", "uc_correct_output");
|
|
|
|
?>
|