Commit Graph

1982 Commits

Author SHA1 Message Date
Butta
3933fc0006 [android][test] Fix several tests on the Android CI
- #58975 switched many tests from XFAIL on linux to linux-gnu, so seven
  fail on the Android CI and two natively. They are now explicitly excluded.
- #39605 added several C++ Interop tests, 11 of which fail on the Android CI,
  so disable them for now.
- #42478 removed the @noescape attribute for the non-Android
  SIL/clang-function-types tests, so I remove it for Android too.
- My pull #40779 moved the Swift pointer tags to the second byte, so
  SILOptimizer/concat_string_literals.64 will need to be updated for that,
  disabled it for now.
- Compiler-rt moved the directory in which it places those libraries for
  Android, llvm/llvm-project@a68ccba, so lit.cfg is updated for that.
2022-06-09 14:35:41 +05:30
Andrew Trick
9db9c1438e Remove a FIXME from validation-test/stdlib/FixedPoint.swift.gyb
Leave this test in long_test because it takes so long to compile. This
issue has nothing to do with the FIXME comment.
2022-06-07 18:02:26 -07:00
Lily Lin
fbd70fe6eb Fix build error for linux builds and add basic validation test 2022-06-03 15:26:06 -07:00
Alejandro Alonso
c59f47389f Add Script and Script Extension tests (#59194) 2022-06-01 09:55:09 -07:00
Ben Barham
c163e0fe5e [Tests] Make OS features consistent
lit.py currently allows any substring of `target_triple` to be used as a
feature in REQUIRES/UNSUPPORTED/XFAIL. This results in various forms of
the OS spread across the tests and is also somewhat confusing since they
aren't actually listed in the available features.

Modify all OS-related features to use the `OS=` version that Swift adds
instead. We can later remove `config.target_triple` so that these don't
the non-OS versions don't work in the first place.
2022-05-20 19:51:23 -07:00
Josh Soref
624a54b9cf Spelling stdlib (#42544)
* spelling: abcdefghijklmnopqrstuvwxyz

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: clazz

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: collection

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: compressible

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: constituent

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: contiguous

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: convertibility

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: element

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: enforce

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: exhaustive

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: exhausts

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: existential

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: facilitate

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: ignored

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: incorporated

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: intersection

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: laziness

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: misaligned

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: overhaul

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: preamble

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: precondition

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: replacement

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: trailing

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: unambiguous

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: uncompressible

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: world

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2022-04-22 19:18:38 -07:00
Karoy Lorentey
318277c3aa [test] stdlib/StringIndex: Spin off O(n^4) substring replacement test into a standalone long test
Also trim down its input a bit so that this doesn’t take 20 minutes.
2022-04-15 21:29:32 -07:00
Karoy Lorentey
57f0e67658 Merge pull request #41417 from lorentey/the-horror-of-se-0180
[stdlib] Fix String indexing edge cases, anomalies & validation bugs
2022-04-14 14:08:53 -07:00
Daniel Duan
3dfc40898c [NFC] Remove Python 2 imports from __future__ (#42086)
The `__future__` we relied on is now,  where the 3 specific things are
all included [since Python 3.0](https://docs.python.org/3/library/__future__.html):

* absolute_import
* print_function
* unicode_literals
* division

These import statements are no-ops and are no longer necessary.
2022-04-13 14:01:30 -07:00
Alejandro Alonso
5fe6a7e247 Add caseFolded to scalar properties 2022-04-10 13:03:13 -07:00
Karoy Lorentey
3f2550feb4 [test] stdlib/StringGraphemeBreaking: Add backwards checks 2022-04-05 21:42:17 -07:00
Guillaume Lessard
3bacc7c08f [test] check availability for before running test
- resolves rdar://91181948
2022-04-01 15:37:07 -06:00
Nate Cook
e2a394b435 Disable String breadcrumbs tests for freestanding stdlib (#42000) 2022-03-25 07:46:22 -05:00
Kuba (Brecka) Mracek
e48cd332ff Mark validation-test/stdlib/StringBreadcrumbs.swift as UNSUPPORTED: freestanding (#41991) 2022-03-24 06:57:23 -07:00
Alejandro Alonso
908161136d Renable StringMemoryTest 2022-03-21 13:33:42 -07:00
David Smith
cb082e185c Merge pull request #41866 from Catfish-Man/what-a-crumb-y-optimization
Vectorize UTF16 offset calculations
2022-03-18 09:53:55 -07:00
David Smith
eaf3f316ec Vectorize UTF16 offset calculations 2022-03-17 14:18:21 -07:00
Guillaume Lessard
b17b1a9d04 Merge pull request #41836 from glessard/sr15994
[stdlib] tolerate empty source buffers in `UMRBP.copyMemory`
2022-03-16 16:24:44 -06:00
Guillaume Lessard
cc60db78e1 [test] validate behaviour when copying from an empty buffer 2022-03-16 10:06:20 -06:00
Alejandro Alonso
27e6241a41 Merge pull request #41389 from Azoy/fix-indic-sequences
[stdlib] Fix backwards count of Indic graphemes
2022-03-14 12:08:21 -07:00
Hamish Knight
187e6f3472 [test] Disable ArrayTrapsObjC.swift for backdeployment
rdar://89821303
2022-03-09 16:13:00 +00:00
Mike Ash
039eb10dab Mark stdlib/Assert-debugPrecondition-off.swift as REQUIRES: executable_test. 2022-02-23 12:16:35 -05:00
Guillaume Lessard
544cd889c8 Merge pull request #41503 from glessard/sr15433
[test] return early when test cannot succeed
2022-02-22 10:03:59 -07:00
Guillaume Lessard
4e3c1ea3ee [test] return early when test cannot succeed
- test requires Swift 5.7
- resolves rdar://89052037
2022-02-21 17:01:49 -07:00
Karoy Lorentey
5274295e3f [test] Update tests for new (conditional) _debugPrecondition behavior 2022-02-18 21:54:02 -08:00
Slava Pestov
77d1063f2e Disable ArrayBridging test due to rdar://88637598 2022-02-16 14:21:43 -05:00
Alejandro Alonso
657c17fa39 Setup grapheme breaking tests 2022-02-15 17:16:36 -08:00
Alejandro Alonso
c0e1ef01f9 Fix backwards count of Indic graphemes 2022-02-15 15:28:37 -08:00
Guillaume Lessard
d870a9f164 Merge pull request #41288 from glessard/sr15433
[stdlib] Implement `withContiguousStorageIfAvailable` for raw buffer types
2022-02-14 15:37:27 -07:00
Rintaro Ishizaki
6f1bca2296 [Test] Disable failing test while investigating
rdar://88581116
2022-02-09 10:10:21 -08:00
Guillaume Lessard
85250c7d26 [test] withContiguousStorage methods on raw buffer types 2022-02-08 18:05:02 -07:00
Guillaume Lessard
eb56bf3a79 [gardening] deallocate buffer after use 2022-02-08 18:05:02 -07:00
Guillaume Lessard
cec7b4b44b [gardening] silence unused variable warning 2022-02-08 18:05:02 -07:00
Guillaume Lessard
8552044dc5 Merge pull request #40828 from glessard/sort-optimization
[nfc] document legacy ABI in the implementation of sort
2022-02-08 16:17:05 -07:00
Guillaume Lessard
b9eed4fa55 [test] add ABI validation for the internals of sort() 2022-02-07 02:52:36 -07:00
Guillaume Lessard
1161f92bd7 Merge pull request #39529 from glessard/se-withMemoryRebound 2022-02-05 09:01:05 -07:00
Guillaume Lessard
72f4e65eba [test] assumingMemoryBound on raw memory buffers 2022-02-03 20:02:33 -07:00
Guillaume Lessard
9f2c4b5959 [test] rebinding raw memory 2022-02-03 20:02:33 -07:00
Guillaume Lessard
69aa3c36bc [test] rebinding typed memory to wider and narrower types 2022-02-03 20:02:33 -07:00
Alejandro Alonso
54ff7cfa2c Add availability around the indic sequence tests 2022-01-18 22:17:07 -08:00
Alejandro Alonso
4a451829f8 Implement the Indic grapheme breaking rules 2022-01-05 16:18:54 -08:00
Alejandro Alonso
27ec10e8da Merge pull request #40181 from Azoy/testing-unicode-scalar-props
[test][stdlib] Beef up Unicode.Scalar.Properties testing
2021-12-21 23:06:41 -08:00
Kuba (Brecka) Mracek
663a6fb771 Introduce SWIFT_STDLIB_HAS_TYPE_PRINTING flag to remove the ability to print types at runtime (to save codesize) (#40649) 2021-12-21 17:47:54 -08:00
Alejandro Alonso
12d2e8f72d Mark UnicodeScalarProperties Darwin only for right now 2021-12-21 02:13:56 -08:00
Alejandro Alonso
edc5d88d17 Test the rest of the scalar properties
oops forgot to put this back in and 5.6
2021-12-20 15:15:07 -08:00
Alejandro Alonso
b9b4e7516b Beef up Unicode.Scalar.Properties testing for binary properties 2021-12-14 21:02:55 -08:00
Alejandro Alonso
90aa299bc2 Reenable some stdlib long_test 2021-12-14 12:29:33 -08:00
swift-ci
a77f161ec9 Merge pull request #38341 from 3405691582/FoundationInterop 2021-12-12 18:41:01 -08:00
Erik Eckstein
1eca11dc28 tests: disable StringMemoryTest.swift, which fails with ASAN
rdar://85913190
2021-12-03 14:56:22 +01:00
Alejandro Alonso
2ab99418e2 Disable another a test (#40376) 2021-12-02 20:34:52 -08:00