ekp/tests/run-tests.sh
Kinneyzhang 83352c4571 feat!: add source-clean live buffer layout
Replace the physical ekp-region renderer with ekp-buffer text-property projection backed by shared semantic layout plans and stable live-edit transactions.

Optimize the C-backed resize hot path, and add deterministic performance, ERT, GUI, fuzz, release, and documentation coverage for task017 through task032.

BREAKING CHANGE: require ekp-buffer instead of ekp-region and rename module-owned ekp-region-* settings to ekp-buffer-*.
2026-07-30 01:07:25 +08:00

32 lines
946 B
Bash
Executable File

#!/bin/sh
# Run the EKP test suite in batch mode.
# Usage: tests/run-tests.sh [path-to-emacs] [--random-order]
EMACS="${1:-${EMACS:-emacs}}"
ORDER="${2:-}"
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
case "$ORDER" in
"")
exec "$EMACS" -Q --batch -L "$ROOT" -L "$ROOT/tests" \
-l "$ROOT/tests/ekp-tests.el" \
-l "$ROOT/tests/ekp-buffer-tests.el" \
-l "$ROOT/tests/ekp-gui-tests.el" \
-l "$ROOT/tests/ekp-c-tests.el" \
-f ert-run-tests-batch-and-exit
;;
--random-order)
exec "$EMACS" -Q --batch -L "$ROOT" -L "$ROOT/tests" \
-l "$ROOT/tests/ekp-tests.el" \
-l "$ROOT/tests/ekp-buffer-tests.el" \
-l "$ROOT/tests/ekp-gui-tests.el" \
-l "$ROOT/tests/ekp-c-tests.el" \
-l "$ROOT/tests/run-tests-random-order.el" \
-f ekp-tests-run-random-order
;;
*)
echo "usage: $0 [path-to-emacs] [--random-order]" >&2
exit 2
;;
esac