pythongrid / test / README

This is just to check that all the headers and libraries are in place
the C DRMAA installation.

If compilation fails, check the following environment variables (or use -L and -I).
CPATH
LIBRARY_PATH
LD_LIBRARY_PATH


test_drmaa
----------
Check whether the installation is working.

gcc -o test_drmaa -ldrmaa test_drmaa.c 
./test_drmaa

The output is:
DRMAA library was started successfully

test_drmaa_run
--------------
Submit a small job (sleep 10).

gcc -o test_drmaa_run -ldrmaa test_drmaa_run.c 
./test_drmaa_run

The output is:
DRMAA library was started successfully
DRMAA job.
Job <xxxxxx> is submitted to queue <xxxx>.
Your job has been submitted with id xxxxxx
DRMAA quit successfully

test_drmaa_twice
----------------
There is a bug in LSF which causes a segfault.

gcc -o test_drmaa_twice -ldrmaa test_drmaa_twice.c
./test_drmaa_twice

The output is:
DRMAA library was started successfully
DRMAA job.
Job <xxxxxx> is submitted to queue <xxxx>.
Your job has been submitted with id xxxxxx
starting second job
DRMAA job.
Job <xxxxxx> is submitted to queue <xxxx>.
Your job has been submitted with id xxxxxx
DRMAA quit successfully


test_drmaa.py
-------------
Submit a small job (sleep 10) in python.

python test_drmaa.py

The output is:
DRMAA library v1.0
DRM system used: XXXX
DRMAA job.
Job <xxxxxx> is submitted to queue <xxxx>.
DRMAA job.
Job <xxxxxx> is submitted to queue <xxxx>.
Job exited using the following resources:
{'mem': 'xx', 'start_time': 'xx', 'n_hosts': 'xx', 'vmem': 'xx'}
Job exited using the following resources:
{'mem': 'xx', 'start_time': 'xx', 'n_hosts': 'xx', 'vmem': 'xx'}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.