aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/shell
Commit message (Collapse)AuthorAge
* Shard bazel_apple_test into 3 countsGravatar Yun Peng2016-06-10
| | | | | | | -- Change-Id: I2f08a61c06a1a6fda6a8e30c347cca3336b01b95 Reviewed-on: https://bazel-review.googlesource.com/#/c/3780 MOS_MIGRATED_REVID=124544524
* Always register module map actions.Gravatar Dmitry Shevchenko2016-06-09
| | | | | | | | | | | | | * Makes it so module map generation action will be registered for all targets that should provide module maps. This allows other rules to depend directly on modulemap artifacts without turning on --experimental_objc_enable_module_maps for all builds. * Disabled module maps for apple_binary because of a bug. * objc_proto_library targets will register module map generation even with experimental union flag so that its modules can be imported by the dependent targets (even though the compilation is happening much later in the linking target). RELNOTES: -- MOS_MIGRATED_REVID=124386048
* Fixes test breakage on darwinGravatar Dmitry Shevchenko2016-06-08
| | | | | | | | Fixes #1343 due to missing iOS SDK version. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/1350 MOS_MIGRATED_REVID=124328836
* Create the output directory when invoking repository_ctx.download_and_extractGravatar Damien Martin-Guillerez2016-06-06
| | | | | | | Fixes #1172. -- MOS_MIGRATED_REVID=124122716
* repository_ctx.execute: execute from the external repository root and allow ↵Gravatar Damien Martin-Guillerez2016-06-06
| | | | | | | | | | to override the environment variables. Fixes #1130 Fixes #1242 -- MOS_MIGRATED_REVID=124118789
* Add uses_swift flag to the providers exported by swift_library.Gravatar Dmitry Shevchenko2016-06-06
| | | | | | | * This eliminates the need to put "dummy.swift" into objc_binary targets that depend on swift_library. -- MOS_MIGRATED_REVID=124015750
* Fix a typo in test log.Gravatar Dmitry Shevchenko2016-06-06
| | | | | -- MOS_MIGRATED_REVID=123988802
* Add @loader_path to -rpath for xctest targets.Gravatar Dmitry Shevchenko2016-06-06
| | | | | | | This fixes test timeouts when the app tested is using Swift. In theory this also prevents similar problems with any code that uses dynamic libs packaged in the IPA. -- MOS_MIGRATED_REVID=123976581
* Add test for --test_summary=detailed.Gravatar Han-Wen Nienhuys2016-06-03
| | | | | | | -- Change-Id: I86178005713ad80da365b96070794feeb9cc05ab Reviewed-on: https://bazel-review.googlesource.com/#/c/3751/ MOS_MIGRATED_REVID=123959813
* Pass --ios_sdk_version to more of bazel_apple_tests.Gravatar Dmitry Lomov2016-06-02
| | | | | | | Fixes #1329. -- MOS_MIGRATED_REVID=123843592
* Make Android rules/tests refer to the correct runfiles pathsGravatar Kristina Chodorow2016-05-31
| | | | | | | Fixes the android part of #1316. -- MOS_MIGRATED_REVID=123644129
* Add exoblaze and bazel tests for apple_binaryGravatar Chris Parsons2016-05-30
| | | | | -- MOS_MIGRATED_REVID=123441206
* Move xcode-locator into src/tools packages, defining it as a target under ↵Gravatar Chris Parsons2016-05-30
| | | | | | | @bazel_tools. Currently the tool still remains in embedded_binaries, but we will migrate away from that: Eventually it can simply live just under @bazel_tools. -- MOS_MIGRATED_REVID=123436822
* Update swift_library logic for module name generationGravatar Dmitry Shevchenko2016-05-30
| | | | | | | | * Modules are now named after its full target path by default. * module_name attribute can be used to override this logic. -- MOS_MIGRATED_REVID=123422704
* experimental UI: track touched packages during loading/analysisGravatar Klaus Aehlig2016-05-30
| | | | | | | | | | | | | | To give a better understanding of which packages are on the critical path during loading and analysis, provide information in the same way as during execution: show the earliest started, but not yet completed package. As not all packages looked at during the analysis phase are reported to the progress receiver, use a custom class to aggregate those data. -- Change-Id: I03c25efdecb4124e1bc06fce8be9175dc56b5500 Reviewed-on: https://bazel-review.googlesource.com/#/c/3700 MOS_MIGRATED_REVID=123408689
* Add support for importing frameworks to swift_library.Gravatar Dmitry Shevchenko2016-05-27
| | | | | | | | | | * Adds a way to read FRAMEWORK_ keys from ObjcProvider and provide outputs as -F args to the compiler * Adds a sample dynamic framework for testing RELNOTES: swift_library is now able to import framework rules such as objc_framework. -- MOS_MIGRATED_REVID=123337139
* Implement zip file symlink supportGravatar Kristina Chodorow2016-05-27
| | | | | | | | | | Fixes #1281. RELNOTES: Symlinks in zip files are now unzipped correctly by http_archive, download_and_extract, etc. -- MOS_MIGRATED_REVID=123233604
* Add support for module maps to swift_libraryGravatar Dmitry Shevchenko2016-05-27
| | | | | | | | | * General cleanup of the rule code. * Adds a way to use modulemaps to import Objective-C code. * Adds a way to pass framework flags to the compiler and adds the developer frameworks dir from Xcode as one. -- MOS_MIGRATED_REVID=123217120
* Fixes the assert_one_of failure message, to print the correct expected values.Gravatar Anastasios Kakalis2016-05-27
| | | | | -- MOS_MIGRATED_REVID=123214350
* Increase the size of //src/test/shell/bazel:local_repository_test_jdk8Gravatar Damien Martin-Guillerez2016-05-27
| | | | | | | Fixes #1298 -- MOS_MIGRATED_REVID=123208845
* Better error message when combine //visibility:(public|private) with other ↵Gravatar Yue Gan2016-05-25
| | | | | | | forms. -- MOS_MIGRATED_REVID=123201777
* workers: Make integration tests more robust. We no longer grep the process ↵Gravatar Philipp Wollermann2016-05-25
| | | | | | | list for running / not running workers, which caused the tests to be very flaky, but instead test what we're interested in by checking the generated output and the (recently improved) verbose log messages. -- MOS_MIGRATED_REVID=123093910
* workers: When a WorkerFactory is instantiated, first remove old worker logs ↵Gravatar Philipp Wollermann2016-05-24
| | | | | | | that belong to a prior running Bazel server. -- MOS_MIGRATED_REVID=123092141
* libtool wrapper script to isolate the unfortunate hacks we must make to get ↵Gravatar Chris Parsons2016-05-24
| | | | | | | around apple's buggy libtool tool -- MOS_MIGRATED_REVID=123024674
* Uses "zip -@" to avoid arguments with too many files. Fixes #1303.Gravatar Yue Gan2016-05-23
| | | | | -- MOS_MIGRATED_REVID=122990255
* Use setLoadingOrWorkspacePhase instead of setLoadingPhase where relevant,Gravatar Damien Martin-Guillerez2016-05-23
| | | | | | | | | | | commit 3fedf9e618cbce3dbdd00559b2de0bb8e2d43171 introduced the distinction between the loading phase and the workspace phase. This check broke the use of native.existing_rule(s) in skylark remote repository, added a regression test for it. Fixes #1277 -- MOS_MIGRATED_REVID=122988569
* Make alias targets keep their own configuration.Gravatar Lukacs Berki2016-05-23
| | | | | | | | | This prevents the case of a rule acquiring the null configuration in case the alias points to an input file. Which, in turn, makes "bazel build" work for these targets. The reason it breaks is that TargetCompletionValue instances are created from the associated ConfiguredTarget in SkyframeExecutor#buildArtifacts(), which means that if the configurations do not match, TargetCompletionFunction requests a different ConfiguredTargetValue than it was created from. Fixes #1297. -- MOS_MIGRATED_REVID=122973526
* Remote worker to listen to a specific port for HazelcastGravatar Alpha Lam2016-05-20
| | | | | | | | | | | | This change allows starting remote worker with an embedded hazelcast server that listens to a specific port. This allows test to run reliably. Fixes #1271. -- Change-Id: I0bb36af5837f83cad3d76b8acb50f89cd599ee87 Reviewed-on: https://bazel-review.googlesource.com/c/3650/ MOS_MIGRATED_REVID=122829898
* Fix #837: worker_verbose flag has no effect.Gravatar Philipp Wollermann2016-05-19
| | | | | | | Due to reusing an old Reporter instead of grabbing the current one for each build, verbose messages were lost and not printed to the console. Also adds a test for this feature. -- MOS_MIGRATED_REVID=122639383
* Add || true to increment so test doesn't exit earlyGravatar Kristina Chodorow2016-05-17
| | | | | | | | | The test is run with -e, so when ((wait_seconds++)) returns 1, it exits. This fixes #1271. -- MOS_MIGRATED_REVID=122567259
* Make the rule in the workspace package reference the correct Package object.Gravatar Lukacs Berki2016-05-17
| | | | | | | Fixes #1228. -- MOS_MIGRATED_REVID=122511655
* Export Objective-C header from swift_library.Gravatar Dmitry Shevchenko2016-05-17
| | | | | | | | | * Switches the rule to output to genfiles/, this makes C-headers it produces importable by depending targets. RELNOTES: swift_library now generates an Objective-C header for its @objc interfaces. -- MOS_MIGRATED_REVID=122448949
* Trim whitespace off of wc resultGravatar Kristina Chodorow2016-05-16
| | | | | | | Apparently Darwin's wc has a slightly different format. Fixes #1267. -- MOS_MIGRATED_REVID=122419982
* Prototype for remote execution using gRPC and Netty transportGravatar Alpha Lam2016-05-16
| | | | | | | | | | | | | | | | | | | This change implements a remote worker that executes work (build or test). Bazel will be a client of the remote worker. The communication uses gRPC and Netty as transport. A single remote worker has little advantage over running locally. Additional infrastructure is needed to run workers on multiple machines and distributing the work among them. This change provides the basic building blocks for a distributed build farm. (Mainly reformatting changes compared to https://bazel-review.googlesource.com/3110, some BUILD file changes.) -- Change-Id: If7d285444ef42a6823b59443af17b61b04b9ce6a Reviewed-on: https://bazel-review.googlesource.com/#/c/3110/ MOS_MIGRATED_REVID=122376861
* Improve pass-through during buildGravatar Klaus Aehlig2016-05-13
| | | | | | | | | | | | | If tests are run with --test_output=streamed, output has to be passed through before the end of the (overall) build. In this situation, enforcing a line-end to redraw the status bar messes up the output that is streamed through. Therefore, buffer stdout/stderr to full lines and pass them through without extra newlines added. -- Change-Id: I52d5dfbd1cb30a6ce2d7d2fd34658a606abcc277 Reviewed-on: https://bazel-review.googlesource.com/#/c/3620 MOS_MIGRATED_REVID=122248012
* Support NDK r11 in bazelGravatar Alex Humesky2016-05-13
| | | | | | | RELNOTES: Added supported for Android NDK revision 11 -- MOS_MIGRATED_REVID=122181286
* Allow modules to inject a custom AttributeContainer.Gravatar Janak Ramakrishnan2016-05-12
| | | | | | | | | | | | | | | | | | | | | | | | | Rollback of commit cda4b4eae0c495a8f90f2a70a8db46e34062ee26. *** Reason for rollback *** Roll-forward with fixes (see ExternalPackageBuilder). *** Original change description *** Automated [] rollback of commit 178a3dfda8bf72abf22758597a90a4afb8eed181. *** Reason for rollback *** Broke ci.bazel.io. See #1234. *** Original change description *** Allow modules to inject a custom AttributeContainer. -- MOS_MIGRATED_REVID=122100417
* Add a simple e2e app build test for swift_library.Gravatar Dmitry Shevchenko2016-05-12
| | | | | -- MOS_MIGRATED_REVID=122099968
* Remove rust, jsonnet, scala and closure from the Bazel repositoryGravatar Damien Martin-Guillerez2016-05-09
| | | | | | | | Those rules were moved to, respectively, https://github.com/bazelbuild/rules_rust, https://github.com/bazelbuild/rules_jsonnet, https://github.com/bazelbuild/rules_scala, and https://github.com/bazelbuild/rules_closure. -- MOS_MIGRATED_REVID=121834063
* experimental_ui: when analyzing analyzing one target, show itGravatar Klaus Aehlig2016-05-09
| | | | | | | | | | | | In the progress bar of the experimental state tracker, when reporting that precisely one target is being analyzed, show that target. While there, also consistently switch to American spelling. -- Change-Id: Ib9027145aed69e757a7caf7076abdeb1c5ebeb30 Reviewed-on: https://bazel-review.googlesource.com/#/c/3583 MOS_MIGRATED_REVID=121833343
* Switch to using ../repo-name syntax for runfilesGravatar Kristina Chodorow2016-05-04
| | | | | -- MOS_MIGRATED_REVID=121475668
* Set the default workspace name to __main__Gravatar Kristina Chodorow2016-05-03
| | | | | | | | | | | | | See https://github.com/bazelbuild/bazel/wiki/Updating-the-runfiles-tree-structure for more details about this change. RELNOTES[INC]: Bazel will now default to using __main__ as the workspace name (instead of "", as previously) if a project does not provide a workspace name in the WORKSPACE file. The repository's runfiles will appear under x.runfiles/__main__/. -- MOS_MIGRATED_REVID=121376094
* Remove wrong test in rc_options_testGravatar Klaus Aehlig2016-05-02
| | | | | | | | | | | | | | | | The test_terminal_columns_default as part of the rc-options test incorrectly assumed that (in the standard UI) the default width for terminal columns should be long enough to not need line wrapping, even for a 32 character long label. However, the default value is 80, and another 37 characters quickly come together: 8 for the progress information ("[3 / 4] "), 23 for the activity ("Creating runfiles tree "), and, depending on the actual build, another couple of characters for the the path fragment (like "bazel-out/local_linux-fastbuild", which has 31 characters on its own). So remove that test based on wrong assumptions. -- Change-Id: I6019f8d30e774ade0340bcec8f7ddb3768068135 Reviewed-on: https://bazel-review.googlesource.com/#/c/3541 MOS_MIGRATED_REVID=121262554
* Set Bazel's workspace nameGravatar Kristina Chodorow2016-04-27
| | | | | | | | | | RELNOTES: Bazel's workspace name is now io_bazel. If you are using Bazel's source as an external repository, then you may want to update the name you're referring to it as or you'll begin seeing warnings about name mismatches in your code. -- MOS_MIGRATED_REVID=120926179
* Add workspace name to runfiles cache invalidation criteriaGravatar Kristina Chodorow2016-04-27
| | | | | | | | This is needed to regenerate the runfiles under the right directory when the workspace name changes. -- MOS_MIGRATED_REVID=120918511
* Fix MSVC Windows testGravatar Yun Peng2016-04-26
| | | | | | | | | | | | The test failed because test-setup.sh trys to link tools/jdk/JavaBuilder_deploy.jar, which has already been moved to external. Removed unused setup in test-setup.sh -- Change-Id: Id47d34597834e26a0dbf694c72f9df540f94f468 Reviewed-on: https://bazel-review.googlesource.com/#/c/3466 MOS_MIGRATED_REVID=120811344
* Fix docs on test environment and add a testGravatar Kristina Chodorow2016-04-25
| | | | | | | Fixes #1126. -- MOS_MIGRATED_REVID=120707955
* Restrict execution of bound_targets_test in bazel to OS X only.Gravatar Cal Peyser2016-04-25
| | | | | | | Fixes #1183. -- MOS_MIGRATED_REVID=120701344
* Fixes the bazel_apple_testGravatar Dmitry Shevchenko2016-04-25
| | | | | | | | | | Instead of default SDK version, use currently installed one. Fixes #1184. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/1186 MOS_MIGRATED_REVID=120685979
* Add a Skylark rule to build Swift modules.Gravatar Dmitry Shevchenko2016-04-22
| | | | | | | | * Adds a swift_library rule that produces a (.a, .swiftmodule) pair. It can handle dependencies between modules and can be used as a dependency of objc_binary. * Does not work with Objective-C yet. -- MOS_MIGRATED_REVID=120578875