Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Filter for test properties.
[simgrid.git] / CMakeLists.txt
index 252800e..b5bd133 100644 (file)
@@ -67,9 +67,10 @@ string(REPLACE "\n" ";" LIST_OF_TEST ${LIST_OF_TEST})
 foreach(test ${LIST_OF_TEST})
        string(REGEX REPLACE "^.*Test.*project.*" " " test ${test})
        string(REGEX REPLACE "^.*Total.*Tests:.*" " " test ${test})
-       string(REGEX REPLACE "^.*Test.*\\:+" " " test ${test})
-       string(STRIP ${test} test)
-       if(test)
+       string(REGEX MATCH "^.*Test.*\\:+" test_ok ${test})
+       if(test_ok)
+               string(REGEX REPLACE "^.*Test.*\\:+" " " test ${test})
+               string(STRIP ${test} test)
                set_tests_properties(${test} PROPERTIES LABELS "rev${SVN_VERSION}")
-       endif(test)
+       endif(test_ok)
 endforeach(test ${LIST_OF_TEST})