From 579908dbfa8e97ff3013177fcea3062f810f1b4b Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Thu, 18 Feb 2021 18:48:44 -0800 Subject: [PATCH] tests: add test for examples/simple Signed-off-by: Andrea Luzzardi --- tests/test.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test.sh b/tests/test.sh index 2a42d807..93788624 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -13,6 +13,13 @@ DAGGER_BINARY_ARGS="${DAGGER_BINARY_ARGS:---log-format json}" read -ra DAGGER_BINARY_ARGS <<< "${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(){ local dagger="$1" @@ -237,6 +244,8 @@ test::all(){ test::export "$dagger" test::input "$dagger" test::subdir "$dagger" + + test::examples "$dagger" } case "${1:-all}" in