coolfluid/coolfluid3 — Issue #124: CMake  macro  "coolfluid_add_test" for all cases
Author: wdeconinck
Created: 2011-10-12 13:48:36+00:00
State: open

Implement `coolfluid_add_test` macro to add all kinds of tests in uniform way:

coolfluid_add_test(
ATEST atest-name
PYTHON atest-name.py
ARGUMENTS mesh.neu
MPI nb_procs
)

coolfluid_add_test(
UTEST utest-name
CPP atest-name.cpp atest-name-file1.hpp atest-name-file1.cpp
LIBS lib1 lib2 lib3
MPI nb_procs
CONDITIONS enabled
)

coolfluid_add_test(
UTEST utest-name
CFSCRIPT utest-name.cfscript
ARGUMENTS mesh.neu
MPI nb_procs
CONDITIONS enabled
)

Mandatory keywords:
- UTEST/ATEST
- CPP/PYTHON/CFSCRIPT

Optional keywords:
- ARGUMENTS (default: empty)
- LIBS (defaults: CPP --> coolfluid_common, PYTHON/CFSCRIPT --> empty )
- MPI (default: `mpirun` is not called , unless global CMake constant makes all utests run with `mpirun -np 1`)
- CONDITIONS (default: true)