universe: spin out alpine tests
Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
committed by
Solomon Hykes
parent
c1096fbc12
commit
d388c729bc
@@ -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
|
||||
}
|
||||
|
@@ -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"]
|
||||
},
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user