From 9c63c5400ed3de1a61cae5ec029cd25ba2bd6801 Mon Sep 17 00:00:00 2001 From: Viktor Gal Date: Tue, 22 May 2018 20:02:05 +0200 Subject: [PATCH] add unit label to the unit tests this allows running all the unit tests with: ctest -L unit --- tests/unit/discover_gtest_tests.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit/discover_gtest_tests.cpp b/tests/unit/discover_gtest_tests.cpp index 9f9ecdb2529..e23425dd1d2 100644 --- a/tests/unit/discover_gtest_tests.cpp +++ b/tests/unit/discover_gtest_tests.cpp @@ -72,6 +72,10 @@ int main (int argc, char **argv) string endParen (".*\")"); testfilecmake << addTest << testCases[i] << testExec << gTestFilter << testCases[i] << endParen << endl; + + string setTestsProp ("SET_TESTS_PROPERTIES (unit-"); + string properties (" PROPERTIES LABELS \"unit\")"); + testfilecmake << setTestsProp << testCases[i] << properties << endl; } }