Commit Graph

14 Commits

Author SHA1 Message Date
Nadav Rotem
44fdbd8a3d Disable two of the serialization tests.
We have a few serialization bugs, inconsistent rules and ugly workarounds. We
are planning to get this right as part of the work on resilience. Until we nail
down the serialization rules and fix the implementation I am disabling two tests
that prevent us from moving forward with the work on the optimization pipeline.

The plan is to enable SIL verifications as soon as possible.

rdar://23805004
2015-12-08 14:20:54 -08:00
Nadav Rotem
3a34b30982 Disable the module verification in the pass manager.
The commit that added the module verification to the pass manager breaks our linux build
with the following message:

SIL verification failed: vtable entry for #_NativeSetStorageOwner.init!initializer.1 must be ABI-compatible

It looks like all of the SIL/parse_stdlib_XXX.sil tests are failing.

This reverts commit aafc973968.
2015-11-25 18:52:43 -08:00
Nadav Rotem
aafc973968 [Deserialization] Verify that the module that PM handles is valid.
This commit makes the pass manager verify the module that it needs to handle
before the transformations start. This verification only happens in debug mode.
The new assertion catches a few errors in our test suite. I filed rdar://23667534
and disabled the failing deserialization tests.

rdar://23667534
2015-11-25 18:37:45 -08:00
Mark Lacey
ac1d27e049 Remove -enable-sil-verify-all from sil-opt tests that run no transforms.
Swift SVN r32200
2015-09-24 16:01:00 +00:00
Mark Lacey
517723dbe9 Add -enable-sil-verify-all to sil-opt tests.
Also remove -verify from almost all of them, since only two actually
have expected diagnostic output that is tested.

Swift SVN r32198
2015-09-24 07:25:15 +00:00
Dmitri Hrybenko
6058d291ca CMake: allow the SDK overlay to be built separately from the compiler
and the stdandard library

rdar://19703353

Swift SVN r25139
2015-02-10 21:57:03 +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
Dmitri Hrybenko
3b04d1b013 tests: reorganize tests so that they actually use the target platform
Most tests were using %swift or similar substitutions, which did not
include the target triple and SDK.  The driver was defaulting to the
host OS.  Thus, we could not run the tests when the standard library was
not built for OS X.

Swift SVN r24504
2015-01-19 06:52:49 +00:00
Dmitri Hrybenko
1eea220932 Use one module cache directory for all the lit tests to speed them up
Doing so is safe even though we have mock SDK.  The include paths for
modules with the same name in the real and mock SDKs are different, and
the module files will be distinct (because they will have a different
hash).

This reduces test runtime on OS X by 30% and brings it under a minute on
a 16-core machine.

This also uncovered some problems with some tests -- even when run for
iOS configurations, some tests would still run with macosx triple.  I
fixed the tests where I noticed this issue.

rdar://problem/19125022

Swift SVN r23683
2014-12-04 11:21:48 +00:00
Jordan Rose
8baed9e728 [test] Don't try to deserialize OS X versions of modules on iOS.
rdar://problem/18885615

Swift SVN r23123
2014-11-06 00:49:04 +00:00
Dmitri Hrybenko
8eb56157da Add more triples to tests that use %sdk, and enable them on iOS and
simulator

Swift SVN r23112
2014-11-05 04:20:47 +00:00
Michael Gottesman
d14b7793c4 [deserialization] Remove -I from deserialization tests and re-enable Foundation/Darwin/ObjectiveC test per Jordan's request.
Swift SVN r17491
2014-05-05 22:04:28 +00:00
Michael Gottesman
4c196056f4 [deserialization] Add in appropriate REQUIRES for deserialization tests.
Swift SVN r17490
2014-05-05 21:52:30 +00:00
Michael Gottesman
fce2851de7 [deserialization] Enable dumping of modules/overlays that reference SDKs by fixing latent deserialization bug.
I also put in deserialization tests to make sure we do not regress on
this.

Swift SVN r17470
2014-05-05 18:15:23 +00:00