Regressions tests

Running the regressions tests

Before running the regressions tests, the regressions tests need to be compiled. Jamfile's are provided to compile all tests using BoostBuild v2 (bbv2). Calling bjam in the glas/test directory will build all tests recursively. bbv2 is set up to generate executables in a subdirectory bin because this is the location where later the scripts will search for all executables.

Configuring the available backends

Each backend can be enabled by defining the corresponding macro during compilation:
backendmacro
GLASGLAS_BACKEND_GLAS
BLASGLAS_BACKEND_BLAS
VSIPL++GLAS_BACKEND_VSIPLPP
For every backend that is enabled, the corresponding library needs to be available of course.

Using bjam, these macro's can be defined by defining a virtual target in your user-config.jam by the name of backends. For instance the user-config.jam for a machine with has the MSVC compiler and MKL for windows and at the same time Cygnus with VISPL++ installed might look like:

  lib libblas : : <file>C:/"Program Files"/Intel/MKL/8.0/ia32/lib/mkl_c.lib ;
  lib vsiplpp : : <search>c:/ext_projects/vsipl++-1.0/lib <name>vsip : : <include>c:/ext_projects/vsipl++-1.0/include ;
  alias backends : /user-config//libblas : <toolset>msvc : : <define>GLAS_BACKEND_GLAS <define>GLAS_BACKEND_BLAS ;
  alias backends : /user-config//vsiplpp : <toolset>gcc : : <define>GLAS_BACKEND_GLAS <define>GLAS_BACKEND_VSIPLPP ;

Verifying the regressiont tests

Next the python script run.py needs to be executed. This script will run all executables and store the results in a file results.html