dev:regtesting
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dev:regtesting [2021/06/02 13:14] – tmueller | dev:regtesting [2023/10/19 14:03] (current) – Update flags krack | ||
---|---|---|---|
Line 11: | Line 11: | ||
===== How does it work? ===== | ===== How does it work? ===== | ||
- | The regression test suite is run using the [[src>tools/ | + | The regression test suite is run using the [[src>tests/do_regtest.py | do_regtest]] script. |
It performs the following tasks: | It performs the following tasks: | ||
* performs a realclean build of the source | * performs a realclean build of the source | ||
Line 23: | Line 23: | ||
==== Step 0: make based testing ==== | ==== Step 0: make based testing ==== | ||
- | * If you are able to build and run cp2k on the local machine the easiest way is to start the regtesting by running '' | + | * If you are able to build and run cp2k on the local machine the easiest way is to start the regtesting by running '' |
* Be careful about the value of '' | * Be careful about the value of '' | ||
* If this fails (e.g. on batch systems), continue with Step 1 else go to interpretation. | * If this fails (e.g. on batch systems), continue with Step 1 else go to interpretation. | ||
Line 34: | Line 34: | ||
==== Step 2: Running ==== | ==== Step 2: Running ==== | ||
< | < | ||
- | $ tools/ | + | $ tests/do_regtest.py -h |
- | Usage: do_regtest [OPTION] | + | usage: do_regtest.py [-h] [--mpiranks MPIRANKS] [--ompthreads OMPTHREADS] |
- | Run the CP2K regression test suite | + | [--maxtasks MAXTASKS] [--num_gpus NUM_GPUS] |
- | Example: do_regtest | + | [--timeout TIMEOUT] [--maxerrors MAXERRORS] |
+ | | ||
+ | | ||
+ | | ||
+ | | ||
- | General: | + | Runs CP2K regression test suite. |
- | -h, -help, --help | + | |
- | -c, -config FILE read any of the following configuration switches from FILE. | + | |
- | -cp2kdir PATH | + | |
- | -dirout PATH root path of output folder (default: current working directory). | + | |
- | -mpiexec EXE name of the executable to run mpi-ranks. Default: mpiexec. | + | |
- | Build: | + | positional arguments: |
- | | + | arch |
- | -arch ARCH ARCH passed to make. Default: Linux-x86-64-gfortran. | + | |
- | | + | |
- | -nobuild | + | |
- | Runtime: | + | options: |
- | -mpiranks NRANKS | + | -h, --help show this help message and exit |
- | -ompthreads NTHREADS | + | --mpiranks MPIRANKS |
- | -maxtasks NPROCS | + | --ompthreads OMPTHREADS |
- | -maxbuildtasks NPROCS | + | --maxtasks |
- | -jobmaxtime SECONDS | + | --num_gpus NUM_GPUS |
- | -farming | + | --timeout TIMEOUT |
- | + | --maxerrors MAXERRORS | |
- | Testing: | + | --mpiexec MPIEXEC |
- | -noreset | + | --smoketest |
- | -shard ISHARD NSHARDS | + | --valgrind |
- | -skiptest | + | --keepalive |
- | -skipunittest | + | --flagslow |
- | -skipdir TESTDIR | + | --debug |
- | -restrictdir TESTDIR | + | --restrictdir RESTRICTDIR |
- | -retest | + | --skipdir SKIPDIR |
- | + | --workbasedir WORKBASEDIR | |
- | Exit codes: | + | |
- | 0 clean exit with testing | + | |
- | 3 | + | |
- | 4 build errors | + | |
- | 5 | + | |
- | | + | |
- | | + | |
- | 8 ctrl-C (SIGINT) and various other signals trapped | + | |
- | + | ||
- | For more information visit: < | + | |
</ | </ | ||
Line 266: | Line 253: | ||
CP2K_VERSION=" | CP2K_VERSION=" | ||
</ | </ | ||
+ | |||
+ | **Note**: if the '' |
dev/regtesting.1622639652.txt.gz · Last modified: 2021/06/02 13:14 by tmueller