Salome HOME
Possibility to run test case by regexp
authorazv <azv@opencascade.com>
Mon, 22 Apr 2019 08:10:40 +0000 (11:10 +0300)
committerazv <azv@opencascade.com>
Mon, 22 Apr 2019 08:10:40 +0000 (11:10 +0300)
test.sh

diff --git a/test.sh b/test.sh
index 79ab28f2505e6cf0111ae486b188930b02d57f34..3e31a55165b9d5ead1d0dfb6734d1faff876f888 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -5,4 +5,8 @@ source env.sh
 mkdir -p ${BUILD_DIR}
 cd ${BUILD_DIR}
 
-ctest --no-compress-output -T Test "$@"
+if [[ $# > 0 ]]; then
+  ctest --no-compress-output -T Test "$@" -R $1
+else
+  ctest --no-compress-output -T Test "$@"
+fi