1#ifndef NXDK_PGRAPH_TESTS_TEST_SUITE_H
2#define NXDK_PGRAPH_TESTS_TEST_SUITE_H
13#include "pgraph_diff_token.h"
28 bool enable_pgraph_region_diff;
34 std::shared_ptr<FTPLogger> ftp_logger;
42 [[nodiscard]]
const std::string &Name()
const {
return suite_name_; };
56 void DisableTests(
const std::set<std::string> &tests_to_skip);
58 [[nodiscard]] std::vector<std::string> TestNames()
const;
59 [[nodiscard]]
bool HasEnabledTests()
const {
return !tests_.empty(); };
61 void Run(
const std::string &test_name);
65 void SetSavingAllowed(
bool enable =
true) { allow_saving_ = enable; }
71 void SetDefaultTextureFormat()
const;
74 std::chrono::steady_clock::time_point LogTestStart(
const std::string &test_name);
75 long LogTestEnd(
const std::string &test_name,
const std::chrono::steady_clock::time_point &start_time)
const;
79 std::string output_dir_;
80 std::string suite_name_;
83 bool allow_saving_{
true};
86 std::map<std::string, std::function<void()>> tests_{};
90 bool enable_progress_log_;
91 bool enable_pgraph_region_diff_;
92 uint32_t delay_milliseconds_between_tests_;
94 std::shared_ptr<FTPLogger> ftp_logger_;
Definition test_host.h:47
Definition test_suite.h:20
virtual void Initialize()
Called to initialize the test suite.
Definition test_suite.cpp:117
virtual void Deinitialize()
Called to tear down the test suite.
Definition test_suite.cpp:340
virtual void TearDownTest()
Called after running an individual test within this suite.
Definition test_suite.cpp:348
static void TagNV2ATrace(uint32_t num_nops)
Inserts a pattern of NV097_NO_OPERATION's into the pushbuffer to allow identification when viewing nv...
Definition test_suite.cpp:333
virtual void SetupTest()
Called before running an individual test within this suite.
Definition test_suite.cpp:346
Definition pgraph_diff_token.h:6
Runtime configuration for TestSuites.
Definition test_suite.h:23
bool enable_progress_log
Enable logging of test progress to file.
Definition test_suite.h:25
uint32_t delay_milliseconds_between_tests
Artificial delay before starting each test.
Definition test_suite.h:31