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_tests
from the build directory after running cmake
Formake strawberry_tests
to 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.