2002-09-05 11:46:10 +00:00
|
|
|
<title>Test applications and scripts</title>
|
2002-08-20 23:54:17 +00:00
|
|
|
<body bgcolor=ffffff>
|
2002-09-05 11:46:10 +00:00
|
|
|
<h2>Test applications and scripts</h2>
|
2002-10-03 18:33:46 +00:00
|
|
|
|
|
|
|
<pre>
|
|
|
|
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
|
|
|
|
</pre>
|
2002-04-30 22:22:54 +00:00
|
|
|
<p>
|
2002-08-19 18:43:10 +00:00
|
|
|
The <b>apps</b> directory contains the following test applications:
|
2002-04-30 22:22:54 +00:00
|
|
|
<ul>
|
2002-08-19 18:43:10 +00:00
|
|
|
<li>
|
|
|
|
<b>concat</b>: concatenates its input files.
|
|
|
|
Input and output filenames are passed on the command line.
|
|
|
|
<li>
|
|
|
|
<b>upper_case</b>: reads from stdin, converts to upper case,
|
2002-04-30 22:22:54 +00:00
|
|
|
writes to stdout.
|
2002-08-19 18:43:10 +00:00
|
|
|
<li>
|
|
|
|
<b>uc_slow</b>: like upper_case, but processes only one
|
|
|
|
character per second.
|
|
|
|
Checkpoints every 5 characters. Restartable.
|
2002-04-30 22:22:54 +00:00
|
|
|
</ul>
|
2002-07-29 19:01:38 +00:00
|
|
|
The <b>test</b> directory contains PHP scripts, together with XML
|
|
|
|
templates and sample input files, for initializing and testing the
|
|
|
|
entire system:
|
2002-04-30 22:22:54 +00:00
|
|
|
<ul>
|
2002-08-19 18:43:10 +00:00
|
|
|
<li>
|
|
|
|
<b>test_uc.php</b>: tests I/O connection using descriptors.
|
|
|
|
<li>
|
|
|
|
<b>test_concat.php</b>: tests I/O connection using command-line
|
2002-07-29 19:01:38 +00:00
|
|
|
args and filenames.
|
2002-08-19 18:43:10 +00:00
|
|
|
<li>
|
|
|
|
<b>test_uc_slow.php</b>: tests checkpoint/restart.
|
|
|
|
You have to run the client yourself, kill and restart it a few times.
|
|
|
|
<li>
|
|
|
|
<b>test_prefs.php</b>: tests some aspects of preferences.
|
|
|
|
<li>
|
|
|
|
<b>test_api.php</b>: tests to ensure the api is working properly.
|
|
|
|
<li>
|
|
|
|
<b>test_water.php</b>: tests some aspects of water marks.
|
|
|
|
<li>
|
|
|
|
<b>test_rsc.php</b>: tests that scheduling server only sends
|
2002-07-29 19:01:38 +00:00
|
|
|
feasable work units.
|
2002-04-30 22:22:54 +00:00
|
|
|
</ul>
|
|
|
|
<p>
|
2002-08-19 18:43:10 +00:00
|
|
|
These scripts use functions defined in the PHP include file
|
|
|
|
<b>init.inc</b>.
|
|
|
|
You can use these functions to easily write test
|
2002-07-29 19:01:38 +00:00
|
|
|
scripts for your own applications.
|
2002-09-10 17:04:05 +00:00
|
|
|
|