blob: a8380e2d71b6e2198b2f4e8cd1df383417ff5052 [file] [log] [blame]
Adam Snaiderc8b7e752023-09-14 14:27:53 -07001use aos_init::init;
2
3autocxx::include_cpp! (
4#include "aos/testing/tmpdir.h"
5
6safety!(unsafe)
7
8generate!("aos::testing::SetTestShmBase")
9);
10
11// TODO(Brian): Should we provide a proc macro attribute that handles calling this?
12/// Initializes things for a test.
13///
14/// # Panics
15///
16/// Panics if non-test initialization has already been performed.
17pub fn test_init() {
18 init();
19 ffi::aos::testing::SetTestShmBase();
20 // TODO(Brian): Do we want any of the other stuff that `:gtest_main` has?
21}