Test applications and scripts
setenv BOINC_PROJECTS_DIR /home/david/boinc_projects
setenv BOINC_HOSTS_DIR /home/david/boinc_hosts
setenv BOINC_USER_NAME david
setenv BOINC_SRC_DIR /home/david/boinc_cvs/boinc
setenv BOINC_CGI_DIR /home/david/cgi-bin
setenv BOINC_CGI_URL http://localhost/cgi-bin
setenv BOINC_HTML_DIR /home/david/html
setenv BOINC_HTML_URL http://localhost
setenv BOINC_KEY_DIR /home/david/boinc_keys
setenv BOINC_PLATFORM i686-pc-linux-gnu
The apps directory contains the following test applications:
-
concat: concatenates its input files.
Input and output filenames are passed on the command line.
-
upper_case: reads from stdin, converts to upper case,
writes to stdout.
-
uc_slow: like upper_case, but processes only one
character per second.
Checkpoints every 5 characters. Restartable.
The test directory contains PHP scripts, together with XML
templates and sample input files, for initializing and testing the
entire system:
-
test_uc.php: tests I/O connection using descriptors.
-
test_concat.php: tests I/O connection using command-line
args and filenames.
-
test_uc_slow.php: tests checkpoint/restart.
You have to run the client yourself, kill and restart it a few times.
-
test_prefs.php: tests some aspects of preferences.
-
test_api.php: tests to ensure the api is working properly.
-
test_water.php: tests some aspects of water marks.
-
test_rsc.php: tests that scheduling server only sends
feasable work units.
These scripts use functions defined in the PHP include file
init.inc.
You can use these functions to easily write test
scripts for your own applications.