tests: add test for examples/simple
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
272f387737
commit
579908dbfa
@ -13,6 +13,13 @@ DAGGER_BINARY_ARGS="${DAGGER_BINARY_ARGS:---log-format json}"
|
|||||||
read -ra DAGGER_BINARY_ARGS <<< "${DAGGER_BINARY_ARGS:-}"
|
read -ra DAGGER_BINARY_ARGS <<< "${DAGGER_BINARY_ARGS:-}"
|
||||||
readonly DAGGER_BINARY_ARGS
|
readonly DAGGER_BINARY_ARGS
|
||||||
|
|
||||||
|
test::examples() {
|
||||||
|
local dagger="$1"
|
||||||
|
|
||||||
|
test::one "Examples: simple" --stdout='{"www":{"listing":"simple.cue\n","source":{}}}' \
|
||||||
|
"$dagger" "${DAGGER_BINARY_ARGS[@]}" compute --input-dir www.source="$d"/../examples/simple "$d"/../examples/simple
|
||||||
|
}
|
||||||
|
|
||||||
test::compute(){
|
test::compute(){
|
||||||
local dagger="$1"
|
local dagger="$1"
|
||||||
|
|
||||||
@ -237,6 +244,8 @@ test::all(){
|
|||||||
test::export "$dagger"
|
test::export "$dagger"
|
||||||
test::input "$dagger"
|
test::input "$dagger"
|
||||||
test::subdir "$dagger"
|
test::subdir "$dagger"
|
||||||
|
|
||||||
|
test::examples "$dagger"
|
||||||
}
|
}
|
||||||
|
|
||||||
case "${1:-all}" in
|
case "${1:-all}" in
|
||||||
|
Reference in New Issue
Block a user