Prev Next

@(@\newcommand{\B}[1]{ {\bf #1} } \newcommand{\R}[1]{ {\rm #1} }@)@
Running the Cppad Swig Tests

Configuration
You must first configure Cppad Swig for your system using run_cmake.sh .

Available Tests
After bin/run_cmake.sh, the following command will list the available tests:
     grep 'make check' cmake_cppad_swig.log
Note that this command must be executed in the source directory .

Binary Directory
You can determine the binary_directory with the command
     grep CMAKE_BINARY_DIR cmake_cppad_swig.log
This, and the previous command, assume your are in the source directory. The rest of the commands below assume you are in the Cmake binary directory.

check
The command
     make check
will run all of the available tests.

Octave
Swig versions before 3.0.12 do not support Octave-4.2; see issue 875 . For this reason, you should use an older version of Octave (until Swig-3.0.12 or greater is available). On Cygwin Octave-4.0.1-2 has problems in its include files that require one to add the flag
     -I/usr/include/octave-4.0.1/octave
to the value of swig_cxx_flags in run_cmake.sh.

cppad_swig_lib
On some systems, the following dynamically linked library may not be found:
     
binary_directory/lib/libcppad_swig_lib.*
Depending on your system, you may be able to use one of the following commands to fix this:
     PATH="
binary_directory/lib:$PATH"
     LD_LIBRARY_PATH="
binary_directory/lib:$LD_LIBRARY_PATH"

check_swig_xam
For lang equal cplusplus, octave, perl, python,
     make check_swig_xam_
lang
runs a simple test of Swig, for the particular language, on your system.

check_lib
For lang equal cplusplus, octave, perl, python,
     make check_lib_
lang
runs a test of Cppad Swig, for the particular language, on your system.
Input File: testing.omh