Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion fixtures/whatif/main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
% 5. Without --shell-escape, externalize is refused when asked for and not run by default.
% 6. Draft mode runs on all three engines and its output is not compared (no PDF).
% 7. The probe's bound for externalize is the one tikzpicture's time, and for preamble the
% preamble phase, the longest phase on every engine.
% preamble phase, longer than every phase after it on every engine. (Not longer than
% startup: on LuaLaTeX the engine's startup is about the same size.)
% 8. The document's directory is unchanged.
\documentclass{article}
\usepackage{amsmath}
Expand Down
9 changes: 7 additions & 2 deletions tests/fixtures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1006,8 +1006,13 @@ fn whatif_fixture_bounds() {
let p = m.run_phases();
let preamble = p.preamble.unwrap();
assert_eq!(bound_ms(&m, Experiment::Preamble), Some(prumo::report::ms(preamble)), "{label}");
let others = [Some(p.startup), p.begin_document, p.typesetting, Some(p.shipout), p.end_document];
assert!(others.iter().all(|o| o.unwrap() < preamble), "{label}: the preamble is the longest phase: {p:?}");
// Startup is left out: on LuaLaTeX the engine's start is about as long as this
// preamble, and CI regenerates these artifacts on its own runner before testing.
let later = [p.begin_document, p.typesetting, Some(p.shipout), p.end_document];
assert!(
later.iter().all(|o| o.unwrap() < preamble),
"{label}: the preamble is longer than every phase after it: {p:?}"
);
assert_eq!(bound_ms(&m, Experiment::Draft), None);
}
}
Expand Down
Loading