Skip to content

Commit d8ad0e1

Browse files
authored
Merge pull request #203 from tiagomartinho/master
[SR-1047] Run xctest_checker tests in tests
2 parents ad8a7f0 + 267a910 commit d8ad0e1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Tests/Functional/lit.cfg

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import os
1212
import platform
1313
import tempfile
14-
14+
import sys
1515
import lit
1616

1717
# Set up lit config.
@@ -105,3 +105,6 @@ xctest_checker = os.path.join(
105105
'xctest_checker',
106106
'xctest_checker.py')
107107
config.substitutions.append(('%{xctest_checker}', xctest_checker))
108+
109+
# Add Python to run xctest_checker.py tests as part of XCTest tests
110+
config.substitutions.append( ('%{python}', sys.executable) )
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// RUN: %{python} -m unittest discover

0 commit comments

Comments
 (0)