|
# $Id$ |
|
1 |
|
|
2 |
The resources for test are delivered in extra archive file as they |
The tests are now bundled with the rest of the software. You can run |
3 |
are big and the compilation can take a while. |
them by hand with |
4 |
|
|
5 |
|
scons run_tests (C++ tests only) |
6 |
|
scons all_tests (C++ and python tests) |
7 |
|
|
8 |
|
The target run_tests takes about 15 minutes to run on ess. The target |
9 |
|
all_tests takes quite a while to run, over a day on ess. Both sets of |
10 |
|
tests are run nightly on ess, so it's probably not necessary for you |
11 |
|
to run them yourself. The output of these nightly runs is available |
12 |
|
to you in this directory on ess: |
13 |
|
|
14 |
|
/raid3/ksteube/AutoTests |
15 |
|
|
16 |
|
The autotest-scons script is run on ess nightly. It submits a PBS job |
17 |
|
which does these things: |
18 |
|
|
19 |
|
Check out trunk from esys13 |
20 |
|
Run scons run_tests or scons all_tests (command-line arg chooses which) |
21 |
|
Report success or failure via e-mail |
22 |
|
Clean up |
23 |
|
|
24 |
|
The autotest-scons file should be maintained in SVN as |
25 |
|
esys13/trunk/autotest-scons, be sure to copy it there and commit after |
26 |
|
modification. |
27 |
|
|
28 |
|
Log files, output and daily PBS scripts are maintained in |
29 |
|
/raid3/ksteube/AutoTests/Logs |
30 |
|
|
31 |
|
All files older than 3 weeks are deleted from here nightly. See the |
32 |
|
find command in autotest-scons to change this behavior |
33 |
|
|
34 |
|
Here is the crontab file I use to run it: |
35 |
|
|
36 |
|
# min hour day month weekday command |
37 |
|
# 0-59 0-23 1-31 1-12 0-6 (0 = Sunday) |
38 |
|
# |
39 |
|
SHELL=/bin/sh |
40 |
|
MAILTO=k.steube@uq.edu.au |
41 |
|
# |
42 |
|
# Run 'autotest-scons run_tests' in the wee hours every weekday |
43 |
|
0 1 * * 1-5 /raid3/ksteube/AutoTests/autotest-scons run_tests |
44 |
|
# Run 'autotest-scons all_tests' in the wee hours only on Saturdays because it takes a long time to run |
45 |
|
0 1 * * 6 /raid3/ksteube/AutoTests/autotest-scons all_tests |
46 |
|
|