diff --git a/lit.cfg b/lit.cfg index f764e17..517bd78 100644 --- a/lit.cfg +++ b/lit.cfg @@ -53,7 +53,7 @@ config.test_format = lit.formats.ShTest(execute_external = False) # suffixes: A list of file extensions to treat as test files. # # We override this in specific subdirectories to change what we test. -config.suffixes = [".txt", ".py", ".md"] +config.suffixes = [".txt", ".py", ".md", ".test"] # excludes: A list of directories to exclude from the testsuite. The 'Inputs' # subdirectories contain auxiliary inputs for various tests in their parent diff --git a/test-static-stdlib/main.swift b/test-static-stdlib/main.swift new file mode 100644 index 0000000..502ea4b --- /dev/null +++ b/test-static-stdlib/main.swift @@ -0,0 +1,6 @@ + +import Foundation + +let u = URL(fileURLWithPath: "file:///foo") + +print("foo bar baz: \(u)") diff --git a/test-static-stdlib/test-static-stdlib.test b/test-static-stdlib/test-static-stdlib.test new file mode 100644 index 0000000..d66d65c --- /dev/null +++ b/test-static-stdlib/test-static-stdlib.test @@ -0,0 +1,7 @@ + +RUN: rm -rf %t +RUN: mkdir -p %t +RUN: %{swiftc} -static-stdlib %S/main.swift -o %t/main +RUN: %t/main | %{FileCheck} %s + +CHECK: foo bar baz: file:/foo