check-interop.sh (841B)
1 #!/bin/sh 2 # SPDX-License-Identifier: GPL-3.0-only 3 set -eu 4 fail() { printf '%s\n' "HarvestCircle interop check: $*" >&2; exit 1; } 5 [ "$#" -eq 0 ] || fail "unexpected arguments" 6 repository_root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) 7 for tool in node corepack cargo; do 8 command -v "$tool" >/dev/null 2>&1 || fail "required tool is unavailable: $tool" 9 done 10 cd "$repository_root/web" 11 node tools/doctor.mjs 12 cd "$repository_root" 13 cargo +1.99.0 --version 14 cargo +1.99.0 test --manifest-path contracts/interop/food_availability/oracle/Cargo.toml --locked --test native_manifest -- --nocapture 15 cd "$repository_root/web" 16 corepack pnpm exec node --test tests/conformance/interop-consumer.test.ts 17 printf '%s\n' 'harvestcircle.interop.fixture_consumers=pass' 'harvestcircle.interop.qualification=source_only_no_Message_or_deployed_Tera_claim'