Files
evm/scripts/tests.build_antithesis_images.sh
2025-08-01 01:23:42 +00:00

33 lines
1.0 KiB
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# Validates the construction of the antithesis images by:
#
# 1. Building the antithesis test images
# 2. Extracting the docker compose configuration from the config image
# 3. Running the workload and its target network without error for a minute
# 4. Stopping the workload and its target network
#
# e.g.,
# ./scripts/tests.build_antithesis_images.sh # Test build of antithesis images
# DEBUG=1 ./scripts/tests.build_antithesis_images.sh # Retain the temporary compose path for troubleshooting
EVM_PATH=$( cd "$( dirname "${BASH_SOURCE[0]}" )"; cd .. && pwd )
# Discover the default tag that will be used for the image
source "${EVM_PATH}"/scripts/constants.sh
export IMAGE_TAG="${DOCKERHUB_TAG}"
# Build the images
bash -x "${EVM_PATH}"/scripts/build_antithesis_images.sh
# Test the images
LUXD_CLONE_PATH="${LUXD_CLONE_PATH:-${EVM_PATH}/luxd}"
export IMAGE_NAME="antithesis-evm-config"
export DEBUG="${DEBUG:-}"
set -x
# shellcheck source=/dev/null
. "${LUXD_CLONE_PATH}"/scripts/lib_test_antithesis_images.sh