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

#include <test_suite.h>

Inherited by AlphaFuncTests, AntialiasingTests, AttributeCarryoverTests, AttributeExplicitSetterTests, AttributeFloatTests, BlendTests, ClearTests, ColorKeyTests, ColorMaskBlendTests, ColorZetaDisableTests, ColorZetaOverlapTests, CombinerTests, DMACorruptionAroundSurfaceTests, DepthFormatFixedFunctionTests, DepthFormatTests, EdgeFlagTests, FogCarryoverTests, FogExceptionalValueTests, FogGenTests, FogParamTests, FogTests, FrontFaceTests, HighVertexCountTests, ImageBlitTests, InlineArraySizeMismatchTests, LightingAccumulationTests, LightingControlTests, LightingNormalTests, LightingRangeTests, LightingSpotlightTests, LightingTwoSidedTests, LineWidthTests, MaterialAlphaTests, MaterialColorSourceTests, MaterialColorTests, NullSurfaceTests, OverlappingDrawModesTests, PointParamsTests, PointSizeTests, PvideoTests, SetVertexDataTests, ShadeModelTests, SmoothingTests, SpecularBackTests, SpecularTests, StencilFuncTests, StencilTests, StippleTests, SurfaceClipTests, SurfaceFormatTests, SurfacePitchTests, SwathWidthTests, TexgenMatrixTests, TexgenTests, TextureBorderTests, TextureCPUUpdateTests, TextureCubemapTests, TextureFormatDXTTests, TextureFormatTests, TextureFramebufferBlitTests, TextureMatrixTests, TexturePerspectiveEnableTests, TextureRenderTargetTests, TextureRenderUpdateInPlaceTests, TextureShadowComparatorTests, TextureSignedComponentTests, ThreeDPrimitiveTests, TwoDLineTests, VertexShaderIndependenceTests, VertexShaderRoundingTests, VertexShaderSwizzleTests, ViewportTests, VolumeTextureTests, WParamTests, WeightSetterTests, WindowClipTests, ZMinMaxControlTests, and ZeroStrideTests.

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 ()
 
void SetSavingAllowed (bool enable=true)
 

Static Public Member Functions

static void TagNV2ATrace (uint32_t num_nops)
 Inserts a pattern of NV097_NO_OPERATION's into the pushbuffer to allow identification when viewing nv2a traces.
 

Protected Member Functions

void SetDefaultTextureFormat () const
 

Protected Attributes

TestHosthost_
 
std::string output_dir_
 
std::string suite_name_
 
bool allow_saving_ {true}
 
std::map< std::string, std::function< void()> > tests_ {}
 
PGRAPHDiffToken pgraph_diff_
 
bool enable_progress_log_
 
bool enable_pgraph_region_diff_
 
uint32_t delay_milliseconds_between_tests_
 
std::shared_ptr< FTPLoggerftp_logger_
 

Detailed Description

Base class for all test suites.

Member Function Documentation

◆ Deinitialize()

◆ Initialize()

void TestSuite::Initialize ( )
virtual

Called to initialize the test suite.

Reimplemented in AlphaFuncTests, AntialiasingTests, AttributeCarryoverTests, AttributeExplicitSetterTests, BlendTests, ClearTests, ColorKeyTests, ColorMaskBlendTests, ColorZetaDisableTests, ColorZetaOverlapTests, CombinerTests, DepthFormatFixedFunctionTests, DepthFormatTests, DMACorruptionAroundSurfaceTests, EdgeFlagTests, FogCarryoverTests, FogExceptionalValueTests, FogGenTests, FogParamTests, FogTests, FogCustomShaderTests, FogInfiniteFogCoordinateTests, FogVec4CoordTests, FrontFaceTests, HighVertexCountTests, ImageBlitTests, InlineArraySizeMismatchTests, LightingAccumulationTests, LightingControlTests, LightingNormalTests, LightingRangeTests, LightingSpotlightTests, LightingTwoSidedTests, LineWidthTests, MaterialAlphaTests, MaterialColorSourceTests, MaterialColorTests, NullSurfaceTests, OverlappingDrawModesTests, PointParamsTests, PointSizeTests, PvideoTests, SetVertexDataTests, ShadeModelTests, SmoothingTests, SpecularBackTests, SpecularTests, StencilFuncTests, StencilTests, StippleTests, SurfaceClipTests, SurfaceFormatTests, SurfacePitchTests, SwathWidthTests, TexgenMatrixTests, TexgenTests, TextureBorderTests, TextureCPUUpdateTests, TextureCubemapTests, TextureFormatDXTTests, TextureFormatTests, TextureFramebufferBlitTests, TextureMatrixTests, TexturePerspectiveEnableTests, TextureRenderTargetTests, TextureRenderUpdateInPlaceTests, TextureShadowComparatorTests, TextureSignedComponentTests, ThreeDPrimitiveTests, TwoDLineTests, VertexShaderIndependenceTests, VertexShaderRoundingTests, VertexShaderSwizzleTests, VolumeTextureTests, WParamTests, WeightSetterTests, WindowClipTests, ZMinMaxControlTests, and ZeroStrideTests.

◆ TearDownTest()

void TestSuite::TearDownTest ( )
virtual

Called after running an individual test within this suite.

Reimplemented in ColorKeyTests, LineWidthTests, StippleTests, and ZMinMaxControlTests.


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