Overview on testing WarpX

From Warpx

Jump to: navigation, search

The regression tests are run using the warpx/regtests/runtests.py script. Its usage is shown below.

Usage: runtests.py [options]

Options:
  -h, --help            show this help message and exit

  Basic options:
    The simplest way to run the script is to supply an input file with
    tests to run and a configuration file. These default to 'testlist.inp'
    and 'config.py'. You can also select only one test to run using the -r
    option. The name of the test to run should be, for example,
    euler:axishock_wv. This string should be consistent with the input
    file. 

    -i INPUT, --input=INPUT
                        Name of input file describing tests to run
    -c CONFIG, --config=CONFIG
                        Configuration for running tests
    -r RUNONLY, --run-only=RUNONLY
                        Name of test to run. Only this test will be run. The
                        test should be specified as dir:name, where "dir" is
                        the directory of the test called "name"

  Running only serial or parallel tests:
    You can choose to run only the serial or parallel tests by using the
    following options 

    -s, --serial-only   Run only serial tests. Only serial version of code
                        will be built
    -p, --parallel-only
                        Run only parallel tests. Only parallel version of code
                        will be built

  Advanced options:
    --dont-build        Skip build step. Just use existing executables