Don't enter test subdirectories if BUILD_TESTING=OFF
Reviewers: #calligra:_3.0
Tags: #calligra:_3.0
Differential Revision: https://phabricator.kde.org/D7327