From c69bf4d2be6a513b1e37f2873198460415d5c247 Mon Sep 17 00:00:00 2001 From: Filip Bucek Date: Tue, 5 Nov 2019 09:35:21 +0100 Subject: [PATCH] trying to implement valgrind test --- .gitlab-ci.yml | 8 ++++++++ test/unittests/tst_request.cpp | 2 +- test/unittests/tst_request.h | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 503e0a7..1c923e9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,3 +30,11 @@ test: # name of task script: # run in bash - cd build - make check test + +valgrind: # name of task + stage: test # in what stage it will run ( 1. build then test etc ) + tags: # Tags are used to choose correct gitlab-runner + - hw # spaceti-runner server has running runners and one has tag 'hw' + script: # run in bash + - cd build + - valgrind make check test diff --git a/test/unittests/tst_request.cpp b/test/unittests/tst_request.cpp index d968b62..d1417c7 100644 --- a/test/unittests/tst_request.cpp +++ b/test/unittests/tst_request.cpp @@ -4,7 +4,7 @@ namespace core { -void RequestTest::auth_test() +void RequestTest::basicAuthorization_test() { QString expected = "Basic VGVzdGVyOlRlc3Q="; Request req; diff --git a/test/unittests/tst_request.h b/test/unittests/tst_request.h index af4d1f1..6e83a15 100644 --- a/test/unittests/tst_request.h +++ b/test/unittests/tst_request.h @@ -15,7 +15,7 @@ private: // void wont_run(); // no Q_SLOT ( only slots will be runned within tests ) - Q_SLOT void auth_test(); + Q_SLOT void basicAuthorization_test(); }; } //