tests fail to build
-
Hi,
I can't get the tests to build on either Debian or Arch.
cmake tests
errors out withCMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
QT_MOC_EXECUTABLE
CMake Error at CMakeLists.txt:68 (qt_add_resources):
Unknown CMake command "qt_add_resources".Fixing those problems then leads to 'make test' etc fails because gmock headers are in the wrong place.
Each time I fix a problem, it fails on something else.Has anyone managed to build and run the tests?
Cheers,
Peter -
@peterb
The correct way to build and run the tests is:make strawberry_testsfrom the build directory after running cmake
Formake strawberry_teststo work, GoogleTest, GMock and Qt Test needs to be detected by CMake first. -
@jonas
Thanks. I've got it working now. I was missing libgmock-dev, so had no Makefile target for the tests.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login