Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
ext-rogers_c's avatar
ext-rogers_c authored
Resolve "VFFA-1 Fails"

Closes #117

See merge request !46
000fb7fb
History

OPAL regression tests

Introduction

The OPAL regression tests are mantained in this repository. To run all (active) tests, you have to compile OPAL with all relevant features enabled (AMR, AMR_MG_SOLVER, BANDRF, MSLANG, OPAL_FEL, SAAMG_SOLVER).

Directory hierarchy

RegressionTests: active regression tests.

DisabledTests: tests which are somehow broken and require a review.

Running a single regression tests

  • Setup the environment required to run OPAL (e.g. by loading required modules)
  • Set the environment variable OPAL_EXE_PATH to the directory where the opal binary is located.
  • Run the script <TEST>.local (replace <TEST> with the name of the regression test to run).

Notes:

  • You can but don't have to change into the directory of the regression test. For example: You can start the AWAGun-1 test with the command ./RegressionTests/AWAGun-1/AWAGun-1.local.
  • With the above steps, a regression test is performed, but the results are not verified! The verification must be done in a seperate step, see below.

Verifing the result of a regression test

The results of a regression test can be verified with the tool verify_test which is available in the NightlyBuild repository:

verify_test <DIR_OF_TEST>

if the script is in available via PATH or otherwise

<DIR>/verify_test <DIR_OF_TEST>

(replace <DIR> with the directory where the script is located).

Example:

verify_test RegressionTests/AWAGun-1

Notes:

  • verify_test is written in Python and requires some non-default modules like pathlib. You might have to setup our own Python environment. At PSI you can use the module Python/3.6.3.

Run and verify all regression test

  • setup environment to run OPAL (don't forget to set OPAL_EXE_PATH)
  • clone this repository
  • cd into the cloned repository
  • run all tests
for test in ./RegressionTests/*; do
    ${test}/*.local
done
  • verify all tests
VERIFY_TEST_DIR=<DIR>
for test in ./RegressionTests/*; do
    ${VERIY_TEST_DIR}/verify_test ${test}
done