×

INDI Library v1.7.8 Released (11 May 2019)

Mid year release of INDI Library v1.7.8 comes with a few drivers and improvements to to existing drivers.

Can't run tests locally

  • Posts: 135
  • Thank you received: 42

Can't run tests locally was created by ChrisRowland

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
2 months 1 week ago #36380

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

  • Posts: 702
  • Karma: 13
  • Thank you received: 215

Replied by TallFurryMan on topic Re:Can't run tests locally

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
2 months 1 week ago #36575

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

  • Posts: 702
  • Karma: 13
  • Thank you received: 215

Replied by TallFurryMan on topic Re:Can't run tests locally

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
1 month 3 days ago #38030

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

Time to create page: 0.874 seconds