Salome HOME
A chamfer test is added to the unit-tests system.
[modules/shaper.git] / test.sh
diff --git a/test.sh b/test.sh
index 3732d1601da167f03dc70d8c4bdd8c13070eac03..92c0b48e9651a0b4d16e12a6f178499fbe08164a 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -1,9 +1,14 @@
 #!/bin/bash
 
 source env.sh
-source ${TOOLS_DIR}/env_salome.sh
 
 mkdir -p ${BUILD_DIR}
 cd ${BUILD_DIR}
 
-ctest --no-compress-output -T Test
+export DISPLAY="localhost:0.0"
+
+if [[ $# > 0 ]]; then
+  ctest --no-compress-output -T Test "$@" -R $1
+else
+  ctest --no-compress-output -T Test "$@"
+fi