autocommit 2022-05-02 00:00:45 CEST
This commit is contained in:
parent
04580c4aeb
commit
552c8a9950
8 changed files with 155 additions and 43 deletions
|
|
@ -55,6 +55,7 @@ macro_rules! tassert_eq {
|
|||
|
||||
mod t0001_shm_formats;
|
||||
mod t0002_window;
|
||||
mod t0003_multi_window;
|
||||
|
||||
pub trait TestCase {
|
||||
fn name(&self) -> &'static str;
|
||||
|
|
@ -62,5 +63,18 @@ pub trait TestCase {
|
|||
}
|
||||
|
||||
pub fn tests() -> Vec<&'static dyn TestCase> {
|
||||
vec![&t0001_shm_formats::Test, &t0002_window::Test]
|
||||
macro_rules! tests {
|
||||
($($module:ident,)*) => {
|
||||
vec![
|
||||
$(
|
||||
&$module::Test,
|
||||
)*
|
||||
]
|
||||
}
|
||||
}
|
||||
tests! {
|
||||
t0001_shm_formats,
|
||||
t0002_window,
|
||||
t0003_multi_window,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue