Skip to main content

Module test

Module test 

Source
Expand description

Integration-test harness. Gated behind the test-utils feature (default on) so the distribution build (cargo build --no-default-features --profile maxperf --bin latexml_oxide) drops glob / phf from the dependency graph (audit DEP-02).

Re-exports§

pub use super::preset::lex_single_tex_formula;
pub use super::preset::new_test_engine;

Functions§

convert_fixture
Convert a test fixture with the standard HTML5 config and return the full response (result/log/status). The shared boilerplate for the standalone regression tests.
dump_available
True iff a year-versioned latex kernel dump is present in the dev tree. Without it the engine raw-loads expl3-code.tex (degraded mode) and the error landscape is dominated by unrelated raw-load cascades — dump-gated tests should SKIP rather than measure the wrong thing. Delegates to the engine’s own dump-name convention so a filename-scheme change cannot make the tests silently self-skip forever.
error_count
Count inline Error:<class>: markers (parity_check.sh’s lax pattern, see feedback_strict_vs_lax_error_grep.md). Errors are emitted INLINE within (Building...Error:..) envelopes, not at line starts.
init_logger
init_test_rss_cap
Raise the per-process RSS fuse for the multi-conversion test harness.
kpse_has
True iff kpsewhich resolves the named file in the host TeX tree.
latexml_test_single
latexml_tests
latexml_tests_internal