Merge pull request #203 from tiagomartinho/master

[SR-1047] Run xctest_checker tests in tests
diff --git a/Tests/Functional/lit.cfg b/Tests/Functional/lit.cfg
index ad2a048..dc0f86b 100644
--- a/Tests/Functional/lit.cfg
+++ b/Tests/Functional/lit.cfg
@@ -11,7 +11,7 @@
 import os
 import platform
 import tempfile
-
+import sys
 import lit
 
 # Set up lit config.
@@ -105,3 +105,6 @@
     'xctest_checker',
     'xctest_checker.py')
 config.substitutions.append(('%{xctest_checker}', xctest_checker))
+
+# Add Python to run xctest_checker.py tests as part of XCTest tests
+config.substitutions.append( ('%{python}', sys.executable) )
diff --git a/Tests/Functional/xctest_checker/main.swift b/Tests/Functional/xctest_checker/main.swift
new file mode 100644
index 0000000..98ad580
--- /dev/null
+++ b/Tests/Functional/xctest_checker/main.swift
@@ -0,0 +1 @@
+// RUN: %{python} -m unittest discover