When where are in a demo/ sub-directory, call cgal_test_with_cmake with "--no-run".

This commit is contained in:
Laurent Rineau 2008-10-21 09:01:47 +00:00
parent b888934721
commit c97eaa2f0e
1 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,13 @@
#!/bin/sh
dir=${PWD%/*}
dir=${dir##*/}
if [ "x${dir}" == "xdemo" ]; then
in_demo="--no-run"
fi
# If there is already a cgal_test_with_cmake script in the current directory, execute it.
[ ! -x cgal_test_with_cmake ] && echo "No cgal_test_with_cmake in current directory, creating it" && create_cgal_test_with_cmake
[ ! -x cgal_test_with_cmake ] && echo "No cgal_test_with_cmake in current directory, creating it" && create_cgal_test_with_cmake ${in_demo}
./cgal_test_with_cmake $@