Commit Graph

17 Commits

Author SHA1 Message Date
Daniel Rodríguez Troitiño
70b1d91315 [windows] Allow EXE and exe capitalizations in tests.
Clang 8 or 9 seems to have changed from EXE to exe. Allow both
capitalizations (which is not important in Windows) as a workaround.

Maybe in the future we can remove the uppercase option.
2019-10-03 11:09:03 -07:00
Xi Ge
6ec4fc8ade test: update driver tests 2019-09-24 13:52:17 -07:00
Saleem Abdulrasool
67475dced4 Driver: avoid linking against the C++ runtime
Use `clang` rather than `clang++` as the linker driver.  This ensures
that we do not force a C++ runtime on the general code.  This is fine
for now as C++ interop is not yet available for Swift.  This prevents
the accidental mix-and-match of various C++ runtimes.  This can cause
problems on platforms like android where `libstdc++` is an unsupported
runtime but is generally the default for Linux platforms.
2019-07-24 19:48:02 -07:00
Gwen Mittertreiner
16dc9094d2 Fix Unicode Tests on Windows 2019-03-08 11:31:52 -08:00
Jason Mittertreiner
4e0b092fbe Fixing Driver tests on Windows (#20209) 2018-12-10 18:27:37 -08:00
Benjamin Herzog
ac10fb3462 [Driver] Added process information to emitted messages
When providing the -parseable-output flag to the swift compiler, it will provide json formatted messages about tasks that run.
I added some optional usage information in form of user time, system time and maxrss to the output. This can be used by other tools using the compiler to get some insights about time and memory usage.
Since the output does not longer match processes run (in batch mode), I also added a real_pid field so the client could reason about jobs that belong together if needed.

rdar://39798231
2018-05-25 13:12:57 -07:00
Jake Petroules
96c0083d02 [Driver] Provide executed command as an actual array (#15012)
This patch adds additional entries to the JSON command messages output
by the Swift compiler. It's now possible to get the command executable
("command_executable") and arguments ("command_arguments") as a single
string and array, respectively, rather than having to parse the
shell-escaped command line provided in the "command" key.

<rdar://problem/35701809>
2018-03-07 10:40:38 -08:00
John McCall
dda3a3827c [SR-3063] Suppress SIL transforms when merging modules. 2017-07-27 10:21:02 -04:00
Dmitri Gribenko
d175b3b66d Migrate FileCheck to %FileCheck in tests 2016-08-10 23:52:02 -07:00
Davide Italiano
edfa8fe428 [FreeBSD] XFAIL some Driver tests as we do on Linux. 2016-03-01 19:37:59 +00:00
Graham Batty
83b4384fac Update test flags for linux failures and support.
Also removed the sdk 'feature' in favour of the more specific
objc_interop.

Swift SVN r24856
2015-01-30 21:31:48 +00:00
Graham Batty
83f27a8af7 Revert "Mark tests that don't pass on linux as XFAIL."
This reverts commit 2711ca86de7bf6a7885ccea24219a48a590b1e95.

Swift SVN r23577
2014-11-24 17:42:13 +00:00
Graham Batty
198402dcfe Mark tests that don't pass on linux as XFAIL.
Swift SVN r23573
2014-11-24 17:40:37 +00:00
Connor Wakamo
7c52fa8760 Switched over to direct execution in the RUN line for the -parseable-output Unicode test.
lit now supports Unicode characters in RUN lines, so this works now without an
intermediate shell script.

Swift SVN r22737
2014-10-14 23:40:16 +00:00
Jordan Rose
f22fd8da7b [test] Disable GuardMalloc logging, and re-enable the tests that logging broke.
Thanks, Greg.

Swift SVN r22009
2014-09-17 06:10:21 +00:00
Jordan Rose
3af1873db1 [test] Add "XFAIL: gmalloc" where appropriate.
As a reminder, you can test with GuardMalloc by passing "--param gmalloc"
to lit.

All other tests pass under GuardMalloc. Hooray!

Swift SVN r21995
2014-09-16 23:12:17 +00:00
Connor Wakamo
50a39c3401 Added a test of the driver's parseable output when paths contain non-ASCII characters.
This test ensures that the file name is not improperly escaped when generating
JSON output.

In order to work around Unicode issues with lit, the swiftc invocation is
actually done in a shell script which the test invokes.

This is follow-up to <rdar://problem/18266570>.

Swift SVN r21899
2014-09-12 02:02:55 +00:00