feat: Add Docker support to integration tests

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>
This commit is contained in:
John Nunley
2024-03-10 21:04:54 -07:00
parent facef799d3
commit 68acedcdda
16 changed files with 549 additions and 17 deletions

View File

@@ -5,15 +5,17 @@ use macro_rules_attribute::apply;
use winit::event_loop::EventLoop;
#[allow(deprecated)]
#[apply(test)]
fn initialize(harness: &mut Harness) {
let _test = harness.test("startup/shutdown");
let evl = EventLoop::new().unwrap();
evl.run(|_event, elwt| {
elwt.exit();
})
.unwrap();
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! {