/third_party/skia/third_party/externals/angle2/src/tests/restricted_traces/ |
D | restricted_trace_gold_tests.py | 413 def _shard_tests(tests, shard_count, shard_index): argument 414 return [tests[index] for index in range(shard_index, len(tests), shard_count)] 458 args.shard_index = int(env.pop('GTEST_SHARD_INDEX')) 490 sharded_tests = _shard_tests(tests['traces'], args.shard_count, args.shard_index)
|
/third_party/skia/third_party/externals/angle2/src/tests/ |
D | run_perf_tests.py | 108 def _shard_tests(tests, shard_count, shard_index): argument 109 return [tests[index] for index in range(shard_index, len(tests), shard_count)] 320 args.shard_index = int(env.pop('GTEST_SHARD_INDEX')) 333 tests = _shard_tests(tests, args.shard_count, args.shard_index)
|
/third_party/googletest/googletest/test/ |
D | googletest-filter-unittest.py | 234 def RunWithSharding(total_shards, shard_index, command): argument 237 extra_env = {SHARD_INDEX_ENV_VAR: str(shard_index),
|
D | gtest_unittest.cc | 1936 for (int shard_index = 0; shard_index < num_shards; shard_index++) { in TEST() local 1937 if (ShouldRunTestOnShard(num_shards, shard_index, test_id)) { in TEST() 1939 prev_selected_shard_index = shard_index; in TEST() 1942 << shard_index << " are both selected to run test " in TEST() 1951 for (int shard_index = 0; shard_index < num_shards; shard_index++) { in TEST() local 1955 ShouldRunTestOnShard(num_shards, shard_index, test_id); in TEST()
|
/third_party/mesa3d/src/gtest/src/ |
D | gtest.cc | 3156 const Int32 shard_index = Int32FromEnvOrDie(kTestShardIndex, -1); in OnTestIterationStart() local 3159 static_cast<int>(shard_index) + 1, in OnTestIterationStart() 5426 const Int32 shard_index = Int32FromEnvOrDie(shard_index_env, -1); in ShouldShard() local 5428 if (total_shards == -1 && shard_index == -1) { in ShouldShard() 5430 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard() 5433 << kTestShardIndex << " = " << shard_index in ShouldShard() 5438 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard() 5446 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard() 5450 << ", but you have " << kTestShardIndex << "=" << shard_index in ShouldShard() 5481 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument [all …]
|
D | gtest-internal-inl.h | 273 int total_shards, int shard_index, int test_id);
|
/third_party/googletest/googletest/src/ |
D | gtest.cc | 3397 const int32_t shard_index = Int32FromEnvOrDie(kTestShardIndex, -1); in OnTestIterationStart() local 3399 static_cast<int>(shard_index) + 1, in OnTestIterationStart() 6002 const int32_t shard_index = Int32FromEnvOrDie(shard_index_env, -1); in ShouldShard() local 6004 if (total_shards == -1 && shard_index == -1) { in ShouldShard() 6006 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard() 6008 << kTestShardIndex << " = " << shard_index in ShouldShard() 6014 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard() 6022 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard() 6026 << ", but you have " << kTestShardIndex << "=" << shard_index in ShouldShard() 6057 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument [all …]
|
D | gtest-internal-inl.h | 266 GTEST_API_ bool ShouldRunTestOnShard(int total_shards, int shard_index,
|
/third_party/node/deps/googletest/src/ |
D | gtest.cc | 3425 const int32_t shard_index = Int32FromEnvOrDie(kTestShardIndex, -1); in OnTestIterationStart() local 3427 static_cast<int>(shard_index) + 1, in OnTestIterationStart() 6038 const int32_t shard_index = Int32FromEnvOrDie(shard_index_env, -1); in ShouldShard() local 6040 if (total_shards == -1 && shard_index == -1) { in ShouldShard() 6042 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard() 6044 << kTestShardIndex << " = " << shard_index in ShouldShard() 6050 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard() 6058 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard() 6062 << ", but you have " << kTestShardIndex << "=" << shard_index in ShouldShard() 6093 bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { in ShouldRunTestOnShard() argument [all …]
|
D | gtest-internal-inl.h | 267 GTEST_API_ bool ShouldRunTestOnShard(int total_shards, int shard_index,
|
/third_party/cef/tools/distrib/gtest/ |
D | gtest-all.cc | 670 int total_shards, int shard_index, int test_id); 4894 const int32_t shard_index = Int32FromEnvOrDie(kTestShardIndex, -1); in OnTestIterationStart() local 4896 static_cast<int>(shard_index) + 1, in OnTestIterationStart() 7449 const int32_t shard_index = Int32FromEnvOrDie(shard_index_env, -1); in ShouldShard() local 7451 if (total_shards == -1 && shard_index == -1) { in ShouldShard() 7453 } else if (total_shards == -1 && shard_index != -1) { in ShouldShard() 7456 << kTestShardIndex << " = " << shard_index in ShouldShard() 7461 } else if (total_shards != -1 && shard_index == -1) { in ShouldShard() 7469 } else if (shard_index < 0 || shard_index >= total_shards) { in ShouldShard() 7473 << ", but you have " << kTestShardIndex << "=" << shard_index in ShouldShard() [all …]
|