AtlatestRepositorysigil-nat
1
#!/usr/bin/env bash2
set -euo pipefail3
cd "$(dirname "$0")/.."4
mkdir -p build/nat-probe5
result_path="$PWD/build/nat-probe/check-result.txt"6
record_result() {7
local job_rc=$?8
printf 'RESULT nat-probe-check rc=%s\n' "$job_rc" | tee -a "$result_path"9
}10
trap record_result EXIT11
printf 'RESULT operation=probe-fixtures-plus-real-loopback-UDP no-outside-network\n' | tee "$result_path"12
command -v perl > build/nat-probe/perl-path.txt13
perl -c tools/nat/reflectors/nat-probe.pl 2>&1 | tee build/nat-probe/perl-syntax.log14
node --check scripts/nat-probe.mjs15
timeout --foreground 30 node --test tools/nat/test-nat-probe.mjs tools/nat/test-nat-probe-runtime.mjs tools/nat/test-nat-probe-perl.mjs 2>&1 | tee build/nat-probe/tests.log16
printf 'RESULT nat-probe-fixtures=PASS\n' | tee -a "$result_path"