aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test
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
* Extract the @Param annotation from @SkylarkSignatureGravatar Damien Martin-Guillerez2016-06-10
| | | | | | | | The @SkylarkCallable annotation is very limited and to extend it it is best to share a similar API than the @SkylarkSignature annotation. -- MOS_MIGRATED_REVID=124473056
* Refactor cycle detection logic to handle dynamic configurations.Gravatar Greg Estren2016-06-09
| | | | | | | | | | | | | | | | | | | | | | | Currently, analysis-time cycle detection expects all cycles to come from ConfiguredTargetFunction. With dynamic configurations, ConfiguredTargetFunction calls out to TransitiveTargetFunction to figure out which configuration fragments its deps need. If there's a cycle between the current target and a dep, the dep's TransitiveTargetFunction fails, which the current cycle detection code can't handle. But even if it could handle it, since the failure occurs in the dep we'd get error messages like: "in cc_library rule //the:dep: cycle in dependency graph" instead of the expected: "in cc_library rule //the:top_level_rule: cycle in dependency graph" This used to not be a problem because loading-phase cycle detection caught the cycle before all this triggered. But interleaved loading and analysis removes that gate. Tested: BuildViewTest cycle detection tests with dynamic configurations turned on -- MOS_MIGRATED_REVID=124391277
* 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
* Provide means to clearly fail tests that fail because dynamic configsGravatar Greg Estren2016-06-09
| | | | | | | | | | don't yet support fragments from late-bound attributes. This is intended to extend to any other class of errors that can't already be centrally encoded somewhere in the production logic. -- MOS_MIGRATED_REVID=124384937
* 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
* Allow flags to be applied to an action using an action_config. A flag set onGravatar Cal Peyser2016-06-07
| | | | | | | | an action_config specifies no action, and is automatically applied to the action being configured. -- MOS_MIGRATED_REVID=124240929
* Implement missing IDE skylark aspect functionality.Gravatar Googler2016-06-07
| | | | | | | | * Support package manifest * Add android_resource support -- MOS_MIGRATED_REVID=124187461
* Skyframe changes to support SpawnActionTemplate.Gravatar Rumou Duan2016-06-07
| | | | | | | | 1. Adds ActionTemplateExpansion{Function, Value} for ActionTemplate expansion. 2. Changes ArtifactFunction to support evaluating TreeFileArtifacts and TreeArtifacts generated by ActionTemplate. -- MOS_MIGRATED_REVID=124160939
* 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