mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-10 10:20:32 -06:00
* Build each crate's integration tests as one binary Every tests/*.rs file is its own executable that links the whole crate graph. Move each crate's test files into tests/it/ as modules of one tests/it/main.rs, for apps/pdfcraft, apps/pdfcraft-cli, automation, cos, crypt, engine, render, sign and ui-egui. ui-egui's ui_group binary and the support modules move into tests/it/ too. Crates with a single test file keep it. The test executables go from 150 to 52, and every crate runs the same number of tests as before. ui-egui perf keeps its own binary (own process): its frame-time budgets would charge each measurement for the other tests running beside it. What the move needs: - include_str!/include_bytes! and #[path] paths gain one "../". - ui-egui: one GPU lock in tests/it/main.rs replaces the five per-file ones (content, document_links, editing, fill_sign, view), so one process creates one wgpu device at a time. The drop-line test in ui.rs and the screenshot blocks behind PDFCRAFT_*_SHOT(S) and CRAFT_UI_DOCKING_DIR, which render without holding it, take it too. - pdfcraft winit_wayland_scroll: the vendored winit source it compiles names crate::event, so that shim lives in main.rs. - parity evidence names the new paths. * Name the one-binary test paths in docs and comments - READMEs, docs, ATTRIBUTION and source comments name tests/it/<file>.rs. - The oracle README's example filters with --test it encryption::qpdf_agrees. - pdfcraft's GPU lock comment points at the UI tests' shared lock in crates/ui-egui/tests/it/main.rs.
22 lines
655 B
Rust
22 lines
655 B
Rust
//! The crate's integration tests, linked into one test binary.
|
|
|
|
// Compile winit's scroll policy against its real event type, without a compositor. The vendored
|
|
// source (`winit_wayland_scroll`) names it as `crate::event`.
|
|
#[cfg(target_os = "linux")]
|
|
mod event {
|
|
pub use winit::event::TouchPhase;
|
|
}
|
|
|
|
mod winit_macos_emoji_picker;
|
|
mod winit_macos_ime_commit;
|
|
mod winit_macos_ime_discard;
|
|
mod winit_macos_korean_first_key;
|
|
mod winit_macos_korean_space;
|
|
mod winit_macos_title_bar_drag;
|
|
mod winit_wayland_scroll;
|
|
mod winit_wayland_text_input;
|
|
mod winit_windows_hidden_maximized;
|
|
mod winit_windows_ime_cursor;
|
|
mod winit_x11_dpi;
|
|
mod winit_x11_ime_focus;
|