Commit Graph

16 Commits

Author SHA1 Message Date
Dmitri Gribenko
a30f90c965 CMake: move tricky code from CMake to Python
Removing an abstraction boundary also allowed me to fix a bug where we
could not run long tests in optimized mode, which prevented us from
being able to mark executable tests as long.
2016-06-06 01:02:03 -07:00
Russell Currey
92053493ba docs: Update IR/SIL testing section to include powerpc64{le} 2016-05-11 11:54:55 +10:00
Dmitri Gribenko
457f2b901c CMake & build-script: add a new tier of testing, "long tests"
* The behavior of `build-script -t` is unchanged.

* `build-script -T` continues to run primary and validation test suite,
  but without the long tests.

* `build-script --long-test` runs just the long tests.

* `build-script -T --long-test` runs all tests.
2016-04-16 14:03:54 -07:00
Alex Hoppen
cf05e83067 Added the -frontend parameter to the documentation of the %target-parse-verify-swift substitution since this is the command by which the tool can be invoked manually 2016-04-15 09:05:45 +02:00
swift-ci
56e3875d77 Merge pull request #1806 from drewcrawford/test-infrastructure-squashed 2016-03-29 02:16:59 -07:00
Drew Crawford
a3154616aa [test] add test features static_stdlib
Add a test feature flag static_stdlib, which is enabled if the user
builds the static libraries.

We also add the substitution %target-static-stdlib-path which gives the
path of the static stdlib.

These features allow testing specifically for the static standard
library.
2016-03-23 04:30:47 -05:00
Brian Gesiak
6ac8075079 [docs] Recommend using utils/build-script to test
Contributors likely won't need to invoke CMake directly in order to run the test suite. As such, the current testing documentation is a little misleading: it jumps into a detailed explanation of the `check-swift` family of targets, even though those are abstracted away via the build script. For example, I remember when I first read this document, I spent 20 minutes searching in vain for a build executable named `check-swift`.

Instead, change the wording to make it clear that `utils/build-script` is the best way to run the tests. For those interested in **how** the tests are executed, show an example of a CMake command that runs them.
2016-03-22 21:32:13 -04:00
Dmitri Gribenko
ef89cb4219 Testing.rst: document what XFAIL: linux means 2016-03-22 17:14:38 -07:00
Dmitri Gribenko
226ab38888 CMake / lit: add a mode to run only executable tests
This allows us to quickly run tests affected by implementation-only
standard library changes.
2016-02-12 22:50:42 -08:00
Dmitri Gribenko
27be1ab257 build-script: allow to run host-side iOS tests
This change allows to easily run iOS tests that require only running the
compiler, and don't require running the generated code.
2016-02-04 17:19:12 -08:00
Brian Gesiak
0ede0c4bcd [test] Run Python unit tests in validation tests
This repository includes several Python modules, each with unit tests.
Add a step to the validation tests to ensure these tests pass.
2015-12-27 01:57:33 -05:00
zerotypos-found
0c1df3577e Fix typo: a --> an, an --> a. 2015-12-17 15:10:25 +09:00
Brian Gesiak
e3ef832e35 [docs] More documentation for lit substitutions
Add explanations for lit substitutions marked as "FIXME" in the testing
documentation.

- Place all `%target-*` substitutions in the same section of the
  documentation.
- Remove substitutions that are no longer available or in use, such as
  `%llvm-opt` and `%leaks-runner`.
- Use uniform spacing between all substitutions bullet points.
2015-12-10 20:50:14 -05:00
Steve Moser
95a7a036cc Fix typos 2015-12-03 13:00:30 -05:00
Dmitri Gribenko
4f8773f40e Add a test feature 'swift_ast_verifier' 2015-11-30 21:07:13 -07:00
David Farler
e2734bd92f Add missing docs/Testing.rst
rdar://problem/23359113
2015-11-02 13:54:34 -08:00