Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
--- /dev/null
+// Copyright 2020-2021 Ian Jackson and contributors to Otter
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// There is NO WARRANTY.
+
+use crate::*;
+
+type Setup = Rc<RefCell<SetupCore>>;
+
+#[allow(dead_code)]
+struct Ctx {
+ opts: Opts,
+ su_rc: Setup,
+}
+
+#[throws(Explode)]
+fn tests(_c: Ctx) {
+}
+
+#[throws(Explode)]
+pub fn main() {
+ let (opts, _instance, su) = setup_core(
+ &[module_path!()],
+ )?;
+
+ let su_rc = Rc::new(RefCell::new(su));
+ tests(Ctx { opts, su_rc })?;
+}
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-use otter_api_tests::*;
-
-pub use std::cell::{RefCell, RefMut};
-pub use std::rc::Rc;
+use crate::*;
pub use index_vec::Idx;
-type Setup = Rc<RefCell<SetupCore>>;
-
#[allow(dead_code)]
struct Ctx {
opts: Opts,
pub use otter_api_tests::*;
-portmanteau_has!("at-otter.rs", at_otter);
+pub use std::cell::{RefCell, RefMut};
+pub use std::rc::Rc;
+
+type Setup = Rc<RefCell<SetupCore>>;
+
+portmanteau_has!("at-otter.rs", at_otter);
+portmanteau_has!("at-bundles.rs", at_bundles);
#[throws(AE)]
fn main() { portmanteau_main("at")? }