aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test
Commit message (Collapse)AuthorAge
* Inline FoundationTestCase.scratchFile.Gravatar Ulf Adams2015-04-27
| | | | | -- MOS_MIGRATED_REVID=92128998
* Fix SkylarkList#equalsGravatar Francois-Rene Rideau2015-04-27
| | | | | -- MOS_MIGRATED_REVID=92063536
* Description redacted.Gravatar Greg Estren2015-04-27
| | | | | -- MOS_MIGRATED_REVID=92016074
* Remove more calls to scratchFS().Gravatar Ulf Adams2015-04-27
| | | | | -- MOS_MIGRATED_REVID=91999865
* Inline/remove some calls to FoundationTestCase.scratchFS().Gravatar Ulf Adams2015-04-27
| | | | | -- MOS_MIGRATED_REVID=91987064
* Inline FoundationTestCase.overwriteScratchFile.Gravatar Ulf Adams2015-04-27
| | | | | -- MOS_MIGRATED_REVID=91986167
* Make SkyKey cached hash code transientGravatar Mark Schaller2015-04-27
| | | | | | | | | | | | | | | | | SkyKey argument hashcodes are not stable, because they're composed of values whose hashcodes may not be stable, such as Java enums. Therefore a SkyKey's own hashcode isn't stable. And this is fine, but if we try to serialize and then deserialize the SkyKey with its cached hashcode, the deserialized SkyKey's cached hashcode won't match a normally constructed SkyKey, despite them being equal. Because a SkyKey will deserialize with a default value of 0 for its cached hashcode, this change also introduces a transient boolean guard to note whether the correct hashcode has been calculated and cached. -- MOS_MIGRATED_REVID=91985674
* Inline FoundationTestCase.deleteFile and one variant of scratchFile.Gravatar Ulf Adams2015-04-27
| | | | | -- MOS_MIGRATED_REVID=91985334
* Inline FoundationTestCase.dir.Gravatar Ulf Adams2015-04-27
| | | | | -- MOS_MIGRATED_REVID=91983663
* Add a Path constructor to Scratch.Gravatar Ulf Adams2015-04-27
| | | | | -- MOS_MIGRATED_REVID=91982390
* Replace more uses of FsApparatus with Scratch.Gravatar Ulf Adams2015-04-27
| | | | | -- MOS_MIGRATED_REVID=91980878
* Clean up the TestFileOutErr to be less brittle, avoiding the "brutal ↵Gravatar Eric Fellheimer2015-04-27
| | | | | | | overloading" it had been doing previously. -- MOS_MIGRATED_REVID=91979641
* Replace a few uses of FsApparatus with Scratch.Gravatar Ulf Adams2015-04-27
| | | | | -- MOS_MIGRATED_REVID=91979634
* Extend the Scratch class to have a working directory.Gravatar Ulf Adams2015-04-27
| | | | | -- MOS_MIGRATED_REVID=91976263
* Add missing dependencies to :analysis_test in Bazel.Gravatar Lukacs Berki2015-04-24
| | | | | -- MOS_MIGRATED_REVID=91970041
* Look for resources under Maven's standard directory layoutGravatar Kristina Chodorow2015-04-24
| | | | | | | Doesn't completely fix but improves #97 for a lot of people. -- MOS_MIGRATED_REVID=91909946
* Open source more analysis tests.Gravatar Ulf Adams2015-04-24
| | | | | -- MOS_MIGRATED_REVID=91909389
* Open source the aspects-related tests.Gravatar Ulf Adams2015-04-24
| | | | | -- MOS_MIGRATED_REVID=91907246
* Move the BazelAnalysisMock to a subpackage of analysis.Gravatar Ulf Adams2015-04-24
| | | | | | | Analysis tests are incoming. -- MOS_MIGRATED_REVID=91903404
* Open source the analysis/constraints tests.Gravatar Ulf Adams2015-04-24
| | | | | -- MOS_MIGRATED_REVID=91891070
* Simplify the createConfiguration method in SkyframeExecutor.Gravatar Ulf Adams2015-04-23
| | | | | | | | | Instead of passing BuildConfigurationKey instances around, just pass in the little data we actually need. This allows removing the BuildConfigurationKey class. -- MOS_MIGRATED_REVID=91865340
* Enables BlazeModule to return multiple ActionContextProviders and ↵Gravatar Googler2015-04-23
| | | | | | | ActionContextConsumers. -- MOS_MIGRATED_REVID=91827715
* Remove old Skylark Function hierarchyGravatar Francois-Rene Rideau2015-04-23
| | | | | | | Last step in refactoring of Skylark builtin functions. -- MOS_MIGRATED_REVID=91796746
* Only check visibility when the rule class has the attributeGravatar Kristina Chodorow2015-04-23
| | | | | | | Fixes #150. -- MOS_MIGRATED_REVID=91785592
* Remove circular symlinks to external dependenciesGravatar Kristina Chodorow2015-04-23
| | | | | | | Fixes #87. -- MOS_MIGRATED_REVID=91784426
* Use BuiltinFunction for all builtinsGravatar Francois-Rene Rideau2015-04-22
| | | | | | | | Replace the uses of AbstractFunction, MixedModeFunction, SkylarkFunction and SimpleSkylarkFunction by BuiltinFunction. -- MOS_MIGRATED_REVID=91763158
* Parser: Update code to prepare for list filtering.Gravatar Laurent Le Brun2015-04-22
| | | | | -- MOS_MIGRATED_REVID=91714318
* More Skylark function cleanupsGravatar Francois-Rene Rideau2015-04-22
| | | | | -- MOS_MIGRATED_REVID=91713784
* Add TEST_TMPDIR for BazelGravatar Kristina Chodorow2015-04-22
| | | | | | | Fixes #138. -- MOS_MIGRATED_REVID=91708374
* Fix downloader to download more than 2048 bytesGravatar Kristina Chodorow2015-04-22
| | | | | | | Fixes #129. -- MOS_MIGRATED_REVID=91707295
* This should fix the shell tests.Gravatar Ulf Adams2015-04-22
| | | | | | | | | | | - expectation in testSimpleKillableObserver is wrong - work around race condition in testSimpleKillableObserver by sleeping - make FutureConsumptionTest thread-safe Thanks to Adrian Colley for the report. -- MOS_MIGRATED_REVID=91678160
* Fix non-determinist test.Gravatar Laurent Le Brun2015-04-20
| | | | | -- MOS_MIGRATED_REVID=91573977
* Pass in the test environment using ↵Gravatar Lukacs Berki2015-04-20
| | | | | | | | | | | BuildConfiguration.Options.testEnvironment instead of special-casing it in a large number of classes. The variables in the client environment are read in BlazeRuntime#beforeCommand() now. Note that this entails a slight loss of caching: before, "--test_env=a=A,b=B" and "--test_env=b=B,a=A" were equivalent, now they are not, since instead of comparing Map<String, String>, List<Map.Entry<String,String>> instances are compared. -- MOS_MIGRATED_REVID=91570828
* More skylark function cleanupsGravatar Francois-Rene Rideau2015-04-17
| | | | | -- MOS_MIGRATED_REVID=91407816
* Added py_test rule to BazelGravatar Damien Martin-Guillerez2015-04-17
| | | | | | | | | | | | | | py_test rule enable to use a test written in Python. A py_test is basically a py_binary that returns a non null on failure. Extraneous support is need to have nice output (see //src/test/shell/unittest.bash for the kind of support neeeded). Actually the py_test code was already there but it was just missing the necessary glue code. Also added an integration test for py_* rules in Bazel. -- MOS_MIGRATED_REVID=91407748
* A minor refactoring of BlazeRuntime.Gravatar Lukacs Berki2015-04-17
| | | | | -- MOS_MIGRATED_REVID=91405317
* Open source the configuration tests.Gravatar Ulf Adams2015-04-17
| | | | | | | | | | | | | | | | | | - update the MOCK_CROSSTOOL to provide more stuff needed by tests - add a THIS_IS_BAZEL constant to allow disabling individual test cases - disable some tests in Bazel The disabled tests are mainly due to differences in the test setup - making the test setups more similar will largely fix that. I think we'll make some changes to our internal setup, too, not just the external one. For example, the use of 'k8' and 'piii' to refer to 'x86_64' and 'x86' seems archaic. I decided to leave the dependency on the C++ and Java configurations rather than rewriting the tests to use mock configurations. That would be nicer, but also requires significantly more work. -- MOS_MIGRATED_REVID=91399406
* Remove the full client environment from BuildConfiguration in favor of ↵Gravatar Lukacs Berki2015-04-17
| | | | | | | computing the test environment as early as possible, and passing that along. -- MOS_MIGRATED_REVID=91388451
* Define a reusable comparator for Skylark objects.Gravatar Laurent Le Brun2015-04-16
| | | | | -- MOS_MIGRATED_REVID=91304912
* Remove dependency on bcGravatar Kristina Chodorow2015-04-16
| | | | | | | This makes installation easier for systems that don't come with bc installed (e.g., Travis CI and Ubuntu Vivid Vervet). -- MOS_MIGRATED_REVID=91297054
* Build language supports list comparison.Gravatar Laurent Le Brun2015-04-16
| | | | | -- MOS_MIGRATED_REVID=91289047
* Actually run the actions tests in Bazel.Gravatar Ulf Adams2015-04-16
| | | | | | | This requires writing a workspace file for the JDK. -- MOS_MIGRATED_REVID=91287178
* Simplify BuildConfigurationTest and ConfigurationTestCase.Gravatar Ulf Adams2015-04-16
| | | | | -- MOS_MIGRATED_REVID=91286405
* Move test cases from BuildConfigurationTest to more specific test classes.Gravatar Ulf Adams2015-04-16
| | | | | -- MOS_MIGRATED_REVID=91284411
* Cleanup in ValidationEnvironment wrt to user-defined functionsGravatar Laurent Le Brun2015-04-16
| | | | | -- MOS_MIGRATED_REVID=91216722
* Build language: Implement integer divisionGravatar Laurent Le Brun2015-04-15
| | | | | -- MOS_MIGRATED_REVID=91192716
* Catch modulo by 0 errorsGravatar Laurent Le Brun2015-04-15
| | | | | -- MOS_MIGRATED_REVID=91181886
* Skylark: Remove static type checksGravatar Laurent Le Brun2015-04-15
| | | | | -- MOS_MIGRATED_REVID=91175430
* Make the indirect dependency message show the correct label for external depsGravatar Kristina Chodorow2015-04-15
| | | | | | | | | Previously it would show the relative path within the external dep (e.g., in the given test, "** Please add the following dependencies: x to //a:a"). Fixes https://github.com/google/bazel/issues/112. -- MOS_MIGRATED_REVID=91093258
* Use fully qualified paths for C++ includesGravatar Kristina Chodorow2015-04-14
| | | | | | | This fixes https://github.com/google/bazel/issues/66. -- MOS_MIGRATED_REVID=91083724