CGAL 5.0 - Manual
|
Before submitting a change for integration into CGAL it is good style to run the testsuite of the modified package and all packages that could be impacted. Here is what you need:
Scripts/scripts
and Scripts/developer_scripts
on your PATH
environment variable or Alternatively, you can call the scripts mentioned below using their full path or a relative pathCGAL_DIR
. It should be the directory where you built CGAL.MAKE_CMD
(put the line export MAKE_CMD=nmake
in your $HOME/.bashrc
for VC++)CMAKE_GENERATOR
(put the line `export CMAKE_GENERATOR='-GNMake Makefiles'in your
$HOME/.bashrc` for VC++)cgal_test_with_cmake
in the test
and examples
directories of the package. This should run CMake, compile and run, and you can see what happened in the generated file error.txt
.We describe here how to proceed to the testing of a full copy of master
or any branch by creating a flat release (that is having a layout similar to a release rather than a branch layout with header files gathered by packages).
The creation of the flat release is done using the script create_internal_release
located in the directory Scripts/developer_scripts
. Running the script with no argument will give the complete usage of this script. We only describe one way of using it.
The prerequisite is to have a checkout of the branch we want to test. In the example, it will be located in ~/Git/cgal/
.
First one goes into a directory where the flat release will be created:
Then the script create_internal_release
is ran:
The directory CGAL-I-FOO
now contains the flat release of the branch in ~/Git/cgal
. Then you need to compile this flat release and set CGAL_DIR
accordingly as explained in the installation manual.
To run the test-suite simply do:
and wait for the results to be written in the file error.txt
.