AtlatestRepositorysigil-http3
sigil-http3 / tree / scriptsphantom-codec-check.sh
1
#!/usr/bin/env bash2
set -euo pipefail3
cd "$(dirname "$0")/.."4
mkdir -p build .deps5
record_result() {6
local job_rc=$?7
printf 'RESULT codec-job rc=%s\n' "$job_rc" | tee -a build/codec-result.txt8
}9
trap record_result EXIT10
bash scripts/prepare-nat-dependency.sh11
test ! -e .deps/sigil-quic12
bash scripts/prepare-quic.sh13
pin=$(cat quic.rev)14
test "$(git -C .deps/sigil-quic rev-parse HEAD)" = "$pin"15
git -C .deps/sigil-quic checkout --quiet --detach "$pin"16
printf 'RESULT source-pin=%s\n' "$pin" | tee build/codec-result.txt17
timeout --foreground 60 node scripts/generate-qpack-tables.mjs18
timeout --foreground 180 sigil deps install19
timeout --foreground 180 sigil test test/test-frame.sgl test/test-qpack.sgl test/test-streams.sgl test/test-control.sgl test/test-request.sgl test/test-connection.sgl test/test-webtransport-wire.sgl test/test-webtransport-session.sgl test/test-webtransport-router.sgl 2>&1 | tee build/codec-tests.log20
printf 'RESULT codec-tests=PASS\n' | tee -a build/codec-result.txt