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

View File

@@ -4,12 +4,6 @@ setup() {
common_setup
}
# FIXME: move to universe/universe.bats
# Assigned to: <ADD YOUR NAME HERE>
@test "stdlib: go" {
"$DAGGER" compute "$TESTDIR"/stdlib/go --input-dir TestData="$TESTDIR"/stdlib/go/testdata
}
# FIXME: move to universe/universe.bats
# Assigned to: <ADD YOUR NAME HERE>
@test "stdlib: kubernetes" {

View File

@@ -1,34 +0,0 @@
package go
import (
"dagger.io/dagger"
"dagger.io/go"
"dagger.io/alpine"
"dagger.io/dagger/op"
)
TestData: dagger.#Artifact
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"
}
},
]
}

View File

@@ -1,3 +0,0 @@
module main
go 1.14

View File

@@ -1,7 +0,0 @@
package main
import "fmt"
func main() {
fmt.Println("hello world")
}