Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-53916

[CV] [Unit Testing] Add support for running tests to CMake

    XMLWordPrintable

Details

    • Task
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • master
    • master
    • tools
    • 1

    Description

      What's the issue?
      We currently don't provide a way to run unit tests which uses the version of Go (et al) stored in cbdeps, this can cause issues with users on M1 laptops. See this thread for more information.

      What's the fix?
      We should consider moving out unit test setup/running to CMake so that it honors architecture variables etc setup in the TLM.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          drigby Dave Rigby added a comment -

          Another (potential) issue is the Golang version might differ between system default "go" and what a project expects (given the server supports multiple versions of Golang).

          I suspect this might catch out new developers if they are used to just running "go build ..." / "go test ..." and things mostly work but they get different behaviour due to Golang version differences.

          drigby Dave Rigby added a comment - Another (potential) issue is the Golang version might differ between system default "go" and what a project expects (given the server supports multiple versions of Golang). I suspect this might catch out new developers if they are used to just running "go build ..." / "go test ..." and things mostly work but they get different behaviour due to Golang version differences.

          People

            james.lee James Lee
            james.lee James Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty