aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test
Commit message (Collapse)AuthorAge
* Parse the label syntax "@//a:b" so that eventually we can make that the ↵Gravatar Lukacs Berki2015-09-15
| | | | | | | | | syntax that means "refer to the main repository". There isn't an overarching plan for what we are going to do with the cmdline package, which seems to be separated from the .syntax one in all sorts of awkward ways. -- MOS_MIGRATED_REVID=103088960
* Some minor updates to the BUILD files.Gravatar Ulf Adams2015-09-15
| | | | | -- MOS_MIGRATED_REVID=103087492
* Support java_import in AndroidStudioIdeInfoAspectGravatar Dmitry Lomov2015-09-15
| | | | | -- MOS_MIGRATED_REVID=103079877
* Parses the correct values of SDK, Platform and XCode version numbers when ↵Gravatar Anastasios Kakalis2015-09-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | generating the environment's plist. The script no longer parses the values from the Platform's Info.plist, which contained the values used to compile the Platform's library *itself*, rather than the values of the actual running environment. Also the BuildMachineOSBuild is being read from the sw_version, rather than the Xcode's plist, and the DTSDKBuild is determined by the plist under sdk-path. An example environment.plist: { BuildMachineOSBuild = 14F27; DTCompiler = "com.apple.compilers.llvm.clang.1_0"; DTPlatformBuild = 12H141; DTPlatformVersion = "8.4"; DTSDKBuild = 12H141; DTXCodeBuild = 6E35b; DTXcode = 0640; } -- MOS_MIGRATED_REVID=103079006
* Fix and test SyntaxTreeVisitorGravatar Laurent Le Brun2015-09-15
| | | | | -- MOS_MIGRATED_REVID=103003770
* Prevented catching/wrapping of InterruptedExceptions, especially in ↵Gravatar Florian Weikert2015-09-14
| | | | | | | BaseFunction. -- MOS_MIGRATED_REVID=102988766
* Add unit tests for AndroidStudioInfoAspect and implement dependency collection.Gravatar Dmitry Lomov2015-09-14
| | | | | -- MOS_MIGRATED_REVID=102976551
* Fix a bug, when we have dependency from one aspect to another ↵Gravatar Marian Lobur2015-09-14
| | | | | | | aspect1->aspect2 and aspect2 fails then aspect1 throws IllegalStateException. -- MOS_MIGRATED_REVID=102976139
* Use the file size from FileValue instead of wastefully stat'ing the file ↵Gravatar Nathan Harmata2015-09-14
| | | | | | | again in order to get the file size in ParserInputSource#create (used multiple times for each BUILD file and Skylark .bzl file). -- MOS_MIGRATED_REVID=102930870
* Increase size of test timeout flaky on ci.bazel.ioGravatar Damien Martin-Guillerez2015-09-11
| | | | | | | | | See http://ci.bazel.io/job/Bazel/PLATFORM_NAME=darwin-x86_64/104/console process_wrapper_test is actually failing inside the timeout test so it is probably don't have enough time too. -- MOS_MIGRATED_REVID=102841728
* Allow tuples inside square brackets (for list/dict indexing).Gravatar Laurent Le Brun2015-09-11
| | | | | -- MOS_MIGRATED_REVID=102841541
* Fixed Skylark stack trace:Gravatar Florian Weikert2015-09-11
| | | | | | | | | - Moved registration mechanism from BaseFunction into ASTNode / Statement / Expression - Added more details about statements/expressions to the output trace (including if's) - Fixed wrong locations -- MOS_MIGRATED_REVID=102841164
* Fix Bazel breakageGravatar Damien Martin-Guillerez2015-09-11
| | | | | -- MOS_MIGRATED_REVID=102835622
* Fix BUILD_SCM_* being looked for in the stable status file and test it.Gravatar Brian Silverman2015-09-11
| | | | | | | | | | | | They're actually in the volatile status file, which is where it seems like they belong. Fixes #216. -- Change-Id: Ibec7737538ff5c1003b61d1bd3396948c61886de Reviewed-on: https://bazel-review.googlesource.com/1950 MOS_MIGRATED_REVID=102791996
* Refactor Skylark Environment-sGravatar Francois-Rene Rideau2015-09-11
| | | | | | | | | | | | | | | | | | | | Make Environment-s freezable: Introduce a class Mutability as a revokable capability to mutate objects in an Environment. For now, only Environment-s carry this capability. Make sure that every Mutability is revoked in the same function that create... This reinstates a change that previously rolled-back because it broke the serializability of SkylarkLookupValue. Bad news: serializing it succeeds for the wrong reason, because a SkylarkEnvironment was stored as a result (now an Environment.Extension) that was Serializable but inherited its bindings from an Environment (now an Environment.BaseExtension) which wasn't Serializable. Apparently, Java doesn't try to serialize the bindings then (or at least doesn't error out when it fails), because these bindings map variable names to pretty arbitrary objects, and a lot of those we find in practice aren't Serializable. Thus the current code passes the same tests as the previous code, but obviously the serialization is just as ineffective as it used to be. -- MOS_MIGRATED_REVID=102776694
* Fix bug in the parser when a block was silently skipped.Gravatar Laurent Le Brun2015-09-11
| | | | | | | Some cosmetic changes with EnumSets. -- MOS_MIGRATED_REVID=102742596
* Delay cleaning of in-flight nodes until the following build. This allows us ↵Gravatar Janak Ramakrishnan2015-09-11
| | | | | | | | | to interrupt evaluation in constant time. Some ParallelEvaluator tests that implicitly relied on cleaning happening before the next evaluation were moved into MemoizingEvaluatorTest as a result. -- MOS_MIGRATED_REVID=102696653
* Fix error message when accessing unsupported operator [].Gravatar Laurent Le Brun2015-09-11
| | | | | | | | Old message was e.g. "No matching method found for $index(int) in set" -- MOS_MIGRATED_REVID=102685114
* sandbox: Add a test to make sure opting-out via local=1 works.Gravatar Philipp Wollermann2015-09-09
| | | | | -- MOS_MIGRATED_REVID=102651489
* Automatically record exceptions and assert that there aren't any when using ↵Gravatar Janak Ramakrishnan2015-09-09
| | | | | | | NotifyingInMemoryGraph in tests. -- MOS_MIGRATED_REVID=102616906
* Call into the super's method in DeterministicValueEntry rather than trying ↵Gravatar Janak Ramakrishnan2015-09-08
| | | | | | | to roll our own for no reason. -- MOS_MIGRATED_REVID=102597506
* Deactivate flaky test //src/test/shell/bazel:generate_workspace_testGravatar Damien Martin-Guillerez2015-09-08
| | | | | | | Tracking issue: #432 -- MOS_MIGRATED_REVID=102592907
* sandbox: Show user-friendly mount paths in the namespace-sandbox debug log.Gravatar Philipp Wollermann2015-09-08
| | | | | | | Improvement for #424. -- MOS_MIGRATED_REVID=102566748
* sandbox: Better error messages and the noisy debug logs of the ↵Gravatar Philipp Wollermann2015-09-08
| | | | | | | | | namespace-runner now have to be explicitly activated via --sandbox_debug. Fixes #424. -- MOS_MIGRATED_REVID=102566625
* Add a supportedOs attribute to TestSpec to make it possible to split off ↵Gravatar Philipp Wollermann2015-09-08
| | | | | | | tests that can only run under certain operating systems (e.g. Linux sandboxing tests can only run under Linux) into separate suites. -- MOS_MIGRATED_REVID=102566414
* Add a localOnly attribute to TestSpec to make it easier to split tests into ↵Gravatar Philipp Wollermann2015-09-08
| | | | | | | parts that can run via remote execution and those that can only run on the local machine (e.g. due to needing extended permissione). -- MOS_MIGRATED_REVID=102565161
* Better comment for TestSpec.flaky().Gravatar Philipp Wollermann2015-09-08
| | | | | -- MOS_MIGRATED_REVID=102565057
* Add an "embedded_scripts" filegroup that can be used to easily get all the ↵Gravatar Philipp Wollermann2015-09-08
| | | | | | | necessary tools for integration tests. -- MOS_MIGRATED_REVID=102564985
* Replace pipe2() by pipe() and fnctl()Gravatar Damien Martin-Guillerez2015-09-08
| | | | | | | pipe2() does not exists on Darwin. -- MOS_MIGRATED_REVID=102544058
* Fix the blaze_util_test to compile and pass.Gravatar Ulf Adams2015-09-08
| | | | | | | | I had to comment out a couple of tests, I don't know why they're not passing right now. -- MOS_MIGRATED_REVID=102535967
* Display TIMEOUT for test that times outGravatar Damien Martin-Guillerez2015-09-08
| | | | | | | | | Previously the timing out information wasn't propagated to the user, leading to a wrong FAILED message whereas the test was timing out. -- MOS_MIGRATED_REVID=102535481
* Increase size of some testGravatar Damien Martin-Guillerez2015-09-08
| | | | | | | They are regularly timing out. -- MOS_MIGRATED_REVID=102534770
* Move blaze_util_test.cc into the open source tree.Gravatar Ulf Adams2015-09-08
| | | | | -- MOS_MIGRATED_REVID=102487385
* Remove BUILD.glob and incorporate the necessary filegroups into the ↵Gravatar Lukacs Berki2015-09-08
| | | | | | | | | android_{ndk,sdk}_repository rules themselves. This is to that the Android tests also work on OS X (otherwise, we'd end up creating a file called "BUILD" in its root, which doesn't work, because it already has a directory called "build") -- MOS_MIGRATED_REVID=102484286
* Shard and increase size of //src/test/shell/bazel:local_repository_testGravatar Damien Martin-Guillerez2015-09-08
| | | | | | | This test is timeout flaky on ci.bazel.io -- MOS_MIGRATED_REVID=102477110
* Rollback of commit 5a94e59f02833f9142bad9203acd72626b089535.Gravatar Janak Ramakrishnan2015-09-08
| | | | | | | | | *** Reason for rollback *** Breaks serialization of SkyValues. -- MOS_MIGRATED_REVID=102457225
* Refactor Skylark Environment-sGravatar Francois-Rene Rideau2015-09-08
| | | | | | | | | | | | | | | | | Make Environment-s freezable: Introduce a class Mutability as a revokable capability to mutate objects in an Environment. For now, only Environment-s carry this capability. Make sure that every Mutability is revoked in the same function that creates it, so no Environment is left open for modification after being created and exported; exceptions for tests, the shell and initialization contexts. Unify Environment, SkylarkEnvironment and EvaluationContext into Environment. Have a notion of Frame for the bindings + parent + mutability. Replace the updateAndPropagate mechanism by a dynamicFrame. Simplify ValidationEnvironment, that is now always deduced from the Environment. -- MOS_MIGRATED_REVID=102363438
* Move generate_workspace to src/toolsGravatar Kristina Chodorow2015-09-04
| | | | | | | | Seems like a better location for it (easier for people to run than src/main/java/com/google/devtools/build etc). -- MOS_MIGRATED_REVID=102354250
* Skylark: Show list of fields in error message for struct objects.Gravatar Laurent Le Brun2015-09-04
| | | | | -- MOS_MIGRATED_REVID=102341687
* Inject the default runfiles prefix from the rule class provider.Gravatar Ulf Adams2015-09-04
| | | | | -- MOS_MIGRATED_REVID=102341264
* Make the Android integration test verify if STL still works for our Android ↵Gravatar Lukacs Berki2015-09-04
| | | | | | | rules. -- MOS_MIGRATED_REVID=102336906
* Setup the ci build to test also Android tests when availableGravatar Damien Martin-Guillerez2015-09-04
| | | | | | | | | | | | With this script, the easiest way to run the test suite is now: bash -c "export ANDROID_SDK_PATH=$HOME/bin/android-sdk-linux; \ export ANDROID_NDK_PATH=$HOME/bin/android-ndk-r10e; \ source ./scripts/ci/build.sh; \ bazel_build output/ci" -- MOS_MIGRATED_REVID=102334239
* Make android_binary use a constant, hard-coded, checked-in debug key. Gravatar Lukacs Berki2015-09-04
| | | | | | | This is because apkbuilder uses $HOME/.android/debug.keystore by default, which does not exist when running within the sandbox, thus, it always generates a new debug key, and thus, "adb install -r" doesn't work. -- MOS_MIGRATED_REVID=102331570
* Keep function parameters in the AST.Gravatar Laurent Le Brun2015-09-04
| | | | | -- MOS_MIGRATED_REVID=102330569
* sandbox: Use a better data structure for the mounts.Gravatar Philipp Wollermann2015-09-04
| | | | | -- MOS_MIGRATED_REVID=102330179
* Add WalkableGraphUtils for easy (r)dep queriesGravatar Mark Schaller2015-09-03
| | | | | -- MOS_MIGRATED_REVID=102276335
* Add a method to EvaluationProgressReceiver for getting information on ↵Gravatar Nathan Harmata2015-09-03
| | | | | | | SkyFunction#compute calls. -- MOS_MIGRATED_REVID=102268773
* Add a bit more testing coverage to MemoizingEvaluatorTest.Gravatar Janak Ramakrishnan2015-09-03
| | | | | -- MOS_MIGRATED_REVID=102265945
* Implement a Python 2 compatible isalpha function for Skylark strings.Gravatar Googler2015-09-03
| | | | | -- MOS_MIGRATED_REVID=102263878
* Remove unused ParserInputSource method and other minor cleanupsGravatar Michajlo Matijkiw2015-09-03
| | | | | | | | | | | | Trying to curb usage of the create method taking a String for efficiency reasons. Noticed this method was unused + a few places where we could easily use chars instead of string. Not a major improvement but removes some temptation. RELNOTES: -- MOS_MIGRATED_REVID=102258319