Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gexec) Add CompileTest functions. Close #410 #411

Merged
merged 3 commits into from Feb 25, 2021
Merged

feat(gexec) Add CompileTest functions. Close #410 #411

merged 3 commits into from Feb 25, 2021

Commits on Feb 6, 2021

  1. feat(gexec) Add CompileTest functions. Close #410

    Adds following methods:
    - CompileTest(packagePath string, args ...string) (compiledPath string, err error)
    - CompileTestWithEnvironment(packagePath string, env []string, args ...string) (compiledPath string, err error)
    - CompileTestIn(gopath string, packagePath string, args ...string) (compiledPath string, err error)
    
    Signed-off-by: Pierre Péronnet <pierre.peronnet@ovhcloud.com>
    holyhope committed Feb 6, 2021
    Copy the full SHA
    6620758 View commit details
    Browse the repository at this point in the history
  2. fix(gexec) Binaries for tests are built when needed

    This solve the issue in test where suite scoped firefly binary
    was removed by CleanupBuildArtifacts() in build_test.go
    
    Signed-off-by: Pierre Péronnet <pierre.peronnet@ovhcloud.com>
    holyhope committed Feb 6, 2021
    Copy the full SHA
    d83c477 View commit details
    Browse the repository at this point in the history
  3. feat(gexec) Add methods to get and compile tests

    Adds following methods:
    - GetAndCompileTest(packagePath string, args ...string) (compiledPath string, err error)
    - GetAndCompileTestWithEnvironment(packagePath string, env []string, args ...string) (compiledPath string, err error)
    - GetAndCompileTestIn(gopath string, packagePath string, args ...string) (compiledPath string, err error)
    
    Signed-off-by: Pierre Péronnet <pierre.peronnet@ovhcloud.com>
    holyhope committed Feb 6, 2021
    Copy the full SHA
    0f67d8c View commit details
    Browse the repository at this point in the history