This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/tests/test-examples.sh
Andrea Luzzardi b229119a3d tests: split integration tests
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-01 18:46:08 -07:00

13 lines
365 B
Bash

#!/usr/bin/env bash
set -o errexit -o errtrace -o functrace -o nounset -o pipefail
# Test Directory
d=$(cd "$(dirname "${BASH_SOURCE[0]:-$PWD}")" 2>/dev/null 1>&2 && pwd)
test::examples() {
local dagger="$1"
test::secret "$d"/examples/react/inputs.yaml "examples: React" --exit=0 \
"$dagger" "${DAGGER_BINARY_ARGS[@]}" compute "$d"/../examples/react
}