AtlatestRepositorysigil-http3

sigil-http3 / tree / scriptsphantom-codec-check.sh

1#!/usr/bin/env bash
2set -euo pipefail
3cd "$(dirname "$0")/.."
4mkdir -p build .deps
5record_result() {
6 local job_rc=$?
7 printf 'RESULT codec-job rc=%s\n' "$job_rc" | tee -a build/codec-result.txt
8}
9trap record_result EXIT
10bash scripts/prepare-nat-dependency.sh
11test ! -e .deps/sigil-quic
12bash scripts/prepare-quic.sh
13pin=$(cat quic.rev)
14test "$(git -C .deps/sigil-quic rev-parse HEAD)" = "$pin"
15git -C .deps/sigil-quic checkout --quiet --detach "$pin"
16printf 'RESULT source-pin=%s\n' "$pin" | tee build/codec-result.txt
17timeout --foreground 60 node scripts/generate-qpack-tables.mjs
18timeout --foreground 180 sigil deps install
19timeout --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.log
20printf 'RESULT codec-tests=PASS\n' | tee -a build/codec-result.txt