Test applications and scripts
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.