Files
zeekay 241625e7d9 rename: ziti → zt across all paths
- Repo names: ziti-* → zt-*
- Go modules: github.com/hanzozt/ziti → github.com/hanzozt/zt
- Docker images: hanzozt/ziti-* → hanzozt/zt-*
- C/Java/JS symbols: ziti_* → zt_*
- File and directory names updated
2026-02-18 18:34:19 -08:00

25 lines
696 B
Bash

#!/usr/bin/env bash
# raise exceptions
set -o errexit
set -o nounset
set -o pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR="$(cd "$SCRIPT_DIR" && git rev-parse --show-toplevel)"
cd "$ROOT_DIR"
echo "changed to root dir at: $ROOT_DIR"
if [ -z "$ZITI_CLI_TEST_ZITI_BIN" ]; then
echo "building binary for use in tests"
mkdir -p cli_tests_bin
go build -o cli_tests_bin ./...
export ZITI_CLI_TEST_ZITI_BIN="$ROOT_DIR/cli_tests_bin/zt"
else
echo "using pre-defined ZITI_CLI_TEST_ZITI_BIN at: $ZITI_CLI_TEST_ZITI_BIN"
fi
echo "executing cli_tests from $PWD"
go test ./tests/cli_tests/... --tags cli_tests ${ZITI_CLI_TESTS_VERBOSE:-}
echo "cli_tests complete"