Skip to content

Commit 149437b

Browse files
authored
Merge pull request #18141 from palimondo/empathy-test
Enable benchmark test only when the binary is present
2 parents f4eae3f + 373ebcc commit 149437b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

test/lit.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,10 @@ elif swift_test_subset == 'only_stress':
519519
else:
520520
lit_config.fatal("Unknown test mode %r" % swift_test_subset)
521521

522+
# Enable benchmark testing when the binary is found (has fully qualified path).
523+
if config.benchmark_o != 'Benchmark_O':
524+
config.available_features.add('benchmark')
525+
522526
# Add substitutions for the run target triple, CPU, OS, and pointer size.
523527
config.substitutions.append(('%target-triple', config.variant_triple))
524528

test/lit.site.cfg.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ config.available_features.add("CMAKE_GENERATOR=@CMAKE_GENERATOR@")
8888
if "@SWIFT_ENABLE_SOURCEKIT_TESTS@" == "TRUE":
8989
config.available_features.add('sourcekit')
9090

91-
if "@SWIFT_BUILD_PERF_TESTSUITE@" == "TRUE":
92-
config.available_features.add('benchmark')
93-
9491
if "@SWIFT_ENABLE_GUARANTEED_NORMAL_ARGUMENTS@" == "TRUE":
9592
config.available_features.add('plus_zero_runtime')
9693
else:

0 commit comments

Comments
 (0)