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