Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions ci/verify_examples.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash -E

TESTFILTER="${1:-*}"
TESTCOMMAND="${1:-}"
TESTFILTER="${2:-*}"
FAILED=()
SRCDIR="${SRCDIR:-$(pwd)}"
EXCLUDED_BUILD_CONFIGS=${EXCLUDED_BUILD_CONFIGS:-"^./cache/responses.yaml|^./jaeger-native-tracing|docker-compose"}
Expand Down Expand Up @@ -54,9 +55,23 @@ verify_build_configs () {
fi
}

verify_build_configs
run_examples

case "$TESTCOMMAND" in
build_config)
echo "Running build_configs test"
verify_build_configs
;;
sandbox)
echo "Running sandbox test"
run_examples
;;
""|all)
echo "Running all tests"
verify_build_configs
run_examples
;;
*)
echo "Usage ./ci/verify_examples.sh [build_config|sandbox] [<test_filter>]"
esac

if [[ "${#FAILED[@]}" -ne "0" ]]; then
echo "TESTS FAILED:"
Expand Down