aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test
Commit message (Collapse)AuthorAge
* Remove nonexistent global variable from test.Gravatar Greg Estren2016-09-19
| | | | | -- MOS_MIGRATED_REVID=133395817
* Add a specialized TransitiveInfoProviderMap to map TransitiveInfoProviders ↵Gravatar Googler2016-09-19
| | | | | | | | | | | | by class. TransitiveInfoProviderMap enforces that the provider implements the interface it's keyed by and provides accessors the reduce the amount of casting. This in general reduces boilerplate throughout wherever TransitiveInfoProviders are mapped by their class. Also add shorthand for adding a provider where it only implements TransitiveInfoProvider once, reducing the redundant specification of the TransitiveInfoProvider class. Infer the class as the exclusive direct implementor of TransitiveInfoProvider to account for special cases like AutoValue and LicenseProvider. -- MOS_MIGRATED_REVID=133386336
* Increase test size to "large" for maven_test, experimental_ui_test and ↵Gravatar Philipp Wollermann2016-09-16
| | | | | | | ide_info_generation. -- MOS_MIGRATED_REVID=133374355
* Bazel shell utils: implement platform-independent md5.Gravatar Laszlo Csomor2016-09-16
| | | | | | | | | | | On Linux, the tool is called `md5sum`, on Darwin it's just `md5`, and their output is slightly different too. This commit implements a wrapper that selects the right tool for the platform. -- MOS_MIGRATED_REVID=133370990
* Open source stub_finds_runfiles_test.sh.Gravatar Tobias Werth2016-09-16
| | | | | -- MOS_MIGRATED_REVID=133359465
* Fix missing dependency.Gravatar Dmitry Lomov2016-09-16
| | | | | -- MOS_MIGRATED_REVID=133358757
* Deprecation warnings for deprecated syntaxGravatar Vladimir Moskva2016-09-16
| | | | | | | | | RELNOTES: Global varaiables HOST_CFG and DATA_CFG are deprecated in favor of strings "host" and "data. Argument `cfg = "host"` or `cfg = "data"` is mandatory if `executable = True` is provided for a label. -- MOS_MIGRATED_REVID=133285197
* Add support for aspects to attr.label() attributesGravatar Jon Brandvein2016-09-16
| | | | | | | | | Fixes #1739 RELNOTES: Add support for aspects to attr.label() attributes -- MOS_MIGRATED_REVID=133275712
* Index and slice calls are implemented as separate AST nodes rather than specialGravatar Vladimir Moskva2016-09-15
| | | | | | | function calls. -- MOS_MIGRATED_REVID=133259901
* Remove some more occurences of deprecated getExecRoot() callsGravatar Kristina Chodorow2016-09-15
| | | | | -- MOS_MIGRATED_REVID=133257532
* Bake in the product name into the StartupOptions classes.Gravatar Julio Merino2016-09-15
| | | | | | | | | | Now that we have gotten a StartupOptions class for each of the products we support, we can bake in the product name in each instance instead of passing it to the constructor. Helps with encapsulation and simplifies various instantiations of these classes. -- MOS_MIGRATED_REVID=133255854
* Fix the remote tests so that they are copied to the open-source code byGravatar Ola Rozenfeld2016-09-15
| | | | | | | merge-to-os-blaze. -- MOS_MIGRATED_REVID=133253934
* Implement `realpath(1)` using basic Bash utils.Gravatar Laszlo Csomor2016-09-15
| | | | | | | | | | | | | | | | | | | | Neither `realpath` nor `readlink -e` are available on Mac OS X, so I implemented one using basic Bash utilities: `readlink`, `basename`, and `dirname`. I also implemented a `normalize_path` method that can normalize relative or absolute path strings (remove and resolve "." and ".." references). It uses simple string processing and doesn't touch the file system. This will help fixing https://github.com/bazelbuild/bazel/issues/1776 and also opensourcing some shell tests that rely on `realpath`. -- MOS_MIGRATED_REVID=133249912
* Increase test sizes for because Mac.Gravatar Dmitry Lomov2016-09-15
| | | | | -- MOS_MIGRATED_REVID=133249815
* Removing test_specified_javabase from bazel_javabase_test.Gravatar Irina Iancu2016-09-15
| | | | | | | This test shouldn't have been submitted. It can not be properly tested in bazel because there is no specific JDK that we can use. The test is currently passing because $BLAZE_JAVABASE is an empty string and therefore bazel uses the default JDK. -- MOS_MIGRATED_REVID=133236838
* opensource blaze_javabase_testGravatar Irina Iancu2016-09-15
| | | | | -- MOS_MIGRATED_REVID=133224703
* Roll-forward of the startup options refactoring.Gravatar Julio Merino2016-09-15
| | | | | | | | | | | | | | | This CL is a verbatim reproduction of the following CLs, modulo adjustments to cope with changes at HEAD: * commit 4a45d92130a6b1306a3840d006df165b8040a6cf: Use inheritance to support site-specific options. * commit dfb2c73eda3d2dd8787ea9b2d0a03b49dfa2acc5: Inject the product name via the per-product main.cc files. * unknown commit: Remove the internal/external startup_options duality. The cause that triggered the rollbacks was fixed separately in commit 69a8d7205287bedf3a6140ec9327e2fad1758c22 as prepartory work for this roll-forward, so things should work now. -- MOS_MIGRATED_REVID=133139218
* run_test: acknowledge bashismsGravatar Klaus Aehlig2016-09-14
| | | | | | | | | | | | | If a test script uses bash extensions, it should not call /bin/sh which is the POSIX shell (and no further assumptions should be made). In the long run, we should rewrite that test for the POSIX shell, but to quickly get rid of CI breakages, it is faster to acknowledge the bash dependency. -- Change-Id: I179a0d17ef663d473524d80de7dc660778c23acd Reviewed-on: https://bazel-review.googlesource.com/#/c/6071 MOS_MIGRATED_REVID=133137841
* Disable mysteriously failing test.Gravatar Dmitry Lomov2016-09-14
| | | | | -- MOS_MIGRATED_REVID=133133457
* action_env_test: do not use timingGravatar Klaus Aehlig2016-09-14
| | | | | | | | | | ...to determine if actions have been executed; instead, as the UI to list the subcommands and explicitly look for the action in question. -- Change-Id: Ic46244c8daec83a7f6b27e09c366df435f36ba96 Reviewed-on: https://bazel-review.googlesource.com/#/c/6070 MOS_MIGRATED_REVID=133130712
* Add type annotations for the benefit of Java 7Gravatar Klaus Aehlig2016-09-14
| | | | | -- MOS_MIGRATED_REVID=133119463
* Open source discard_graph_edges_test.Gravatar John Cater2016-09-14
| | | | | -- MOS_MIGRATED_REVID=133113800
* fix test for DarwinGravatar Yue Gan2016-09-14
| | | | | -- MOS_MIGRATED_REVID=133113385
* Add type annotations for the benefit of Java 7Gravatar Klaus Aehlig2016-09-14
| | | | | -- MOS_MIGRATED_REVID=133112586
* Open-source integration test for 'bazel run'Gravatar Klaus Aehlig2016-09-14
| | | | | -- MOS_MIGRATED_REVID=133101319
* Fix build_file_content overwriting source filesGravatar Kristina Chodorow2016-09-14
| | | | | | | Fixes #1697. -- MOS_MIGRATED_REVID=133056813
* Move the GetOutputRoot function to the WorkspaceLayout module.Gravatar Julio Merino2016-09-14
| | | | | | | | | | | | | | | | | | | | | | The result value of GetOutputRoot does not depend on the startup options: it only depends on the environment and/or the hardcoded values for Bazel and Blaze. Therefore, put it in the WorkspaceLayout module just as we did for all other similar functions. The fact that GetOutputRoot was part of BlazeStartupOptions was the root cause behind the rollback of commit 4a45d92130a6b1306a3840d006df165b8040a6cf: in particular, that CL silently added a virtual call to the GetOutputRoot method from the constructor of the superclass, and this invokes undefined behavior because the class has not yet been fully constructed. This caused Blaze to have incorrect values for the output_root. By moving the function out, we'll be able to roll that CL forward as it originally was. As part of this change, add unit tests for the value of output_root under various scenarios. These would have caught the discrepancy introduced by that CL. -- MOS_MIGRATED_REVID=133056251
* Handle minimum OS version in swift_library.Gravatar Dmitry Shevchenko2016-09-14
| | | | | -- MOS_MIGRATED_REVID=133045120
* Track client environment in SkyframeGravatar Klaus Aehlig2016-09-14
| | | | | | | | | | | | | ...to determine which actions have to be recomputed based on changes to the client environment. Note that this change does it the simple way and reconsideres all actions on a changed client environment, while still only reexecuting those, where the part that was inherited from the environment actually did change. -- Change-Id: Ie1116d094642165e5e959447a6fcf49d19b37d6e Reviewed-on: https://bazel-review.googlesource.com/#/c/5431 MOS_MIGRATED_REVID=133010705
* Fixed CcLibraryConfiguredTargetTest on WindowsGravatar Yun Peng2016-09-14
| | | | | | | Fixed #1765 -- MOS_MIGRATED_REVID=133006031
* Rollback of commit 4381a1d6e8f711957f430aac0c301acec6dfa0eb.Gravatar Damien Martin-Guillerez2016-09-14
| | | | | | | | | | | | | *** Reason for rollback *** Breaks all projects using Bazel, see https://ci.bazel.io *** Original change description *** Deprecated and removed HOST_CFG and DATA_CFG global variables. -- MOS_MIGRATED_REVID=133005398
* Allow reverse dependency lookups on Skyframe graph to throw InteruptedExceptionGravatar Googler2016-09-14
| | | | | -- MOS_MIGRATED_REVID=132999234
* Open source ide_info_generation test.Gravatar Tobias Werth2016-09-14
| | | | | -- MOS_MIGRATED_REVID=132990129
* opensource bazel_testjobs.shGravatar Yue Gan2016-09-13
| | | | | -- MOS_MIGRATED_REVID=132985974
* opensource most part of blaze_command_log_testGravatar Yue Gan2016-09-13
| | | | | -- MOS_MIGRATED_REVID=132984079
* Open source bazel_query_testGravatar Yun Peng2016-09-13
| | | | | -- MOS_MIGRATED_REVID=132980407
* Mark some tests as large so that they don't timeout on Darwin.Gravatar Dmitry Lomov2016-09-13
| | | | | -- MOS_MIGRATED_REVID=132980076
* Global cleanup change.Gravatar Vladimir Moskva2016-09-13
| | | | | -- MOS_MIGRATED_REVID=132976702
* Open source output_filter_test.Gravatar Tobias Werth2016-09-13
| | | | | -- MOS_MIGRATED_REVID=132973437
* Open source discard_analysis_cache_test.Gravatar Tobias Werth2016-09-13
| | | | | -- MOS_MIGRATED_REVID=132965047
* Fix a bug that leads to unnecessary compiles of .pic.o files (and possibly)Gravatar Googler2016-09-12
| | | | | | | | | | | | | | | | | | | | | | others in opt compiles. A while back, we added a HIDDEN_TOP_LEVEL output group to CcBinary targets to ensure that --process_headers_in_dependencies works as expected for them. However, adding all HIDDEN_TOP_LEVEL files is actually too much and e.g. also contains .pic.o files which are expensive to build but not actually needed for the compile. The fundamental difference between CcLibrary and CcBinary targets here is that a CcBinary already declares most of its inputs as it needs all of them to link the binary. In contrast, CcLibraries wouldn't need any of they dependent .o files and thus wouldn't even try to build them. This changes splits out the header token files which are required to make --process_headers_in_dependencies work correctly and only adds those to HIDDEN_TOP_LEVEL outputs of binaries files. Also removing some unused code that was producing warnings. -- MOS_MIGRATED_REVID=132883722
* Automatically detect the setting for --cpu.Gravatar Ulf Adams2016-09-12
| | | | | | | | | | | | | | | | | | In some cases, Bazel has already been doing this. In other cases, Bazel tried to infer the default cpu from the CROSSTOOL, but it did not do so consistently across different configuration fragments. I.e., Bazel ended up with an inconsistent set of toolchains for e.g., Python, C++, and Java. After this change, Bazel ignores any default_cpu setting in the CROSSTOOL. Note that the Jvm is still inconsistent with all others, as it uses "default" as the cpu value and ignores both command-line-specified and CROSSTOOL-specified values. -- MOS_MIGRATED_REVID=132879102
* Add trailing true after kill which does not have exit status 0.Gravatar Tobias Werth2016-09-12
| | | | | | | | | Also increase timeout to reduce flakyness. -- Change-Id: Ieb5bbd9b2f9e28cd3ec39f42deb0aba0f501171c Reviewed-on: https://bazel-review.googlesource.com/c/6033/ MOS_MIGRATED_REVID=132873805
* Don't print stack traces when repository rules have the wrong typeGravatar Kristina Chodorow2016-09-12
| | | | | | | | | This also entirely disallows select() in repository rules. All repository rules should now error out if the wrong type is given, instead of printing a stack trace. Fixes #1307. -- MOS_MIGRATED_REVID=132872804
* s/blaze/bazel to fix failing test.Gravatar Tobias Werth2016-09-12
| | | | | | | -- Change-Id: I1203f15e8e02373b062142c0631ff94f14bd437d Reviewed-on: https://bazel-review.googlesource.com/c/6032/ MOS_MIGRATED_REVID=132870643
* Open-source //src/test/shell/integration:progress_reporting_testGravatar Laszlo Csomor2016-09-12
| | | | | -- MOS_MIGRATED_REVID=132870287
* Add helper function to add lines to bazelrc from integration tests.Gravatar Tobias Werth2016-09-12
| | | | | -- MOS_MIGRATED_REVID=132864919
* Put stdout and stderr streams into a consistent state when they are redirected.Gravatar Lukacs Berki2016-09-12
| | | | | | | Fixes #1755. -- MOS_MIGRATED_REVID=132861187
* Open-source startup_options_test.Gravatar Tobias Werth2016-09-12
| | | | | -- MOS_MIGRATED_REVID=132852747
* Make cc_toolchain not croak if something that is not a shared library is ↵Gravatar Lukacs Berki2016-09-12
| | | | | | | mentioned in the dynamic_runtime_libs attribute. -- MOS_MIGRATED_REVID=132676097