0a72fced28
El SDK CI - dev / build-and-test (pull_request) Failing after 13m17s
Establish lang/runtime/ as the ONE canonical el runtime (from the active runtime that carries hebb/emb persistence + the new WAL); repoint the el CI publish, engram build, elb default, and in-repo build scripts to it; delete the el-compiler/runtime + lang/releases/ forks; add scripts/check-single-runtime.sh drift guard. Fixes a live prod bug: the el CI published el-runtime-c/-h from the LAGGING el-compiler fork (0 hebb refs), so the shipped soul never persisted Hebbian edge weights — learned co-activation was wiped on every restart. Publishing from canonical ships the stranded 'learning that cannot outlive the process' fix. WAL storage engine + integrity fixes (DELETE->tombstone + store-layer protection, safe data-dir default) ride in behind ENGRAM_WAL (default off = byte-identical to today). Verified: engram elb per-module build clean, WAL gate 66/66, native smoke ok, drift-guard green.
33 lines
925 B
Bash
Executable File
33 lines
925 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# run.sh — build and execute the html_sanitizer acceptance corpus.
|
|
#
|
|
# Compiles tests/html_sanitizer/runner.el via the canonical native elc,
|
|
# links against the shared C runtime, then runs the binary against
|
|
# cases.json. Exits non-zero on any FAIL.
|
|
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"
|
|
|
|
EL_HOME="${EL_HOME:-$(cd ../.. && pwd)}"
|
|
ELC="${EL_HOME}/dist/platform/elc"
|
|
RUNTIME_DIR="${EL_HOME}/runtime"
|
|
|
|
if [ ! -x "${ELC}" ]; then
|
|
echo "elc not found at ${ELC}" >&2
|
|
exit 1
|
|
fi
|
|
|
|
OUT_C="$(mktemp -t html_sanitizer.XXXXXX).c"
|
|
OUT_BIN="$(mktemp -t html_sanitizer.XXXXXX)"
|
|
trap 'rm -f "${OUT_C}" "${OUT_BIN}"' EXIT
|
|
|
|
echo "==> Compiling runner.el via ${ELC}"
|
|
"${ELC}" runner.el > "${OUT_C}"
|
|
|
|
echo "==> Linking against ${RUNTIME_DIR}/el_runtime.c"
|
|
cc -O2 -I "${RUNTIME_DIR}" "${OUT_C}" "${RUNTIME_DIR}/el_runtime.c" \
|
|
-lcurl -lssl -lcrypto -lpthread -lm -o "${OUT_BIN}"
|
|
|
|
echo "==> Running"
|
|
"${OUT_BIN}"
|