Atlas Runtime
README

REGION TESTS

Usage

To run the test script do ./test_region false. Run with ./test_region true to see debug information, if there are errors for example.

Test Structure

Each program in this directory calls region functions in the Atlas API and performs some minor work (function test in region_test.h which creates a linked list). Change the macros WORK and NUM_NODES to alter the amount of work.

The order in which the Atlas region api is called is in the filename, e.g.:

The test script test_region, runs these tests up to 100 times depending on expected behaviour. There are three behaviours in two classes:

  1. Runnable tests which either abort, create regions or find regions.
  2. Non runnable tests which can only abort.

The test programs are put into one of the two classes depending on if they should run in the first place. If they are runnable the programs either execute one of the three behaviours when run again.

To add a test, edit CMakeLists.txt, and in test_region add the test name to the respective local arrays in function run_tests. E.g. creating a test focdelete which is runnable and creates regions must be added to runnable_tests and tests_create. A test finddelete which is nonrunnable and aborts, must only be added to nonrunnable_tests.