chiark / gitweb /
Start on at-otter
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Feb 2021 23:26:42 +0000 (23:26 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Feb 2021 23:26:42 +0000 (23:26 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
apitest/at-otter.rs [new file with mode: 0644]

diff --git a/apitest/at-otter.rs b/apitest/at-otter.rs
new file mode 100644 (file)
index 0000000..5da7e01
--- /dev/null
@@ -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");
+}