aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib
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
* 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
* 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
* 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
* 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
* 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
* 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
* Shrink EvaluationContext a bitGravatar Francois-Rene Rideau2015-04-14
| | | | | | | | Move some functionality to its only current client SkylarkShell, mark some accessor @VisibleForTesting and remove those not currently used for testing. -- MOS_MIGRATED_REVID=91033050
* Remove autosense logic.Gravatar Han-Wen Nienhuys2015-04-14
| | | | | | | | | | | | | Polling the machine load can never work, because the following scenarios are quite common: * Tasks that are faster than the poll cycle time. * Tasks whose CPU and/or RAM consumption changes over the lifetime of the task. -- MOS_MIGRATED_REVID=90990445
* Inline TestConstants.TEST_WORKSPACE_DIRECTORY.Gravatar Ulf Adams2015-04-14
| | | | | -- MOS_MIGRATED_REVID=90984191
* Skylark: Remove static type checking of variables/functions.Gravatar Laurent Le Brun2015-04-13
| | | | | | | | There are still some static checks (check existence of variable/function, readonly variables, etc.). More cleanup will come later. -- MOS_MIGRATED_REVID=90979748
* Explicitly use bash to test negative exit codesGravatar Kristina Chodorow2015-04-13
| | | | | | | | | | | | sh doesn't actually support negative exit codes, so if someone (Travis) uses a different version than we're using, they'll get exit code 2 (misuse of shell builtin), not <exit code>%256. See https://lists.gnu.org/archive/html/bug-bash/2011-08/msg00027.html for some examples/discussion. -- MOS_MIGRATED_REVID=90828267
* Simplify Skylark testsGravatar Francois-Rene Rideau2015-04-13
| | | | | | | | | | | | | | | | | | Use the new EvaluationContext infrastructure to simplify Skylark tests (said infrastructure is originally based on code from these tests). Merge AbstractEvaluationTestCase and AbstractParserTestCase into a non-abstract class EvaluationTestCase that uses EvaluationContext. Cleanup the EventCollectionApparatus it uses. Refactor all Skylark tests to use this new infrastructure. Fix EvaluationTest and MethodLibraryTest to actually and correctly run tests in both modes. Fix small bugs in the main code base discovered by actually running the code in both modes, and make error messages identical when possible. -- MOS_MIGRATED_REVID=90828053
* Allow evaluation from StringGravatar Francois-Rene Rideau2015-04-13
| | | | | | | | | | | | | | | | | | | Lift the Evaluation code from the test files AbstractParserTestCase and AbstractEvaluationTestCase into new files EvaluationContext. Remove this code's dependency on FsApparatus (and thus to InMemoryFS), by making the Lexer accept null as filename. Also remove dependency on EventCollectionApparatus; parameterized by an EventHandler. Have the SkylarkSignatureProcessor use this Evaluation for defaultValue-s. While refactoring evaluation, have SkylarkShell use it, which fixes its ValidationEnvironment issues. TODO: refactor the tests to use this new infrastructure. -- MOS_MIGRATED_REVID=90824736
* Make Artifacts be compared to each other based on their exec paths (and not ↵Gravatar Lukacs Berki2015-04-13
| | | | | | | | | their paths). This gives a predictable order in places where Artifacts are sorted by their natural order. This works because exec paths of Artifacts are unique in any given build. -- MOS_MIGRATED_REVID=90807141
* Rewrite tests to avoid /[]/ in the paths.Gravatar Ulf Adams2015-04-13
| | | | | -- MOS_MIGRATED_REVID=90799686
* Allow relative paths for the scratch* methods; resolve relative to workspace.Gravatar Ulf Adams2015-04-09
| | | | | | | | | This allows removing most /[]/ prefixes from all output file names in all tests that inherit from FoundationTestCase; that, in turn, allows us to switch the workspace root to a neutral name, such as /workspace/. -- MOS_MIGRATED_REVID=90720852