×
INDI Library v1.8.1 Released (09 Sep 2019)

Monthly maintenance release INDI v1.8.1

Can't run tests locally

7 months 4 days ago
ChrisRowland
Gold Boarder
Gold Boarder
Posts: 193
Karma: 5
More
Topic Author
Can't run tests locally #36380
I would like to run the indilib test harness locally but trying to run the indi/libindi/tests project in QT Creator gives me this error message:

CMake Error at CMakeLists.txt:3 (FIND_PACKAGE):
By not providing "FindGMock.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "GMock", but
CMake did not find one.

Could not find a package configuration file provided by "GMock" with any of
the following names:

GMockConfig.cmake
gmock-config.cmake

Add the installation prefix of "GMock" to CMAKE_PREFIX_PATH or set
"GMock_DIR" to a directory containing one of the above files. If "GMock"
provides a separate development package or SDK, be sure it has been
installed.

The reason I want to do this is that I had a problem with the celestrongps driver tests which I had to fix by guessing.

Also we had a problem with the signed char to int conversion that only appeared with some compilers and only emerged when the user found it. It should be possible to run tests that detect this at the CI stage.
Are there any instructions around to help with setting this up?
Chris

Please Log in or Create an account to join the conversation.

7 months 1 day ago
TallFurryMan
Platinum Boarder
Platinum Boarder
Posts: 735
Karma: 13
More
Can't run tests locally #36575
I think no one has been addressing this point for long. GMock was deprecated a few years ago and maintainers didn't follow up with googletest... Or so I believe.

-Eric

HEQ5-Pro - Atik 314E - Orion ED80T - DMK21 on Orion 50mm
DIY 3D-printed Moonlite and FWheel RGB/LPR
KStars and indiserver on two Atom 1.6GHz 1GB RAM Linux, VPN remote access
The following user(s) said Thank You ChrisRowland

Please Log in or Create an account to join the conversation.

5 months 3 weeks ago
TallFurryMan
Platinum Boarder
Platinum Boarder
Posts: 735
Karma: 13
More
Can't run tests locally #38030
Small update on this, I am now using test scripts for a new mount driver in that folder. So I stand corrected, thanks for raising this point.

-Eric

HEQ5-Pro - Atik 314E - Orion ED80T - DMK21 on Orion 50mm
DIY 3D-printed Moonlite and FWheel RGB/LPR
KStars and indiserver on two Atom 1.6GHz 1GB RAM Linux, VPN remote access

Please Log in or Create an account to join the conversation.

Time to create page: 0.307 seconds