#!/usr/local/bin/php -q add_core_and_version(); $project->add_app_and_version("upper_case"); $user = new User(); $user->project_prefs = "\nfoobar\n\n"; $user->global_prefs = "\n". "0\n". "2\n". "1\n". "\n". "400000\n". "\n"; $project->add_user($user); $project->install(); // must install projects before adding to hosts $project->install_feeder(); $host = new Host(); $host->add_user($user, $project); $host->install(); $work = new Work(); $work->wu_template = "uc_wu"; $work->result_template = "uc_result"; $work->redundancy = 2; $work->delay_bound = 10; // Say that 1 WU takes 1 day on a ref comp $work->rsc_fpops = 86400*1e9/2; $work->rsc_iops = 86400*1e9/2; $work->rsc_disk = 10e8; array_push($work->input_files, "input"); $work->install($project); $project->start_servers(); $host->run("-exit_when_idle -skip_cpu_benchmarks"); $project->validate(2); $result->server_state = RESULT_STATE_OVER; $result->stderr_out = "APP: upper_case: starting, argc 1"; $result->exit_status = 0; $project->check_results(2, $result); $project->compare_file("uc_wu_0_0", "uc_correct_output"); $project->compare_file("uc_wu_1_0", "uc_correct_output"); $project->assimilate(); $project->file_delete(); $project->check_server_deleted("download/input"); $project->check_server_deleted("upload/uc_wu_0_0"); $project->check_server_deleted("upload/uc_wu_1_0"); $project->stop(); test_done(); } ?>