1#ifndef XEMU_PERF_TESTS_TEST_SUITE_H
2#define XEMU_PERF_TESTS_TEST_SUITE_H
26 [[nodiscard]]
const std::string &Name()
const {
return suite_name_; };
40 void DisableTests(
const std::set<std::string> &tests_to_skip);
42 [[nodiscard]] std::vector<std::string> TestNames()
const;
43 [[nodiscard]]
bool HasEnabledTests()
const {
return !tests_.empty(); };
45 void Run(
const std::string &test_name);
52 const std::function<
void(
void)> &body)
const;
53 void SetDefaultTextureFormat()
const;
57 std::string output_dir_;
58 std::string suite_name_;
61 std::map<std::string, std::function<void(
void)>> tests_{};
Definition test_host.h:12
Definition test_suite.h:16
virtual void Deinitialize()
Called to tear down the test suite.
Definition test_suite.h:32
virtual void Initialize()
Called to initialize the test suite.
Definition test_suite.cpp:78
virtual void TearDownTest()
Called after running an individual test within this suite.
Definition test_suite.h:38
TestHost::ProfileResults Profile(const std::string &test_name, uint32_t num_iterations, const std::function< void(void)> &body) const
Runs the given body function a number of times and calculates profiling information.
Definition test_suite.cpp:272
virtual void SetupTest()
Called before running an individual test within this suite.
Definition test_suite.h:35
Definition test_host.h:14
Runtime configuration for TestSuites.
Definition test_suite.h:19