Arnold Schwaighofer
b31b7a9d8e
Remove some UNSUPPORTED swift_test_mode_optimize_none_with_implicit_dynamic
...
rdar://51228899
2019-05-31 08:45:37 -07:00
Arnold Schwaighofer
e113ef8c93
Add a mode to test implicit dynamic with private imports
2019-03-20 14:34:01 -07:00
Karoy Lorentey
6836cf8e09
[test] Disable two more collection tests in unoptimized builds
2019-02-27 18:33:19 -08:00
Karoy Lorentey
447da103e0
[test] Regenerate CollectionOfRef validation tests
2019-02-08 15:01:27 -08:00
Karoy Lorentey
6859d056a4
[test] Collection tests with reference types should also require optimized stdlib
2019-02-08 15:00:02 -08:00
Karoy Lorentey
2c8a55f8eb
[test] Regenerate Collection validation tests
2019-02-01 18:33:30 -08:00
Karoy Lorentey
33a8962d5e
[test] Fix bitrot in Collection validation test gyb
2019-02-01 18:33:29 -08:00
Karoy Lorentey
52f2b0a901
[test] Require optimized stdlib for Collection validation tests
...
These take too long to run with unoptimized stdlib builds, causing timeout issues.
rdar://problem/46878013
2019-02-01 18:33:29 -08:00
Ben Cohen
df2307e035
[stdlib][DNM] Collapse sequence and collection wrappers ( #20221 )
...
* Concretize dropFirst/Last/sufix/prefix from Sequence
Remove split customization point
Eliminate SubSequence from Sequence protocol
Collapse LazyCollection
Collapse LazyMapCollection
Eliminate _SequenceWrapper
Collapse LazyFilterCollection
Collapse LazyDrop/PrefixWhileCollection
Fix tests, ABI stability update
Collapse FlattenSequence
* Add entries to source/ABI compatible expected results.
* Update tests to avoid pre-10.14 objc runtime bug
* Expunge _preprocessingPass
2018-11-14 10:05:58 -08:00
Ben Rimmington
2f326bcc88
[stdlib] Remove theGlobalMT19937
...
SwiftPrivate/PRNG.swift:
- currently uses `theGlobalMT19937`;
- previously used `arc4random` (see #1939 );
- is obsoleted by SE-0202: Random Unification.
2018-08-01 13:00:16 +01:00
Ben Cohen
074dc43c3e
Restore Sequence conformance to FlattenSequence.Iterator ( #18024 )
2018-07-17 20:00:30 -07:00
Max Moiseev
f5e93f63e9
[tests] Add conformance tests for FlattenSequence/FlattenCollection
2017-12-19 14:58:25 -08:00
Max Moiseev
9e73d092ea
Fix tests
...
(cherry picked from commit a1b1778c53 )
2017-12-11 10:46:35 -08:00
Max Moiseev
1f78f3927b
[stdlib] Conditional conformances for LazyMapCollection
...
(cherry picked from commit b927254564 )
2017-12-11 10:46:30 -08:00
Graydon Hoare
62a6b74ad1
Revert "[stdlib] Conditional conformances for Lazy[Filter|Map]Collection"
2017-12-10 12:48:36 -08:00
Max Moiseev
a1b1778c53
Fix tests
2017-12-08 12:53:24 -08:00
Max Moiseev
b927254564
[stdlib] Conditional conformances for LazyMapCollection
2017-12-08 12:52:12 -08:00
Ben Cohen
85d190cd7d
[stdlib] Replace various uses of BlahSlice with Slice to reduce warnings ( #13263 )
...
* Kill the slice variants from the gybbed collection test types
* Handful more SDK instances
* Fix SequencesCollections.swift.gyb
2017-12-05 19:09:56 -08:00
Max Moiseev
0913206f29
[tests] Generate LazyMap tests from the template
2017-07-05 16:53:58 -07:00
Max Moiseev
02eca4abd7
[tests] Add template for LazyMap tests
2017-07-05 16:53:58 -07:00
Max Moiseev
e2c22b2425
[tests] Re-generate files from the template
2017-07-05 15:51:08 -07:00
Max Moiseev
7730c60705
[tests] Split collection tests further for more even load on executors
2017-07-05 15:51:08 -07:00
Andrew Trick
30f2cce1b6
Do not run recursive O(n^2) collection slice testing on large collections.
...
Now, even with collection unit testing wired up, the validation tests
take the same amount of time to execute.
2017-04-06 17:12:18 -07:00
Andrew Trick
849421799a
Revert "SE-0138: Proposed amendment to SE-0138: Normalize UnsafeRawBufferPointer Slices ( #8222 )"
...
This reverts commit 1d32586d28 .
2017-04-06 10:38:52 -07:00
Andrew Trick
1d32586d28
SE-0138: Proposed amendment to SE-0138: Normalize UnsafeRawBufferPointer Slices ( #8222 )
...
* Add sliceability tests for Unsafe(Raw)BufferPointer.
Improve the generic sliceability tests to verify that SubSequence indices are
compatible with their parents indices.
* Fix and enable testing stdlib Collection instances.
Top-level entry points fully testing a collection instance:
check${Traversal}Collection
One level of recursion into all slices of the collection instance
O(n^2). (Not combinatorial).
Previously, checkCollection() did nothing. So much of the testing infrastructure was inactive. Now it runs all forward collection tests.
Fixes a bug in subscriptRangeTests.
The UnsafeRawBufferPointer and Data collection testing is disabled and
will be fixed in the following commit.
* Give UnsafeRawBufferPointer a distinct slice type.
SubSequence = RandomAccessSlice<Self>
* Fix raw buffer pointer tests after changing the API
* Add UnsafeRawBuffer(rebasing:) initializers.
Allows converting a raw slice into a zero-based raw buffer,
which is a common operation on flat memory.
Add and update UnsafeRawBufferPointer unit tests.
* Do not run recursive O(n^2) collection slice testing on large collections.
Now, even with collection unit testing wired up, the validation tests
take the same amount of time to execute.
* Add init(rebasing:) to UnsafeBufferPointer.
This is required for consistency with UnsafeRawBufferPointer.
* Update CHANGELOG.md for SE-0138 amendment: UnsafeRawBufferPointer slice type.
2017-04-06 10:08:09 -07:00
Chris Lattner
87db7b4cf2
update validation tests to modern syntax.
2016-07-02 17:10:49 -07:00
Rintaro Ishizaki
5c991e7e35
[validation-test] Remove -sil-serialize-all workaround from Collection and Slice tests
...
This workaround is not required since 49c54870c1
2016-06-20 11:32:46 +09:00
Dmitri Gribenko
efc351f69d
Merge pull request #3011 from rintaro/tests-target-simple-run-swiftgyb
...
[test] Add %target-run-simple-swiftgyb substitution
2016-06-14 22:43:48 -07:00
rintaro ishizaki
4b51d85abb
[test] Add %target-run-simple-swiftgyb
...
* Utilize %target-run-simple-swiftgyb where possible
2016-06-15 11:49:44 +09:00
rintaro ishizaki
6e4792cb5b
[test] Adjust validation-test/stdlib/{Collection, Slice}
...
* utils/split_file.py compatible Inputs/Template.swift.gyb
* Result scripts can be ran by %target-run-simple-swift, not GYB
* Renamed stdlib/Slice/*.swift.gyb to stdlib/Slice/*.swift
2016-06-15 11:49:43 +09:00
rintaro ishizaki
2addf475b5
[test] Add instruction for generating validation-test/stdlib/{Collection,Slice} tests
...
Using utils/gyb and utils/split_file.py
2016-06-14 19:50:39 +09:00
Rintaro Ishizaki
1bdce7ced6
[lit] Add substitutions: %utils and %line-directive
...
%utils => ${SWIFT_SOURCE_DIR}/utils
%line-directive => ${SWIFT_SOURCE_DIR}/utils/line-directive
2016-06-11 02:41:15 +09:00
Dmitri Gribenko
b7984be446
stdlib: always check that IteratorProtocol.next() repeatedly returns nil
...
This is required by SE-0052.
2016-05-15 23:55:48 -07:00
Dmitri Gribenko
b6447d119c
Merge pull request #2346 from austinzheng/validation-tests
...
Improving LazyFilterCollection tests with random data
2016-05-02 17:55:29 -07:00
Dave Abrahams
93dfc16626
[stdlib] More reliably avoid running duplicate tests
...
Removing the “checksAdded” parameter from collection unit tests and
simply sharing a global variable is a better way to go. We don't
use threads at that level, so there's no thread safety issue, and we
already committed to globals when we introduced the logging wrappers.
2016-05-02 15:30:29 -07:00
Austin Zheng
706510febc
Improving LazyFilterCollection tests with random data
2016-04-29 13:37:22 -07:00
Austin Zheng
e9c1db2c2d
Completing LazyFilterCollections, adding tests for LazyFilterCollection
...
Changes:
- Added proper LazyFilterBidirectionalCollection support
- Added tests for LazyFilterCollection variants
2016-04-29 00:50:15 -07:00
Austin Zheng
e034946b45
Fixing index(where:) API test
...
Changes:
- Fixed a bug in the collection unit test exercising the index(where:) API
- Reenabled relevant LazyMapCollection tests
2016-04-28 20:04:39 -07:00
Austin Zheng
0e22ef62af
Adding validation tests for LazyMapCollection
2016-04-28 15:32:06 -07:00
Dmitri Gribenko
37c4d70eb9
Split collection tests for better parallelism
2016-04-01 14:14:56 -07:00