From: Ian Jackson Date: Sun, 21 Feb 2021 23:26:42 +0000 (+0000) Subject: Start on at-otter X-Git-Tag: otter-0.4.0~387 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=44c89e600d5945f48c46c0c3a5b373490438d992;p=otter.git Start on at-otter Signed-off-by: Ian Jackson --- diff --git a/apitest/at-otter.rs b/apitest/at-otter.rs new file mode 100644 index 00000000..5da7e01a --- /dev/null +++ b/apitest/at-otter.rs @@ -0,0 +1,32 @@ +// Copyright 2020-2021 Ian Jackson and contributors to Otter +// SPDX-License-Identifier: AGPL-3.0-or-later +// There is NO WARRANTY. + +#![allow(dead_code)] +#![allow(unused_variables)] + +use otter_api_tests::*; + +struct Ctx { + opts: Opts, + su: SetupCore, + spec: GameSpec, +} +deref_to_field!{Ctx, SetupCore, su} + +impl Ctx { +} + +#[throws(AE)] +fn tests(Ctx { opts, su, spec, ..}: Ctx) { +} + +#[throws(AE)] +fn main() { + { + let (opts, _cln, instance, su) = setup_core(&[module_path!()])?; + let spec = su.ds.game_spec_data()?; + tests(Ctx { opts, spec, su })?; + } + info!("ok"); +}