mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 22:53:15 -04:00
This allows the tests to be run inside of a Docker container with linux with X11 inside. Signed-off-by: John Nunley <dev@notgull.net>
24 lines
516 B
Rust
24 lines
516 B
Rust
//! Run the test.
|
|
|
|
use gui_test::{test, Harness};
|
|
use macro_rules_attribute::apply;
|
|
|
|
use winit::event_loop::EventLoop;
|
|
|
|
#[allow(deprecated)]
|
|
#[apply(test)]
|
|
fn initialize(harness: &mut Harness) {
|
|
let mut group = harness.group("sanity");
|
|
group.harness().with_test("startup/shutdown", || {
|
|
let evl = EventLoop::new().expect("initialization");
|
|
evl.run(|_event, elwt| {
|
|
elwt.exit();
|
|
})
|
|
.expect("running");
|
|
});
|
|
}
|
|
|
|
gui_test::main! {
|
|
gui_test::remote::handler()
|
|
}
|