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

    tests fail to build

    Scheduled Pinned Locked Moved Technical Help
    3 Posts 2 Posters 1.7k Views 1 Watching
    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

      jonasJ 1 Reply Last reply
      Reply Quote 0
      • jonasJ
        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

          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
          • First post
            Last post
          Powered by NodeBB | Contributors