• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    tests fail to build

    Technical Help
    2
    3
    136
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      PeterB last edited by

      Hi,

      I can't get the tests to build on either Debian or Arch.

      cmake tests
      errors out with

      CMake 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

      jonas 1 Reply Last reply Reply Quote 0
      • jonas
        jonas @PeterB last edited by jonas

        @peterb
        The correct way to build and run the tests is: make strawberry_tests from the build directory after running cmake
        For make strawberry_tests to work, GoogleTest, GMock and Qt Test needs to be detected by CMake first.

        P 1 Reply Last reply Reply Quote 0
        • P
          PeterB @jonas last edited by

          @jonas
          Thanks. I've got it working now. I was missing libgmock-dev, so had no Makefile target for the tests.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Powered by NodeBB | Contributors