Max Moiseev
5da3e1dab3
[test] Fix validation tests
2017-07-26 16:49:14 -07:00
Max Moiseev
6f6c2aee8c
Fixing the rest of the tests
2017-03-22 16:06:10 -07:00
Max Moiseev
8ffbc81239
Fixing some validation tests
2017-03-10 17:09:28 -08:00
Max Moiseev
08cf1de65a
[WIP] fixing some of the integer related test failures
2016-10-05 15:25:23 -07:00
Dmitri Gribenko
ee773c787a
stdlib: add tests for Stride types on integers
2016-08-03 18:57:39 -07:00
Dmitri Gribenko
b868fb1a50
stdlib tests: adapt to removal of Bool.boolValue
2016-07-18 02:41:20 -07:00
Chris Lattner
0917c01922
update validation tests for Boolean removal.
2016-07-17 22:49:20 -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
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
Gary Liu
9b881cd8ac
Fix String.init test in FixedPoint.swift.gyb for big-endian systems.
2016-05-24 20:04:04 -04:00
Bryan Chan
85fde8b1fb
Add support for Linux s390x. LLVM's Swift calling convention support is used to ensure correct operations of C++ code in the runtime. This patch also includes some (incomplete) changes to enum handling to make enums work in most common cases.
2016-05-24 20:03:28 -04:00
Slava Pestov
49c54870c1
Serialization: Auto-linking recursively walks modules imported from -sil-serialize-all modules
2016-04-01 12:21:36 -07:00
Max Moiseev
859db53d87
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-03-01 12:56:26 -08:00
practicalswift
f6d6585ee0
[Python] Improve Python consistency: Use function_name(…) throughout (PEP8)
2016-02-29 22:49:19 +01:00
Dmitri Gribenko
0f36bec31f
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-18 16:41:35 -08:00
Brian Gesiak
42215042ae
[validation-test] More granular FixedPoint tests
...
`FixedPoint.swift.gyb` generates a massive amount of assertions:
one for each `Int` type (such as `UInt8` and `Int64`) as a source,
to one of each `Int` type as a destination, for each of 27 bit
patterns. By my math that's 8 * 8 * 27 == 1728 assertions.
As a result, when one of those assertions fails, it's difficult to
tell what went wrong.
Split each assertion into its own test case. This makes the test
take a little longer to run, but it produces much more valuable
output when it fails.
2016-02-16 12:03:49 -05:00
Doug Gregor
7d70b704e4
Merge commit '5e11e3f7287427d386636a169c4065c0373931a8' into swift-3-api-guidelines
2016-01-19 23:18:20 -08:00
Anton Blanchard
b1827d8a8f
Add powerpc64le Linux support
...
This patch adds powerpc64le Linux support. While the patch also adds
the matching powerpc64 bits, there are endian issues that need to be
sorted out.
The PowerPC LLVM changes for the swift ABI (eg returning three element
non-homogeneous aggregates) are still in the works, but a simple LLVM
fix to allow those aggregates results in swift passing all but 8
test cases.
2016-01-15 06:48:31 +00:00
practicalswift
21c3d93bea
Remove unused imports.
2016-01-09 01:39:22 +01:00
Max Moiseev
2021dd5a4d
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2015-12-15 12:49:22 -08:00
Erik Eckstein
0830c36974
[tests] add import statements to prevent unresolved symbols when compiling StdlibUnittest with -sil-serialize-all.
...
This is the second part of 308f39fe56 .
It fixes (better: works-around) linker errors when testing in optimized mode.
2015-12-15 10:46:10 -08:00
Max Moiseev
806be29941
Merge remote-tracking branch 'origin' into swift-3-api-guidelines
2015-12-14 12:05:35 -08:00
Arsen Gasparyan
52890e5c30
Replace if true {} with do {}
2015-12-13 10:54:54 +03:00
Maxim Moiseev
1b6244f3ee
integer types renamed
2015-12-10 17:03:40 -08:00
Maxim Moiseev
2c95bb6d51
BooleanType => Boolean
2015-12-10 14:56:32 -08:00
Arnold Schwaighofer
4d4329b0e0
Add executable_test to the validation test suite
...
Swift SVN r29278
2015-06-03 23:28:43 +00:00
Dave Abrahams
ac3f047496
[stdlib] Renaming fallout from Mirror API review
...
toString(x) => String(x)
toDebugString(x) => String(reflecting: x)
Printable => CustomStringConvertible
DebugPrintable => CustomDebugStringConvertible
Also updated comments to clarify these protocols
Swift SVN r27090
2015-04-07 20:32:26 +00:00
Graham Batty
0a73f54e98
Implement a glibc module for StdlibUnittest on linux
...
Swift SVN r25807
2015-03-06 22:05:13 +00:00
Graham Batty
7346a9733d
Update test and validation-test flags for linux.
...
Swift SVN r25506
2015-02-24 18:55:42 +00:00
Dmitri Hrybenko
51db8ec975
tests: dissolve PrimitiveDataTypes.swift in other test files
...
Swift SVN r25345
2015-02-17 03:27:24 +00:00
Dmitri Hrybenko
d65d46562a
tests: merge two tests for fixed point types
...
Swift SVN r25233
2015-02-12 11:26:01 +00:00
Dmitri Hrybenko
82828ae5a4
tests: use line-directive to run generated tests
...
Swift SVN r25026
2015-02-06 01:10:58 +00:00
Dmitri Hrybenko
3087d186cb
tests: use a more appropriate test name and remove a redundant test
...
Swift SVN r24676
2015-01-23 03:29:31 +00:00
Dmitri Hrybenko
bbf79427ac
stdlib: remove bitwise operations on Bool
...
Bitwise operations on Bool are redundant with other logic operations
that stdlib already provides. The only reason to have them was to avoid
branching in the short-circuiting && and ||.
rdar://19340952
Surprisingly, replacing & and | in the standard library with && and ||
brought performance improvements and no significant performance
regressions:
RecursiveOwnedParameter 1.14
SelectionSort 1.19
Swift SVN r24674
2015-01-23 03:09:55 +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
Dmitri Hrybenko
60cf5d3d1b
SwiftIntTypes.py: remove transitional '_new' suffix from a function name
...
Swift SVN r21579
2014-08-29 15:38:22 +00:00
Dmitri Hrybenko
717171b89d
stdlib tests: use simpler interface to iterate over integer types
...
Swift SVN r21577
2014-08-29 15:14:35 +00:00
Dmitri Hrybenko
c5181c2d65
stdlib/FixedPoint: fix hash computation for [U]Int64 on 32-bit platforms
...
It used to trap if the value of [U]Int64 was outside the Int32 range.
rdar://18113807
Swift SVN r21572
2014-08-29 13:48:32 +00:00
Dmitri Hrybenko
1bc40d22ef
FixedPoint test: use correct argument order for expectEquals
...
Swift SVN r21571
2014-08-29 13:37:19 +00:00
Dmitri Hrybenko
14899abdf5
stdlib/FixedPoint: define the same set of 'truncatingBitPattern'
...
initializers on all platforms
rdar://18167806
Swift SVN r21570
2014-08-29 10:32:33 +00:00
Dmitri Hrybenko
be9850d8de
stdlib: add a test for passing literals to the IntXX(bitPattern:) initializer
...
Swift SVN r21482
2014-08-27 10:11:58 +00:00
Dmitri Hrybenko
61ef07732f
stdlib/FixedPoint: add IntXX(truncatingBitPattern:) initializers
...
rdar://18101336
Swift SVN r21481
2014-08-27 10:04:33 +00:00