summaryrefslogtreecommitdiff
path: root/tools/rbcrun/testdata
AgeCommit message (Collapse)Author
2023-11-09Prevent using symlinks to starlark files Cole Faust
Symlinks are frequently confusing / a source of bugs. They also don't provide much utility over just loading the other file and re-exporting its symbols, so recommend doing that instead. Test: Presubmits Change-Id: Ie3052ebc0add77f1746d6321fbdf7bc15df9819b
2023-11-07Only allow .scl files to load other .scl files Cole Faust
.scl files are starlark configuraiont language files, which is starlark without any of the bazel buildin symbols. This is to match bazel's behavior, and it doesn't make sense for scl files to load bzl files. We should change all the release config bzl files to scl, and then also make it so that when using executionModeScl you can only load scl files. Test: go test Change-Id: I196bcf3a4548118791ed1d47c2d37e46a1ef86c4
2023-05-09Allow importing starlark code in makefiles Cole Faust
Adds a new `$(call run-starlark,my/starlark/file.bzl)` function that will run the starlark file and set all the variables in the variables_to_export_to_make dictionary as make variables. Fixes: 280685526 Test: m nothing repeatedly causes no ninja regeneration, but touching all_versions.bzl does. go test, ./out/rbcrun -mode=rbc ./build/make/tests/run.rbc Change-Id: Ic72e18dd28dba8233ba2dfb658b5d03ccece1bfd
2023-05-05Remove unneeded rbcrun features Cole Faust
- rblf_cli and rblf_env - -c and -f This is in preparation for making rbcrun able to function as a more general purpose starlark interpreter. Bug: 280685526 Test: go test, ./out/rbc ./build/make/tests/run.rbc, ./build/bazel/ci/rbc_dashboard.py --quick aosp_arm64 Change-Id: Ifff9ce7b4369422f39c5003bb85a168c78bde7cf
2022-04-26Sort rblf_wildcard results and remove file existence functions Cole Faust
Kati's $(wildcard) results are guaranteed to be sorted, but go's filepath.Glob() is not. Remove the file existence functions because they can just be replaced with wildcards. Bug: 226974242 Test: go test Change-Id: I02fb6292b932bc28cd856ec3c7cb9ed9e96ca630
2022-03-30Remove regex functionality from rbcrun Cole Faust
As a first step to making .rbc files compatible with bazel, remove regex support since bazel doesn't have it. Fixes: 227384703 Test: ./out/rbcrun ./build/make/tests/run.rbc Change-Id: I8b946c20cc42897a47a5516a167732f4e16b6158
2021-08-19Add find_files builtin, use it to fix find_and_copy implementation Sasha Smundak
The macro find-and-copy finds all the files in the given source tree that match the given filename patten and create <source>:<dest> pair with the same relative path in the destination tree. Bug: 193540681 Test: rbcrun build/make/tests/run.rbc Change-Id: Ic4315ce2fab7a7791ab55dd9eed039205a1c721a
2021-08-10Fix rblf_file_exists, it should return true for a directory, too. Sasha Smundak
Fixes: 184278019 Test: internal Change-Id: I68c3274a4540dd36e047d6c2027766dbe75d38f8
2021-03-18Roboleaf product configuration runner Sasha Smundak
The application rbcrun executes Starlark scripts that define Android product configurations. See README.md for details. Test: go test Fixes: 180529448 Change-Id: I7d728b47d3f381b7052a0d7d51c9e698e5c2e316