Files
llm-intelligence/scripts/importer_smoke_gate_test.sh
phamnazage-jpg 68b1b2be41
Some checks failed
CI / go-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / docker-build (push) Has been cancelled
fix(gate): update smoke gate test for ctyun-live now passing
Previously the test asserted ctyun-live should FAIL, but after
CTYun subscription extension, ctyun-live now passes. Updated
the assertion to match current runtime truth.
2026-05-22 07:34:58 +08:00

29 lines
906 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR"
set +e
FAIL_OUTPUT="$(CORESHUB_FIXTURE_PATH=/nonexistent bash scripts/verify_importer_smoke.sh 2>&1)"
FAIL_RC=$?
set -e
if [[ "$FAIL_RC" -eq 0 ]]; then
echo "expected verify_importer_smoke.sh to fail with invalid fixture"
exit 1
fi
printf '%s' "$FAIL_OUTPUT" | grep -q '\[FAIL\] importer_smoke=coreshub-fixture'
# ctyun-live now passes after CTYun subscription extension
PASS_OUTPUT="$(bash scripts/verify_importer_smoke.sh 2>&1)"
printf '%s' "$PASS_OUTPUT" | grep -q '\[PASS\] importer_smoke=coreshub-fixture'
printf '%s' "$PASS_OUTPUT" | grep -q '\[PASS\] importer_smoke=coreshub-live'
printf '%s' "$PASS_OUTPUT" | grep -q '\[PASS\] importer_smoke=ctyun-fixture'
printf '%s' "$PASS_OUTPUT" | grep -q '\[PASS\] importer_smoke=ctyun-live'
echo "importer_smoke_gate_test: PASS"