feeder_out"); } function stop_feeder() { $f = fopen("../sched/feeder_trigger", "w"); fputs($f, "\n"); fclose($f); } function compare_file($out, $correct) { global $BOINC_UPLOAD_DIR; PassThru("diff $BOINC_UPLOAD_DIR/$out $correct", $retval); if ($retval) { echo "File mismatch: $out $correct\n"; } else { echo "Files match: $out $correct\n"; } } function check_results_done() { db_init(); $result = mysql_query("select * from result where state<>4"); while ($x = mysql_fetch_object($result)) { echo "result $x->id is not done\n"; } } function num_wus_left() { db_init(); $numwus = mysql_query("select count(*) as nres from result where state<>4"); $result = mysql_fetch_object($numwus); return $result->nres; } function compare_files($out, $correct) { PassThru("diff $out $correct", $retval); if ($retval) { echo "File mismatch: $out $correct\n"; } else { echo "Files match: $out $correct\n"; } } function run_api_test() { PassThru("../api/api_test"); } function clean_api() { PassThru("rm -f counter app_to_core.xml core_to_app.xml foobar"); } ?>