Commit Graph

968 Commits

Author SHA1 Message Date
Saleem Abdulrasool
bcbe16057f build: update the build-script-impl to limit android to ARM
Update the build-script-impl to only build the armv7 variant by default.  This
should prevent the community buildbots from failing which may not have the arm64
ICU available.
2018-09-24 10:00:27 -07:00
Saleem Abdulrasool
30a4853177 build: remove SWIFT_ANDROID_SDK_PATH
The path to the SDK can be computed from the NDK.  Do so to reduce the
parameters needed to pass to CMake.  More importantly, this will allow building
with multiple architectures simultaneously.
2018-09-24 09:54:45 -07:00
Saleem Abdulrasool
f8d27456ec Merge pull request #17180 from compnerd/xctest-cmake
build: switch to CMake for XCTest
2018-09-21 10:01:50 -07:00
Adrian Prantl
398856557e build-script: Add -t (tracing) to the dotest args. 2018-09-20 17:35:52 -07:00
Vedant Kumar
1cf16ab1f1 [build-script] Teach the lldb-xcode build how to find FileCheck (#19400) 2018-09-20 11:59:32 -07:00
mishal_shah
e14757e91e Update xcodebuild command for playground to use 'call' to support --dry-run in build-script 2018-09-19 15:30:55 -07:00
Adrian Prantl
144402631a build-script / LLDB: Stop disabling dwarf tests.
<rdar://problem/42977904>
2018-09-19 10:45:59 -07:00
Adrian Prantl
52bb02145d build-script: skip dwarf tests instead of dsym tests in LLDB testsuite
This is closer to what is actually happening.
2018-09-18 16:29:09 -07:00
Adrian Prantl
2dc6c3d9f7 build-script: Remove obsolete LLDB --skip-category.
<rdar://problem/42977904>
2018-09-18 09:24:38 -07:00
Alex Hoppen
8a6030b96b Add build-script infrastructure to build swiftSyntax in its own repository 2018-08-30 11:46:22 -07:00
Saleem Abdulrasool
519595dbb9 build: switch to CMake for XCTest
Now that XCTest has a CMake build system, use that for the non-Darwin
builds.  This sets the stage for building Foundation with CMake.
2018-08-29 10:23:07 -07:00
Saleem Abdulrasool
df208b370c build: honour the libdispatch build type
When configuring libdispatch as part of the swift build on Linux with SourceKit
enabled, we would default to a release build.  However, that results in known
leaks being reported with LSAN when building with a debug standard library.
Pass along the `LIBDISPATCH_BUILD_TYPE` into the CMake build and map that to the
CMAKE_BUILD_TYPE for the project.
2018-08-22 11:16:03 -07:00
swift-ci
26b972e2f7 Merge pull request #18653 from JohnCoatesOSS/pkg_config-clobber-fix 2018-08-20 12:29:49 -07:00
Adrian Prantl
f3ca06342d Remove accidentally committed debugging code 2018-08-20 10:27:38 -07:00
Adrian Prantl
2f33dfa5e6 Add build-script support for the Swift LLDB backwards-compatibility tests.
rdar://problem/36031890
2018-08-17 17:35:11 -07:00
Vedant Kumar
b98667dc55 [build-script] Disable the 'swiftpr' lldb test whitelist (#18714)
This change makes the bots run all swift lldb tests during PR testing
instead of only running a whitelisted set of tests. This will increase
coverage of lldb during PR testing and catch breaking changes earlier.

When this change lands, it's possible that flaky lldb tests may block
swift PRs from landing. We plan on filing bugs for these tests, skipping
them, and re-enabling them as soon as possible.

rdar://42984532
2018-08-14 16:51:14 -07:00
John Coates
d60ce235d9 [build-script] Don't clobber PKG_CONFIG_PATH
Overwriting this variable can cause the build to break when pkg-config tries to find packages that aren't ICU. Prepending the ICU path so it takes precedence is a less fragile solution.
2018-08-11 21:19:31 +03:00
Fred Riss
afba7cd2c0 Force teh deployment target of LLDB to 10.13
instead of infering 10.14 from the used SDK.

rdar://43011380
2018-08-09 09:51:52 -07:00
Jonas Devlieghere
1b6d8d0318 [build-script] Generate JUnit results from lit for LLDB
By switching to lit to run the LLDB tests we need to specify where to
generate the results.
2018-08-08 08:29:39 -07:00
Vedant Kumar
f2977cfdde [build-script] Build LLDBUnitTests before running lldb's lit suite
This change increases test coverage of lldb in its cmake configuration
by ensuring that its unit tests are built and ready to run. There is
similar logic to build the unit tests for the xcodebuild configuration.
2018-07-31 17:43:29 -07:00
Davide Italiano
7bd1a0321d [build-script] Pass -rpath to dotest on Linux.
Fixes a couple of test failures on master-next.
2018-07-31 18:20:47 +00:00
swift-ci
fde64d91a9 Merge remote-tracking branch 'origin/master' into master-next 2018-07-11 18:59:53 -07:00
Ankit Aggarwal
4c79a12d19 [build-script] Link llbuild with SwiftPM
Pass the neccessary flags to llbuild with SwiftPM
2018-07-11 17:12:34 -07:00
swift-ci
9fbd91e8ba Merge remote-tracking branch 'origin/master' into master-next 2018-07-09 15:09:41 -07:00
David Hart
335290e397 Install llbuild swift bindings 2018-07-07 13:55:03 +02:00
swift-ci
68f92a5cc0 Merge remote-tracking branch 'origin/master' into master-next 2018-07-05 16:20:09 -07:00
Jonas Devlieghere
16e0631aab [build-script] Pass dotest arguments to lit
Pass the dotest arguments to lit and run the full test suite.
2018-07-05 02:45:42 -07:00
Jonas Devlieghere
922ab4bbf4 [build-script] Don't run lit tests separately
With the recent changes upstream we use lit as the test driver for CMake
based builds. Instead of invoking lit and dotest separately, we need to
pass the dotest arguments to lit and have it take care of everything for
us.
2018-07-04 08:52:27 -07:00
Connor Wakamo
5d8b6ad926 [build-script] Updated build-script-impl to be able to run the tests for the new PlaygroundLogger.
Switched to using `build-for-testing`/`test-without-building` for the PlaygroundLogger tests.
The new PlaygroundLogger tests are now a proper XCTest unit test bundle, so it needs to be done this way (instead of building the test runner and then just invoking that).

This is part of <rdar://problem/37765445>.
2018-06-28 10:24:01 -07:00
Jordan Rose
87e9b85683 [test] Handle an Xcode path with spaces in it (#17161) 2018-06-12 18:21:45 -07:00
Mishal Shah
3f8ce7d2f9 Update master to build with Xcode 10 beta 1, OS X 10.14, iOS 12, tvOS 12, and watchOS 5 SDKs. 2018-06-04 23:14:19 -07:00
Michael Gottesman
62adeb6b9d [build-script] Add some sanity to how we trigger benchmarks being built.
Specifically:

1. SKIP_TEST_BENCHMARK => SKIP_TEST_BENCHMARKS

I looked for --skip-test-benchmark (notice no s) and SKIP_TEST_BENCHMARK. It
seems like it is dead, especially since we have --skip-test-benchmarks.

2. Remove the code that works around SKIP_TEST_BENCHMARK typo.
2018-05-30 14:22:23 -07:00
David Hart
196d79cc34 Merge pull request #15375 from hartbit/llbuild-swift-bindings
Enable building llbuild swift bindings
2018-05-06 18:11:06 +02:00
David Hart
859c68b676 Enable building llbuild swift bindings 2018-05-03 20:51:52 +02:00
Nathan Lanza
7429856034 Change various search and linker paths to account for changes in NDK16
ndk14 introduced "unified headers" which merged the headers for all
different API versions into one directory which effectively split the
"SWIFT_SDK_ANDROID_ARCH_${ARCH}_PATH" into two different directories.

Add include and library specific paths to various compilation and link
invocations across the Swift project to account for this change. Remove
some broken sysroot/sdk specific settings.
2018-05-02 14:18:11 -07:00
Mike Ash
82c4929395 [Runtime] Disable mangled name verification when running PlaygroundLogger tests.
rdar://problem/37551850
2018-04-27 17:15:50 -04:00
Mike Ash
91619c4cd0 [Runtime] Make mangled name roundtrip verification a soft failure. Disable it entirely when running tests and when bootstrapping swiftpm, for now.
rdar://problem/37551850
2018-04-27 10:09:06 -04:00
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