#include "include/core/SkString.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkDebug.h"
#include "tests/Test.h"
#include "tests/TestHarness.h"
#include "tools/flags/CommandLineFlags.h"
#include "tools/testrunners/common/TestRunner.h"
#include <ctime>
#include <cwchar>
#include <functional>
#include <iomanip>
#include <sstream>
#include <string>
Go to the source code of this file.
|
static | DEFINE_string (skip, "", "Space-separated list of test cases (regexps) to skip.") |
|
static | DEFINE_string (match, "", "Space-separated list of test cases (regexps) to run. Will run all tests if omitted.") |
|
static | DEFINE_string (key, "", "Ignored by this test runner.") |
|
static | DEFINE_string (cpuName, "", "Ignored by this test runner.") |
|
static | DEFINE_string (gpuName, "", "Ignored by this test runner.") |
|
TestHarness | CurrentTestHarness () |
|
void | maybeRunTest (const char *name, std::function< void()> testFn) |
|
int | main (int argc, char **argv) |
|
◆ CurrentTestHarness()
◆ DEFINE_string() [1/5]
static DEFINE_string |
( |
cpuName |
, |
|
|
"" |
, |
|
|
"Ignored by this test runner." |
|
|
) |
| |
|
static |
◆ DEFINE_string() [2/5]
static DEFINE_string |
( |
gpuName |
, |
|
|
"" |
, |
|
|
"Ignored by this test runner." |
|
|
) |
| |
|
static |
◆ DEFINE_string() [3/5]
static DEFINE_string |
( |
key |
, |
|
|
"" |
, |
|
|
"Ignored by this test runner." |
|
|
) |
| |
|
static |
◆ DEFINE_string() [4/5]
static DEFINE_string |
( |
match |
, |
|
|
"" |
, |
|
|
"Space-separated list of test cases (regexps) to run. Will run all tests if omitted." |
|
|
) |
| |
|
static |
◆ DEFINE_string() [5/5]
static DEFINE_string |
( |
skip |
, |
|
|
"" |
, |
|
|
"Space-separated list of test cases (regexps) to skip." |
|
|
) |
| |
|
static |
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 154 of file BazelUnitTestRunner.cpp.
154 {
156
158
163 }
164 }
165
166#if defined(SK_GANESH)
168
171 grCtxOptions.fFailFlushTimeCallbacks = false;
172 grCtxOptions.fAllPathsVolatile = false;
175 grCtxOptions.fResourceCacheLimitOverride = -1;
180 }
181 }
182#endif
183
184
185
188 return 0;
189 }
191 return 1;
192}
void maybeRunTest(const char *name, std::function< void()> testFn)
static void Parse(int argc, const char *const *argv)
void Log(const char *format,...) SK_PRINTF_LIKE(1
void InitAndLogCmdlineArgs(int argc, char **argv)
Enable fReduceOpsTaskSplitting
bool fDisableDriverCorrectnessWorkarounds
bool fAllowPathMaskCaching
◆ maybeRunTest()
void maybeRunTest |
( |
const char * |
name, |
|
|
std::function< void()> |
testFn |
|
) |
| |
Definition at line 143 of file BazelUnitTestRunner.cpp.
143 {
146 return;
147 }
148
150 testFn();
152}
bool ShouldRunTestCase(const char *name, CommandLineFlags::StringArray &matchFlag, CommandLineFlags::StringArray &skipFlag)
DEF_SWITCHES_START aot vmservice shared library name
◆ unused
Initial value:=
nullptr,
nullptr,
"Ignored by this test runner.",
nullptr)
static bool CreateStringFlag(const char *name, const char *shortName, CommandLineFlags::StringArray *pStrings, const char *defaultValue, const char *helpString, const char *extendedHelpString)
Definition at line 51 of file BazelUnitTestRunner.cpp.