aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test
Commit message (Collapse)AuthorAge
...
* First steps towards implementing AndroidStudioInfoAspect in Skylark.Gravatar Dmitry Lomov2016-01-14
| | | | | -- MOS_MIGRATED_REVID=112042343
* Make package names in the package_group.packages attribute refer to the ↵Gravatar Lukacs Berki2016-01-13
| | | | | | | | | | | | | repository where the package group is. There is currently no way to refer to packages in other repositories and that doesn't seem to be useful, because visibility currently checks the repository name in the label and that can be changed in the main WORKSPACE file. If needed, it'd be pretty easy to implement, though. As a drive-by fix, made the parsing of the package name call into the same logic implemented in the cmdline package because code duplication is bad, mmmkay? Fixes #767. -- MOS_MIGRATED_REVID=112032508
* Use our java test runner in BazelGravatar Damien Martin-Guillerez2016-01-13
| | | | | | | | | RELNOTES[NEW]: A new java test runner that support XML output and test filtering is supported. It can be used by specifying --nolegacy_bazel_java_test or by speicifying the test_class attribute on a java_test. -- MOS_MIGRATED_REVID=112028955
* Make repository-local labels in visibility declarations actually be ↵Gravatar Lukacs Berki2016-01-13
| | | | | | | | | repository-local. Fixes #765. -- MOS_MIGRATED_REVID=112027627
* Use xcode_config build target for actions which need to resolve an xcode ↵Gravatar Chris Parsons2016-01-13
| | | | | | | version. -- MOS_MIGRATED_REVID=111978539
* Test for extra rebuilds caused by empty files in http_archive etc.Gravatar Brian Silverman2016-01-13
| | | | | | | | | | | | | This used to cause spurious rebuilds because the timestamp (which was changed every server restart) is used for deciding whether the file changed or not. Closes #573 -- Change-Id: I0e95910353426b22b61a3573ca7465e1edcedaac Reviewed-on: https://bazel-review.googlesource.com/#/c/2390/ MOS_MIGRATED_REVID=111953023
* Reset state before test_fetchGravatar Kristina Chodorow2016-01-12
| | | | | | | | | | | | | In general the external integration tests shouldn't need to reset state between tests, but test_fetch is explicitly assuming a clean environment to start off with. Fixes #769 (I think, I can't actually test it due to #770). Change-Id: I63eef924c5b7bff3225c6b67a300d57a7675aeda -- Change-Id: I63eef924c5b7bff3225c6b67a300d57a7675aeda Reviewed-on: https://github.com/bazelbuild/bazel/pull/771 MOS_MIGRATED_REVID=111893662
* Use objective-C dependencies only for test that might requires them.Gravatar Damien Martin-Guillerez2016-01-11
| | | | | | | Fixes #770 to an acceptable extent. -- MOS_MIGRATED_REVID=111889925
* Provide rule class name to aspects.Gravatar Dmitry Lomov2016-01-11
| | | | | -- MOS_MIGRATED_REVID=111866202
* Allow overridding any rule in the WORKSPACE fileGravatar Kristina Chodorow2016-01-11
| | | | | | | ...instead of throwing an uncaught exception and printing a stack trace. Fixes #409. -- MOS_MIGRATED_REVID=111850179
* BuildView - untangle more of the methods that are only for ide info.Gravatar Ulf Adams2016-01-11
| | | | | | | | | | In particular, don't immediately call into the ForTesting functions; I need to refactor some code that is called from here, and the semantics when called from ide info should not change. Changes to semantics when called from tests are much less problematic - we can simply run all the tests. -- MOS_MIGRATED_REVID=111846384
* Increase size of tests that time out on ci.bazel.ioGravatar Damien Martin-Guillerez2016-01-11
| | | | | -- MOS_MIGRATED_REVID=111841582
* Add auth support for proxy downloadsGravatar Kristina Chodorow2016-01-11
| | | | | | | | | | | Should fix #587. RELNOTES: Support for downloading remote resources through proxies by setting HTTP_PROXY (or HTTPS_PROXY). -- Change-Id: I4ae18c4f1a9e911e538efd446323e279e9776eec Reviewed-on: https://github.com/bazelbuild/bazel/pull/759 MOS_MIGRATED_REVID=111708438
* Add xcode_locator to bazel's embedded binaries.Gravatar Chris Parsons2016-01-08
| | | | | | | For bazel on non-darwin architectures, this will simply be a stub, and should never be invoked. On darwin arcitectures, the tool will map xcode version to xcode path on the host system. -- MOS_MIGRATED_REVID=111651147
* Rollback of commit e4133aab4db7cd640501d1113c259e8477006b6f.Gravatar Damien Martin-Guillerez2016-01-07
| | | | | | | | | | | | | | | | *** Reason for rollback *** Broke build of Bazel tests on ci.bazel.io See http://ci.bazel.io/job/Bazel/JAVA_VERSION=1.8,PLATFORM_NAME=ubuntu_15.10-x86_64/280/console Found using git bisect and /tmp/bazel-bin build --nobuild //src/tools/generate_workspace/src/main/java/com/google/devtools/build/workspace:workspace *** Original change description *** Factor implementation of bazel-specific cpp logic out of devtools/build/lib/BUILD into subpackage, to allow the objc implementation to extend that logic without a circular dependency. In particular, create a subpackage at lib/bazel/rules, and move relevant targets that were in lib/bazel down to the subpackage. -- MOS_MIGRATED_REVID=111632586
* Allow relative paths for local_repository()sGravatar Kristina Chodorow2016-01-07
| | | | | | | | | | Fixes #733. RELNOTES: Relative paths can now be used for 'path' with new_local_repository and local_repository. -- MOS_MIGRATED_REVID=111620894
* Split PrepareDepsOfTargetsUnderDirectory into two parts, one which does the ↵Gravatar Janak Ramakrishnan2016-01-07
| | | | | | | directory traversal and package loading, and the other which requests deps on all the transitive targets. We need values from the first half, but the second half can fail to evaluate because of a target cycle. By splitting them, we ensure that there will be values in the graph, so we can get the targets below a directory even if there are cycles present. -- MOS_MIGRATED_REVID=111609889
* Extend crosstool configuration to allow features to specify (expandable) ↵Gravatar Chris Parsons2016-01-07
| | | | | | | environment variables to pass to actions -- MOS_MIGRATED_REVID=111608329
* Factor implementation of bazel-specific cpp logic out of ↵Gravatar Cal Peyser2016-01-07
| | | | | | | devtools/build/lib/BUILD into subpackage, to allow the objc implementation to extend that logic without a circular dependency. In particular, create a subpackage at lib/bazel/rules, and move relevant targets that were in lib/bazel down to the subpackage. -- MOS_MIGRATED_REVID=111602013
* Add strip_prefix attribute to http_archiveGravatar Kristina Chodorow2016-01-07
| | | | | | | Fixes #575. -- MOS_MIGRATED_REVID=111600612
* Remove syntactic sugar when assigning to a dict item.Gravatar Laurent Le Brun2016-01-07
| | | | | | | | | | | | | | e.g. a['key'] = value is handled through a proper lvalue, instead of using syntactic sugar. Benefits include: - better error messages (reference to the '+' operator was cryptic) - more robust, e.g. it is compatible with the += operator - can be used in a tuple, e.g. a[1], a[2] = 3, 4 - it is a step towards mutable dict -- MOS_MIGRATED_REVID=111597545
* Support java_plugin in AndroidStudioInfoAspect.Gravatar Googler2016-01-07
| | | | | -- MOS_MIGRATED_REVID=111537858
* Stop parsing the WORKSPACE file when a parse error is detectedGravatar Kristina Chodorow2016-01-07
| | | | | | | | | | Parsing was continuing and tried to load skylark extensions even though an error was present in the WORKSPACE file. Fixes #724 -- MOS_MIGRATED_REVID=111534382
* Add a regression test for #517Gravatar Kristina Chodorow2016-01-07
| | | | | | | Fixed by other changes, just adding a test. -- MOS_MIGRATED_REVID=111533429
* Add runtime_deps to android studio proto.Gravatar Googler2016-01-07
| | | | | -- MOS_MIGRATED_REVID=111453115
* Improve error message when download failsGravatar Kristina Chodorow2016-01-07
| | | | | | | | | | Instead of just showing the URL that the file failed to be fetched from, it now displays the response code and content (if possible). Fixes #732. -- MOS_MIGRATED_REVID=111450650
* Remove Constants.ALLOW_CC_INCLUDE_SCANNING and handle the logic in ↵Gravatar Philipp Wollermann2016-01-07
| | | | | | | CppSemantics instead. -- MOS_MIGRATED_REVID=111406721
* Record correct shell test failure timesGravatar Michajlo Matijkiw2016-01-07
| | | | | | | | A failing test could use a previous run's timestamp, resulting in awkward negative times, especially in the case of sub-second runs. -- MOS_MIGRATED_REVID=111345693
* Add catastrophe field to EvaluationResult so that callers can identify the ↵Gravatar Janak Ramakrishnan2016-01-04
| | | | | | | | | cause of a catastrophic failure (this is distinct from a crash). Also clean up catastrophe logic in ParallelEvaluator -- the catastrophic nature of an exception is important only if the build is keep_going, and only if the exception is catastrophic can we have an exception in the first place. -- MOS_MIGRATED_REVID=111293164
* Permit proto serialization of configured attribute valuesGravatar Mark Schaller2016-01-04
| | | | | | | | | This commit adds proto messages that represent configurable values, and modifies attribute value serialization code to handle those values, which are called SelectorLists. -- MOS_MIGRATED_REVID=111149272
* Add the source location of the import string to the LoadStatement AST node, ↵Gravatar John Field2016-01-04
| | | | | | | for use in tools. -- MOS_MIGRATED_REVID=111142252
* Add a new method to the SkylarkImport class to allow tools to access the ↵Gravatar John Field2016-01-04
| | | | | | | import as a PathFragment. -- MOS_MIGRATED_REVID=111138001
* Allow Skylark rules and aspects to contribute to output groups.Gravatar Dmitry Lomov2015-12-28
| | | | | -- MOS_MIGRATED_REVID=110840166
* Reduce differences between Skylark and Build evaluationGravatar Laurent Le Brun2015-12-28
| | | | | | | Add some functions to Build, allow method calls. -- MOS_MIGRATED_REVID=110835163
* Enable label-based Skylark loading. In particular, such labels may reference ↵Gravatar John Field2015-12-22
| | | | | | | | | | | | | | | | | | | files in external repositories. In addition: - Cleaned up and refactored some tests to reflect the new loading behavior. Deferred to future CLs: - Updating Bazel Skylark documentation to reflect the new load form. - Enabling command-line loading of Aspects via labels. RELNOTES: Skylark load statements may now reference .bzl files via build labels, in addition to paths. In particular, such labels can be used to reference Skylark files in external repositories; e.g., load("@my_external_repo//some_pkg:some_file.bzl", ...). Path-based loads are now deprecated and may be disabled in the future. Caveats: Skylark files currently do not respect package visibility; i.e., all Skylark files are effectively public. Also, loads may not reference the special //external package. -- MOS_MIGRATED_REVID=110786452
* Add support for downloading through proxiesGravatar Kristina Chodorow2015-12-22
| | | | | | | Fixes #587. -- MOS_MIGRATED_REVID=110785300
* Add list.popGravatar Laurent Le Brun2015-12-22
| | | | | -- MOS_MIGRATED_REVID=110778743
* Fix bazel_go_example_test. Changes:Gravatar Han-Wen Nienhuys2015-12-22
| | | | | | | | | | | | | | | | | * The go_prefix should be declared in the toplevel BUILD file as //:go_prefix, rather than //external:go_prefix. * Run set_up from the test methods. * Update references to Darwin. Tested: bazel test src/test/shell/bazel/bazel_go_example_test -- Change-Id: I89b2f5920100d27abdbc093437c7c051a24fad1e Reviewed-on: https://bazel-review.googlesource.com/#/c/2561 MOS_MIGRATED_REVID=110762730
* Open source most of our docgen tests.Gravatar Ulf Adams2015-12-22
| | | | | -- MOS_MIGRATED_REVID=110746503
* Open source PathPackageLocatorTest.Gravatar Ulf Adams2015-12-21
| | | | | -- MOS_MIGRATED_REVID=110672372
* Open source PackageCacheTest. Second try.Gravatar Ulf Adams2015-12-21
| | | | | -- MOS_MIGRATED_REVID=110670806
* Open source LoadingPhaseRunnerTest and its Skyframe companion.Gravatar Ulf Adams2015-12-21
| | | | | | | | | | I had to make a small change to ExternalFilesHelper. The Bazel test setup creates a remote repository for the tools, so we always have external files, incl. during loading. However, some of the tests don't setup an output directory, but instead pass null, which would lead to a crash. -- MOS_MIGRATED_REVID=110669993
* Skylark: Slice operations now accept a step argument.Gravatar Florian Weikert2015-12-17
| | | | | -- MOS_MIGRATED_REVID=110446625
* Rollback of commit 21fbbd6a32b95ba746f09dae1eaeaccf675cd5b3.Gravatar Florian Weikert2015-12-17
| | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** The original CL broke our CI because Bazel used an old version of Guava (18.0 instead of 19.0). We fixed this problem, so we can roll forward the original change. *** Original change description *** Automated [] rollback of []. *** Reason for rollback *** Broke the build: http://ci.bazel.io/job/Bazel/262/ *** Original change description *** Skylark: implemented more string functions (isalnum, isdigit, etc). -- MOS_MIGRATED_REVID=110439750
* Rollback of commit d03485f1361ff825a976512959438321442c7c98.Gravatar Kristina Chodorow2015-12-16
| | | | | | | | | | | | | *** Reason for rollback *** Broke the build: http://ci.bazel.io/job/Bazel/262/ *** Original change description *** Skylark: implemented more string functions (isalnum, isdigit, etc). -- MOS_MIGRATED_REVID=110383960
* Add a test to verify @D works correctly with external reposGravatar Kristina Chodorow2015-12-16
| | | | | | | Issue #430 seems to be obsolete, added a test to make sure it keeps working. -- MOS_MIGRATED_REVID=110373297
* Add a new class to encapsulate operations on Skylark import statements. This ↵Gravatar John Field2015-12-16
| | | | | | | | | will make it easier to manage the transition from legacy Skylark path-style loads to label-based loads. We handle both old-style (path-based) imports and new-style (label-based) imports. This class is in the cmdline package since it depends on Label-related code in the same package. The cmdline package depends on the syntax package, so this class can't go there, which would otherwise be a reasonable place to put it. -- MOS_MIGRATED_REVID=110372547
* Open source loading the rules moduleGravatar Kristina Chodorow2015-12-16
| | | | | -- MOS_MIGRATED_REVID=110361527
* Move annotation classes used for referencing framework Java classes from ↵Gravatar John Field2015-12-16
| | | | | | | | | | | | | | Skylark into their own package. This allows, e.g., classes in the syntax package to access classes in the cmdline package without creating circular dependencies. While we're here: - Removed a couple of unused BUILD deps flagged in []. - Updated SkylarkRuleImplementationFunctionsTest to remove non-ASCII characters and clarify the intent of the test. -- MOS_MIGRATED_REVID=110360763
* Implement aspect attributes and expose them to aspect implementation function.Gravatar Dmitry Lomov2015-12-16
| | | | | -- MOS_MIGRATED_REVID=110356954