mirror of https://github.com/BOINC/boinc.git
Added a test for sticky files.
svn path=/trunk/boinc/; revision=242
This commit is contained in:
parent
8a997474aa
commit
60827f6b56
|
@ -0,0 +1,30 @@
|
|||
#! /usr/local/bin/php
|
||||
<?php
|
||||
// test the uc (upper-case) application
|
||||
//
|
||||
// You must have done "make" in all source directories
|
||||
|
||||
include_once("init.inc");
|
||||
|
||||
check_env_vars();
|
||||
clear_db();
|
||||
clear_data_dirs();
|
||||
create_keys();
|
||||
init_client_dirs("prefs1.xml");
|
||||
copy_to_download_dir("input");
|
||||
add_platform(null);
|
||||
add_user("prefs.xml");
|
||||
add_app("upper_case", null, null);
|
||||
create_work("-appname upper_case -rsc_iops 180000000000.0 -rsc_fpops 0.0 -wu_name uc_wu -wu_template uc_wu_sticky -result_template uc_result_sticky -nresults 2 input input");
|
||||
start_feeder();
|
||||
//run_client("-exit_after 10");
|
||||
run_client("-exit_when_idle");
|
||||
stop_feeder();
|
||||
check_results_done();
|
||||
compare_file("uc_wu_0_0", "uc_correct_output");
|
||||
compare_file("uc_wu_1_0", "uc_correct_output");
|
||||
$f = fopen(urlencode(stripslashes($BOINC_MASTER_URL))."/uc_wu_0_0", "r");
|
||||
$g = fopen(urlencode(stripslashes($BOINC_MASTER_URL))."/uc_wu_1_0", "r");
|
||||
if (!$f || !$g) printf("sticky files did not work\n");
|
||||
else printf("sticky files worked\n");
|
||||
?>
|
|
@ -0,0 +1,16 @@
|
|||
<file_info>
|
||||
<name><OUTFILE_0/></name>
|
||||
<generated_locally/>
|
||||
<upload_when_present/>
|
||||
<max_nbytes>100000</max_nbytes>
|
||||
<url><UPLOAD_URL/></url>
|
||||
<sticky/>
|
||||
</file_info>
|
||||
<result>
|
||||
<name><RESULT_NAME/></name>
|
||||
<wu_name><WU_NAME/></wu_name>
|
||||
<file_ref>
|
||||
<file_name><OUTFILE_0/></file_name>
|
||||
<fd>1</fd>
|
||||
</file_ref>
|
||||
</result>
|
|
@ -0,0 +1,14 @@
|
|||
<file_info>
|
||||
<name><INFILE_0/></name>
|
||||
<url><DOWNLOAD_URL/><INFILE_0/></url>
|
||||
<md5_cksum><MD5_0/></md5_cksum>
|
||||
<sticky/>
|
||||
</file_info>
|
||||
<workunit>
|
||||
<name><WU_NAME/></name>
|
||||
<app_name>upper_case</app_name>
|
||||
<file_ref>
|
||||
<file_name><INFILE_0/></file_name>
|
||||
<fd>0</fd>
|
||||
</file_ref>
|
||||
</workunit>
|
Loading…
Reference in New Issue