universe: spin out alpine tests

Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
Solomon Hykes
2021-06-10 10:29:49 +00:00
committed by Solomon Hykes
parent c1096fbc12
commit d388c729bc
5 changed files with 27 additions and 4 deletions

View File

@@ -4,10 +4,6 @@ setup() {
common_setup
}
@test "stdlib: alpine" {
"$DAGGER" compute "$TESTDIR"/stdlib/alpine
}
@test "stdlib: yarn" {
"$DAGGER" compute "$TESTDIR"/stdlib/js/yarn --input-dir TestData="$TESTDIR"/stdlib/js/yarn/testdata
}

View File

@@ -1,44 +0,0 @@
package alpine
import (
"dagger.io/alpine"
"dagger.io/dagger/op"
)
TestImageVersion: {
image: alpine.#Image & {
// install an old version on purpose
version: "3.10.9"
}
test: #up: [
op.#Load & {from: image},
op.#Exec & {
args: [
"sh",
"-ec",
"""
test "$(cat /etc/alpine-release)" = 3.10.9
""",
]
},
]
}
TestPackageInstall: {
image: alpine.#Image & {
package: jq: true
package: curl: true
version: "3.13"
}
test: #up: [
op.#Load & {from: image},
op.#Exec & {
args: ["jq", "--version"]
},
op.#Exec & {
args: ["sh", "-ec", "curl --version"]
},
]
}