aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test
Commit message (Collapse)AuthorAge
* Refactor UnixGlob by consolidating the context of a glob subtask into a ↵Gravatar Nathan Harmata2016-06-07
| | | | | | | GlobTaskContext object. Also dedupe identical recursive calls that arise from our naive implementation of the glob algorithm. -- MOS_MIGRATED_REVID=124159729
* Remove the dead UnixGlob#Builder#addExcludes and move some existing tests ↵Gravatar Nathan Harmata2016-06-07
| | | | | | | around so that we still have good test coverage for 'excludes' in globs. -- MOS_MIGRATED_REVID=124152499
* 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
* Skylark: callback functions can now explicitly specify their required ↵Gravatar Florian Weikert2016-06-06
| | | | | | | | | | | | | | | | | | | attributes as parameters, without using an attribute_map. As a result, users can now define def _callback(some_attribute): return do_something(some_attribute) instead of def _callback(attr_map): return do_something(attr_map.some_attribute) The legacy version with an attribute map is going to be deprecated in a future change. -- MOS_MIGRATED_REVID=124116923
* 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
* Make a 'did you mean' suggestion when referencing a non-existent label.Gravatar Laurent Le Brun2016-06-06
| | | | | | | It works for both labels on the command-line and labels in BUILD files. -- MOS_MIGRATED_REVID=123967347
* 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
* Delete the legacy global function 'provider'.Gravatar Laurent Le Brun2016-06-03
| | | | | | | | | RELNOTES: global function 'provider' is removed from .bzl files. Providers can only be accessed through fields in a 'target' object. -- MOS_MIGRATED_REVID=123956571
* Add resource_jar to android_studio_info.proto.Gravatar Googler2016-06-03
| | | | | | | | | The IDE currently extracts these from the output jars by a fragile string comparison. This will allow the IDE to do so more robustly (eg. in case the resource jar output is renamed). -- MOS_MIGRATED_REVID=123939803
* Add support for more augmented-assignment operators.Gravatar Googler2016-06-03
| | | | | | | | | based on my limited understanding of python syntax, the only things we don't support is //= and **=, but it looks like skylark doesn't support the corresponding infix operators. RELNOTES[NEW]: add support for the '-=', '*=', '/=', and'%=' operators to skylark. Notably, we do not support '|=' because the semantics of skylark sets are sufficiently different from python sets. -- MOS_MIGRATED_REVID=123889776
* Add support for an "inclusion filter" to DexMapper toolGravatar Googler2016-06-03
| | | | | -- MOS_MIGRATED_REVID=123887669
* experimental UI: when showing the last test, color-code its stateGravatar Klaus Aehlig2016-06-03
| | | | | | | | | | | The experimental UI also keeps track, in the progress bar, of the last test that completed. When using curses, use colors to indicate whether the test passed or not. -- Change-Id: Iaa01a773c3bbf534692ed21dd420596cb63e2585 Reviewed-on: https://bazel-review.googlesource.com/#/c/3752 MOS_MIGRATED_REVID=123871492
* Add java_toolchain to IDE aspect output.Gravatar Googler2016-06-02
| | | | | -- MOS_MIGRATED_REVID=123858617
* Rollback of commit 4ab4f05a8cbbaa4b7d938d1d305961fe95a5416c.Gravatar Tobias Werth2016-06-02
| | | | | -- MOS_MIGRATED_REVID=123851529
* Pass --ios_sdk_version to more of bazel_apple_tests.Gravatar Dmitry Lomov2016-06-02
| | | | | | | Fixes #1329. -- MOS_MIGRATED_REVID=123843592
* Dynamic configurations: trim top-level targets, too.Gravatar Greg Estren2016-06-02
| | | | | | | | | | | | | | | | | | | | | | | Right now, configuration trimming happens in ConfiguredTargetFunction.computeDependencies. This means only the deps of other targets get trimmed. With this change, every ConfiguredTarget gets its configuration accurately trimmed, regardless of where it comes from or what it's used for. In practice, there could still be other code paths that instantiate ConfiguredTargetValue.key without pre-trimming. We'll have to tackle those as we hit them. Also cleaned up some symbol naming in BuildView.update to try to make the logic flow clearer. TESTED: BuildViewTest#testNewActionsAreDifferentAndDontConflict now passes with dynamic configs (among others) -- MOS_MIGRATED_REVID=123807892
* Add a SpellChecker class with edit distance function.Gravatar Laurent Le Brun2016-06-01
| | | | | | | This will be used later to detect typos and provide suggestions. -- MOS_MIGRATED_REVID=123761611
* If an action_config is given for a particular type of link action, use that ↵Gravatar Cal Peyser2016-06-01
| | | | | | | | | action_config to configure the build. Otherwise, revert to hard-coded behavior. This change is designed to provide backwards-compatible support for crosstools that describe platform-specific linking semantics. -- MOS_MIGRATED_REVID=123748494
* Replace Constants.PRODUCT_NAME with a startup option --product_name=bazel and Gravatar Luis Fernando Pino Duque2016-05-31
| | | | | | | | | | | (finally) delete Constants.java. For bazel the file Constants.java is the only source of src/main/java/com/google/devtools/build/lib:common and since it was exporting guava then many dependencies needed to be fixed. -- MOS_MIGRATED_REVID=123648270
* Make Android rules/tests refer to the correct runfiles pathsGravatar Kristina Chodorow2016-05-31
| | | | | | | Fixes the android part of #1316. -- MOS_MIGRATED_REVID=123644129
* Remove the --use_isystem_for_includes option.Gravatar Lukacs Berki2016-05-31
| | | | | | | RELNOTES: The --ues_isystem_for_includes command line option is not supported anymore. -- MOS_MIGRATED_REVID=123617061
* Roll forward commit 8375185ee11d573562f98de14bed79a77fcfd728.Gravatar Googler2016-05-30
| | | | | | | Consider /src/ in the path when locating the java root directory. -- MOS_MIGRATED_REVID=123469898
* 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
* Remove now dead class LoadingProgressReceiverGravatar Klaus Aehlig2016-05-30
| | | | | | | | | | | With the change of reporting progress during loading and analysis by a custom package tracking class, the LoadingProgressReceiver is not used anywhere anymore. Threfore, remove it. -- Change-Id: Ia88d2d5608dea1bb395cd5b3c3e12c16200ecb41 Reviewed-on: https://bazel-review.googlesource.com/#/c/3701 MOS_MIGRATED_REVID=123410961
* 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
* Force paths to be relative when archives are decompressedGravatar Kristina Chodorow2016-05-27
| | | | | -- MOS_MIGRATED_REVID=123350350
* Allow AQV users to inject arbitrary handling of classified errors.Gravatar Nathan Harmata2016-05-27
| | | | | -- MOS_MIGRATED_REVID=123347295
* 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
* Change name of intellij_info output to intellij-build.txt.Gravatar Googler2016-05-27
| | | | | | | Aesthetic change only. Safe because no one yet consumes this. -- MOS_MIGRATED_REVID=123279233
* Add EvaluationResultSubject#hasReverseDepsInGraphThat method.Gravatar Janak Ramakrishnan2016-05-27
| | | | | -- MOS_MIGRATED_REVID=123251531
* Allow BlazeModules to expose a helper that PackageFactory will use for ↵Gravatar Nathan Harmata2016-05-27
| | | | | | | creating fresh Package instances. Also make a few Package methods public. -- MOS_MIGRATED_REVID=123247246
* 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
* Enable interleaved loading & analysis by default.Gravatar Ulf Adams2016-05-25
| | | | | | | | | Fix a bunch of tests to assume interleaving instead of disrete phases. In our testing, this improves loading+analysis times by ~30%. -- MOS_MIGRATED_REVID=123203752
* Better error message when combine //visibility:(public|private) with other ↵Gravatar Yue Gan2016-05-25
| | | | | | | forms. -- MOS_MIGRATED_REVID=123201777
* Remove Package.LegacyBuilder (unneeded as of commit ↵Gravatar Nathan Harmata2016-05-25
| | | | | | | 3a95f353704dc2f7061e2c0786c2459ac1db0fd1). -- MOS_MIGRATED_REVID=123107954
* Introducing PopulateTreeArtifactAction, an Action that populates a ↵Gravatar Rumou Duan2016-05-25
| | | | | | | | | | | TreeArtifact with the content of an archive file at execution time by: 1. Reads the archive manifest file on disk. 2. Executes a spawn that expands the archive manifest entries of the archive file into/under the TreeArtifact. 3. Registers the manifest file entries as TreeFileArtifacts of the TreeArtifact. -- MOS_MIGRATED_REVID=123107850
* experimental UI: group test actions by labelGravatar Klaus Aehlig2016-05-25
| | | | | | | | | | | When reporting about actions that are still running, groups those belonging to the same test. In this way, more useful information can be presented in the progress bar, instead of wasting a whole line for a single shard. -- Change-Id: Id1f5a0595767906d6a75f6533be54f3c262ddd67 Reviewed-on: https://bazel-review.googlesource.com/#/c/3646 MOS_MIGRATED_REVID=123097744
* 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: Improve verbose messages when workers are restarted. Prevent ↵Gravatar Philipp Wollermann2016-05-24
| | | | | | | | | | | | | | | | | killing of broken workers in the background, when no build is currently running, because we can only alert the user about what's going on while a build is currently running. If you're a developer, this will probably help you when debugging a new worker. Some messages you might see with --worker_verbose specified: INFO: Worker configuration has changed, restarting worker pool... WARNING: Javac worker (id 6) can no longer be used, because its files have changed on disk [13ce6c10546243b6b4ea2334dd3f8a55705e4c078cedd0e746d7ad7cee082e9a -> 9731223c50bab5c1f20d60d1a4967cf2726840727b6a639b6f6425547a9b4a10]. WARNING: Javac worker (id 4) can no longer be used, because its process terminated itself or got killed. -- MOS_MIGRATED_REVID=123093071
* 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
* Make the parser handle CRLF correctly.Gravatar Lukacs Berki2016-05-24
| | | | | | | Fixes #1300 . -- MOS_MIGRATED_REVID=123090421
* Use a non-side-effectful PackageLookupValue#packageExists implementation for ↵Gravatar Nathan Harmata2016-05-24
| | | | | | | | | //external package lookups, but keep the current (incorrect) semantics for unsuccessful //external package lookups. Refactor some users of the old WorkspacePackageLookupValue. -- MOS_MIGRATED_REVID=123034174