xemu_perf_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
TestSuite Class Reference

#include <test_suite.h>

Inheritance diagram for TestSuite:
Collaboration diagram for TestSuite:

Classes

struct  Config
 Runtime configuration for TestSuites. More...
 

Public Member Functions

 TestSuite (TestHost &host, std::string output_dir, std::string suite_name, const Config &config)
 
const std::string & Name () const
 
virtual void Initialize ()
 Called to initialize the test suite.
 
virtual void Deinitialize ()
 Called to tear down the test suite.
 
virtual void SetupTest ()
 Called before running an individual test within this suite.
 
virtual void TearDownTest ()
 Called after running an individual test within this suite.
 
void DisableTests (const std::set< std::string > &tests_to_skip)
 
std::vector< std::string > TestNames () const
 
bool HasEnabledTests () const
 
void Run (const std::string &test_name)
 
void RunAll ()
 

Protected Member Functions

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.
 
void SetDefaultTextureFormat () const
 

Protected Attributes

TestHosthost_
 
std::string output_dir_
 
std::string suite_name_
 
std::map< std::string, std::function< void(void)> > tests_ {}
 

Detailed Description

Base class for all test suites.

Member Function Documentation

◆ Deinitialize()

virtual void TestSuite::Deinitialize ( )
inlinevirtual

Called to tear down the test suite.

Reimplemented in HighVertexCountTests, and VertexBufferAllocationTests.

◆ Initialize()

void TestSuite::Initialize ( )
virtual

Called to initialize the test suite.

Reimplemented in HighVertexCountTests, and VertexBufferAllocationTests.


The documentation for this class was generated from the following files: