#!/bin/bash set -euo pipefail export PATH bindir="$(realpath -m "$(dirname "$0")/../target/${PROFILE:-debug}")" if [[ -x "$bindir/coreos-installer" ]]; then PATH="$bindir:$PATH" elif command -v coreos-installer >/dev/null; then echo "$bindir/coreos-installer not found" if [[ -n "${COREOS_INSTALLER_TEST_INSTALLED_BINARY:-}" ]]; then echo "COREOS_INSTALLER_TEST_INSTALLED_BINARY set; testing $(command -v coreos-installer)" else echo "Found $(command -v coreos-installer) but COREOS_INSTALLER_TEST_INSTALLED_BINARY not set; aborting" exit 1 fi else echo "coreos-installer not found. Do you need to set PROFILE?" exit 1 fi fixturesdir="$(realpath "$(dirname "$0")"/../fixtures)" fixtures=( embed-areas-2020-09.iso.xz embed-areas-2021-01.iso.xz embed-areas-2021-09.iso.xz embed-areas-2021-12.iso.xz embed-areas-2022-02.iso.xz embed-areas-2022-09.iso.xz embed-areas-2023-03.x86_64.iso.xz embed-areas-2023-03.s390x.iso.xz embed-areas-2023-07.x86_64.iso.xz embed-areas-2023-07.s390x.iso.xz ) msg() { cat <