Commit Graph

581 Commits

Author SHA1 Message Date
Michael Gottesman
6e20a6da44 [integration-tests] Specify path to the llvm bin dir instead of filecheck itself.
We can infer FileCheck's path from the llvm bin dir so there is no change today.
In the future though this will enable us to use other llvm tools to "poke" at
the produced snapshots for verification purposes.

rdar://39456714
2018-04-22 15:26:20 -07:00
Davide Italiano
36f968d9ad [build-script] Disable watchpoint testing in lldb.
Stopgap solution until we have an option we can pass to the
bots. Hopefully will make the bots green again.
2018-04-05 17:36:39 -07:00
Adrian Prantl
c35d00f193 build-script / lldb: rename SWIFTCC -> SWIFTC 2018-03-23 10:55:45 -07:00
Jonas Devlieghere
50f26b58f9 [build-script] Don't set env variables when using lldb-dotest
We already configure lldb-dotest with the swift compiler. This patch
does the same for the path to the swift libraries.
2018-03-21 09:58:54 -07:00
David Zarzycki
dc22a4d54b [build-script] Track underlying CMake/lit changes 2018-03-21 06:47:37 -04:00
Jonas Devlieghere
67cd3c490a [build-script] Re-introduce change to run lldb tests with lldb-dotest 2018-03-20 12:29:29 -07:00
Vedant Kumar
c1a34be32f [build-script] Back out change to run lldb tests with lldb-dotest
lldb-dotest does not forward the arguments from DOTEST_EXTRA properly.
For now, just build the lldb-dotest target to ensure the cmake build has
the right dependencies built. Invoke dotest.py manually as before.
2018-03-19 20:32:10 -07:00
Vedant Kumar
cf6bb76f31 [build-script] Use lldb-dotest when testing lldb on Linux
... and pass the build directory explicitly, so the bot knows where to
look to package up test results.
2018-03-19 17:49:32 -07:00
Davide Italiano
694597d5fc Revert "[build-script] Disable watchpoint testing in lldb"
This reverts commit 4858cf691e
as it breaks the lldb bots.
2018-03-19 10:54:27 -07:00
Slava Pestov
fbdd36cda8 Merge pull request #15319 from slavapestov/remove-disable-resilience
Remove build-script flag to disable resilience
2018-03-16 20:37:29 -07:00
Slava Pestov
694fcddf4e Remove build-script flag to disable resilience 2018-03-16 19:56:17 -07:00
Vedant Kumar
4858cf691e [build-script] Disable watchpoint testing in lldb 2018-03-16 18:00:38 -07:00
Vedant Kumar
ac547c649f [build-script] cmake: Use lldb-dotest to drive lldb testing
Using lldb-dotest to drive testing solves the short-term problem of
there being missing test dependencies when we invoke dotest.py for cmake
builds.

Long term, we really want to delete as much lldb-specific logic from
build-script as possible and replace all of it with a single call to
lldb-dotest.

Even with this first cut, there are some nice simplifications
(build-script no longer needs to know how to find an out-of-tree
debugserver, etc).
2018-03-16 16:43:43 -07:00
Vedant Kumar
edf4681fd5 Merge pull request #15290 from vedantk/asserts
build-script: Implement support for --(no-)lldb-assertions
2018-03-16 12:33:36 -07:00
David Zarzycki
900c01fb3c Merge pull request #15233 from davezarzycki/stop_forcing_libcxx_use
[build-script] Stop forcing the use of libcxx
2018-03-16 13:36:03 -04:00
Vedant Kumar
9db99a0a24 build-script: Implement support for --(no-)lldb-assertions
* LLDB assertions are on by default, like swift assertions

* LLDB assertions can be enabled/disabled globally with the --assertions
  and --no-assertions options

Partially addresses: rdar://38524846
2018-03-15 20:45:02 -07:00
Vedant Kumar
7adb7a8eff Re-enable the full lldb test suite for non-smoke-test jobs
The lldb bots should run the full lldb test suite, not just the tests
reserved for pull-request testing.

This does not affect PR testing.

rdar://38462589
2018-03-15 18:13:21 -07:00
David Zarzycki
b6c3021ed1 [build-script] Stop forcing the use of libcxx
Any C++ standard library is good enough these days.
2018-03-14 18:04:34 -04:00
Vedant Kumar
950b97a327 [build-script] Pass --out-of-tree-debugserver to lldb tests
We need this flag to tell the test harness to skip certain tests.
2018-03-14 12:35:29 -07:00
Vedant Kumar
267de6e2e1 [build-script] Support --lldb-test-swift-only=0
Make it possible to run the full lldb test suite through build-script
again.
2018-03-14 10:58:06 -07:00
Slava Pestov
de4f1f8a66 Re-enable resilience for stdlib and overlays 2018-03-12 15:44:07 -07:00
eeckstein
cc983a7afc Revert "Re-enable resilience for stdlib and overlays" 2018-03-12 10:24:33 -07:00
Slava Pestov
b758621ed4 Re-enable resilience for stdlib and overlays 2018-03-10 00:44:40 -08:00
swift-ci
d75d744472 Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition 2018-03-08 16:38:26 -08:00
Ankit Aggarwal
b3b24eb928 [build-script] Add plumbing for llbuild assertions
This adds two flags to the build script to enable/disable assertions in
llbuild: --llbuild-assertions, --no-llbuild-assertions

The default value is taken from the global assertions flag.
2018-03-08 16:22:40 -08:00
swift-ci
44761ddc84 Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition 2018-03-06 13:38:19 -08:00
Ankit Aggarwal
4a988dc0c4 [build-script] Disable building llbuild Swift bindings
The CMake support in llbuild is finding the compiler in the system
instead of the build products. This causes build errors if Swift is old
on a system.
2018-03-06 12:27:37 -08:00
Adrian Prantl
13a228e98a build-script: pass the LLDB_INCLUDE_TESTS variable through to LLDB 2018-03-05 15:23:23 -08:00
swift-ci
a103411dd3 Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition 2018-03-04 17:18:15 -08:00
swift-ci
0c1c6d89c1 Merge pull request #14969 from gonzalolarralde/swift-android-arch-variable 2018-03-04 17:06:43 -08:00
swift-ci
06ad3a0f5a Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition 2018-03-04 10:57:58 -08:00
Gonzalo Larralde
13cf3095b7 Replace incorrect HOST variable for the expected hardcoded arch 2018-03-04 13:32:19 -03:00
Fumiya Nakamura
f902f5fa05 [SR-1046] Pass lit path argument to xctest explicitly
Resolve https://bugs.swift.org/browse/SR-1046
2018-03-03 15:28:41 +09:00
Adrian Prantl
0252cb8835 build-script: Pass --build-dir to LLDB's dotest.py 2018-02-28 18:58:05 -08:00
Saleem Abdulrasool
420328b886 Merge pull request #14728 from compnerd/icu-arch
build: explicitly state arch for ICU
2018-02-28 10:21:08 -08:00
Nathan Lanza
4b8d4d9640 Add a SWIFT_BUILD_DIR variable to pass as an arugment to xctest/build_scripy.py 2018-02-24 21:27:58 -08:00
Davide Italiano
fed7aedf45 [lldb] Run the lit-style checks as part of --test for lldb.
We're growing this set, so it makes sense to run them now.
2018-02-21 13:06:40 -08:00
Saleem Abdulrasool
e77d4c7c98 build: explicitly state arch for ICU
This is needed to support cross-compilation on targets which do not
support FAT binaries (i.e. non-MachO targets).  The primary user of this
functionality right now is Windows, but this support is needed for Linux
and android as well.
2018-02-19 23:27:54 -08:00
adrian-prantl
05ecc3b766 Merge pull request #14715 from adrian-prantl/36663932
build-script: Pass path to just-built libddispatch and Foundation to dotest.py
2018-02-19 15:45:52 -08:00
Adrian Prantl
5ccb4f797e build-script: Pass path to just-built libddispatch and Foundation to dotest.py
rdar://problem/37354542
2018-02-19 11:35:47 -08:00
Davide Italiano
d2a23d9f9c [build-script] Re-enable lldb unit tests in PR testing.
This have been disabled because they were flakey, but now we
should have fixed the issues (or if there's something outstanding,
well, it's the right time to fix).

This is getting more important as we want to increase the set
of `lit/` or `unittest`-style testcases.
2018-02-19 11:28:18 -08:00
Davide Italiano
7503b1eb90 [testsuite] Run only the swift tests for lldb. 2018-02-11 14:03:35 -08:00
Ankit Aggarwal
db1c67334b [build-script-impl] Enable llbuild's Swift bindings
This is no longer a dependency problem because llbuild now builds after
Swift.
2018-02-10 21:44:31 -08:00
Vedant Kumar
4d5684ba0b [build-script] Disable lldb unit tests in PR testing
There is some unresolved flakiness with the unit tests on Linux, which
we don't want interfering with PR testing. See:
https://github.com/apple/swift-lldb/pull/306
2018-02-06 10:07:54 -08:00
Vedant Kumar
10fedbea03 [build-script] Use ${NINJA_BIN} instead of ninja
build-script shouldn't assume ninja is in the system path.
2018-02-02 18:17:41 -08:00
Ross Bayer
84d67961e9 Converted calls to 'sh' into bash calls that use process substitution, which should avoid the 'Argument list too long' error that's been seen on a few CI jobs. (#14367) 2018-02-02 16:38:33 -08:00
Vedant Kumar
85fe1257f9 [build-script] Specify the lldb debugserver explicitly
The CMake build doesn't copy or symlink the system debugserver into its
local build when --lldb-use-system-debugserver is specified, nor should
it IMO. Instead, the CMake build's test targets explicitly specify the
server to use. Since we're not using one of those targets in
build-script, we should also specify the server explicitly.
2018-02-01 15:27:23 -08:00
Vedant Kumar
0a46ed5f61 [build-script] Run lldb tests for Swift support per-commit
- Side-step code signing issues by using the system debug server

- Skip testing categories that add minimal coverage-per-unit-time

- Only enable testing from the whitelisted `swiftpr` category

rdar://35534424

We can't use CMake to build lldb on the bots until the bots upgrade to
CMake >= 3.7: r://37130314.
2018-02-01 15:27:23 -08:00
Vedant Kumar
fa161f7c99 [build-script] Don't disable modules when ASan is enabled
In the past, we needed to disable building swift with -fmodules because
the module caching logic ignored sanitizer flags (rdar://28356072).

This is fixed now, so let's remove the workaround.
2018-01-31 23:23:37 -08:00
Vedant Kumar
76edff5ef8 [build-script] Teach cmake to build the lldb framework
The lldb framework contains modules which the debugger needs.

rdar://36835403
2018-01-31 14:26:10 -08:00