Migrate integration test for universe/go

Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
Solomon Hykes
2021-06-17 13:20:47 +00:00
committed by Solomon Hykes
parent 9f3307b26b
commit a4e31949a3
7 changed files with 34 additions and 7 deletions

34
stdlib/.dagger/env/go/plan/go.cue vendored Normal file
View File

@@ -0,0 +1,34 @@
package go
import (
"dagger.io/dagger"
"dagger.io/go"
"dagger.io/alpine"
"dagger.io/dagger/op"
)
TestData: dagger.#Artifact @dagger(input)
TestGoBuild: {
build: go.#Build & {
source: TestData
output: "/bin/testbin"
}
test: #up: [
op.#Load & {from: alpine.#Image},
op.#Exec & {
args: [
"sh",
"-ec",
"""
test "$(/bin/testbin)" = "hello world"
""",
]
mount: "/bin/testbin": {
from: build
path: "/bin/testbin"
}
},
]
}