Primo commit del progetto: motore Rust con parser HTML, cascata CSS, layout, raster CPU, formulari, bidi, flex, tabelle, JavaScript (Boa) con eventi e costruzione di nodi, rete HTTP/HTTPS con TLS, sotto-risorse, invio dei formulari; guscio grafico per Sailfish (QML/Silica) e per desktop (minifb, distribuito come AppImage), con 11 documenti di specifica e 91 casi di reftest.
31 lines
844 B
Bash
Executable File
31 lines
844 B
Bash
Executable File
#!/bin/sh
|
|
# CI del motore (M0 + M1 in corso): formattazione, build, test unitari, reftest, confine C.
|
|
# Target dichiarato (docs/09-test-conformita.md): sotto 5 minuti sull'host.
|
|
set -eu
|
|
|
|
cd "$(dirname "$0")/.."
|
|
export PATH="$HOME/.cargo/bin:$PATH"
|
|
FONT="${ENGINE_FONT:-/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf}"
|
|
|
|
START=$(date +%s)
|
|
|
|
echo "== fmt"
|
|
cargo fmt --check
|
|
|
|
echo "== build (release)"
|
|
cargo build --release 2>&1 | grep -E "^(error|warning: unused)" || true
|
|
|
|
echo "== test unitari"
|
|
cargo test --quiet
|
|
|
|
echo "== reftest"
|
|
cargo run --quiet --bin reftest -- --cases cases
|
|
|
|
echo "== confine C (API verso il guscio)"
|
|
cc -Iinclude tests/ffi_smoke.c target/release/libengine.a -lm -lpthread -ldl -o "${TMPDIR:-/tmp}/engine_ffi_smoke"
|
|
"${TMPDIR:-/tmp}/engine_ffi_smoke" "$FONT" | tail -3
|
|
|
|
END=$(date +%s)
|
|
echo
|
|
echo "CI: $((END - START)) s"
|