summaryrefslogtreecommitdiff
path: root/shell
AgeCommit message (Collapse)Author
2024-07-08honor toolchain also in summary actionKlaus T. Aehlig
2024-07-08fix typoKlaus Aehlig
2024-07-05Merge branch 'just-rules' into rulesKlaus Aehlig
2024-07-05tests: support additional remote-execution properties for summariesKlaus Aehlig
If a test is run several times (as set by RUNS_PER_TEST), a summary of the individual test runs is computed using a summarizer as configured in the target layer of the rules. As the inputs for computing that test summary are all the individual test runs, that action has a large number of files as input, including a large number of identical files, e.g., the ones indicating the outcome of an individual run. Therefore, allow setting additional remote-execution properties allowing to dispatch that action to a suitable end point.
2024-07-02["shell", "test"]: support bin dirsKlaus Aehlig
... by running a shell prolog with the provided shell to set PATH to the absolut paths of the shell-provided bin dirs.
2024-07-01["shell", "defaults"]: support "bin dirs"Klaus Aehlig
2024-05-29["shell/test", "script"] Keep computed pathKlaus Aehlig
... instead of throwing it away after correctly computing it. Fixes the environment if the shell defaults bring a custom path.
2024-05-28["shell", "cmds"]: correctly join PATHKlaus Aehlig
... as shell environment variable has to be a string, not a list.
2024-05-28New rule ["shell", "cmds"]Klaus Aehlig
Add a new rule to execute shell comands, honoring the shell tool chain. Is is done in such a way, that coreutils (in particular, pwd) can also come from the binary dirs of the shell tool chain.
2024-05-28["shell", "defaults"] add field "bin dirs"Klaus Aehlig
... to declare directories inside the toolchain that contain additional binaries.
2024-05-21Merge branch 'just-rules' into rulesKlaus Aehlig
2024-05-21["CC/auto", "config"] also honor shell-toolchain-provided PATHKlaus Aehlig
2024-05-15Merge branch 'just-rules' into rulesKlaus Aehlig
2024-05-15Add shell defaultsKlaus Aehlig
So far, our rules, where depending on the shell, implicitly use "normal" defaults, hard-coded in the rules. Support configuring those in a default target, in the same way we do so for other tools, like the C compiler. In this, it is also possible to bring your own shell, built as a (compiled) target.
2024-03-05Merge branch 'just-rules' into rulesKlaus Aehlig
2024-03-05test summarizer: in case of FLAKY tests, also report failure rateKlaus Aehlig
2023-08-29Merge branch 'just-rules' into rulesPaul Cristian Sarbu
2023-08-29python: Add type hints and fix style in rules scriptsPaul Cristian Sarbu
2023-08-21Merge branch 'just-rules' into rulesKlaus Aehlig
2023-08-21rules: Add documentation for the implict dependenciesKlaus Aehlig
2023-08-17Merge branch 'just-rules' into rulesKlaus Aehlig
2023-08-17["shell/test", "script"] Rename implicit dependenciesKlaus Aehlig
... and document at the appropriate places what can be overwritten by setting those targets.
2023-07-14Merge branch 'just-rules' into rulesKlaus Aehlig
2023-07-14["shell/test", "script"]: support target architectureKlaus Aehlig
... provided it is specified on how to obtain a remote-execution endpoint for the given architecture; in this case, the test (script and) dependencies will be cross compiled for and run on that architecture. The actual building (as well as summarizing multiple test runs) happens on the default execution end point.
2023-05-31Merge commit '970956cf14026dcc863befe38a9331a8065b91b3' into HEADKlaus Aehlig
2023-05-31["test/shell", "script"] Support long-running testsKlaus Aehlig
2023-04-11["shell/test", "script"]: make TEST_RUN_NUMBER availableKlaus Aehlig
If RUNS_PER_TEST is given, inform each individual test action about the run number it is executing. This can be used, e.g., to set random seeds appropriately.
2022-12-16rules: Add support for shared librariesOliver Reiche
2022-12-12rules: Fix missing arch vars for shell testsOliver Reiche
2022-12-09rules: Add cross-compile support for testsOliver Reiche
2022-12-09rules: Refactoring and minor improvementsOliver Reiche
Compared to the previous commit, the action graphs for just and its unit tests are unchanged. - Git hash of action graph for ["",""]: c6e75f17abd7ffaab6ff9bb725ad67ec0bf6c973 - Git hash of action graph for ["test/buildtool","TESTS"]: 8063dfb3dd7daa9ae01d95c177e14946f785c57e Refactor: - "local cflags" to "private-cflags" - "local defines" to "private-defines" - "link externals" to "private-ldflags" - "deps" to "private-deps" for (test) binaries - "proto" to "private-proto" for binaries Improvements: - consistent variable declaration order: OS, ARCH, HOST_ARCH, TARGET_ARCH, CC, CXX, CFLAGS, CXXFLAGS, ADD_CFLAGS, ADD_CXXFLAGS, AR, ENV, PATH - use fields close to their definition (in RULES) - use common expression for binaries and test binaries - split expression "flags" and "compiler" ... to separate ones for CC and CXX. - rename "transition" to "deps-transition" ... to avoid conflicts with other transitions. - support "defaults-transition" for CC expressions Implement: - "cflags" for libraries - "private-cflags" for (test) binaries - "private-defines" for test binaries - "private-ldflags" for test binaries - (public) "defines" for libraries
2022-10-12Add copyright and license notice to all source and header filesKlaus Aehlig
Signed-off-by: Goetz Brasche <goetz.brasche@huawei.com>
2022-10-10rules: Use new 'env' expressionOliver Reiche
2022-06-23Upd rules doc on writable directories available to test runnersPaul Cristian Sarbu
2022-06-07rules: Support TEST_ENV for shell/test scriptOliver Reiche
2022-06-02Add rule defaultsOliver Reiche
2022-04-26rules: Add field_artifacts_list and field_runfiles_listOliver Reiche
... which are more efficient if the caller wants to perform the union manually (because disjointness should be enforced or additional maps should be added to the union, etc.). As a positive side effect, code reuse is slightly increased by consistently calling these newly introduced expressions for obtaining the artifacts/runfiles from all targets of a target field.
2022-04-26Improve documenatation of our internal rulesKlaus Aehlig
In particular, document the result for the most important rules.
2022-04-07fix a typoAlberto Sartori
2022-03-02Extend shell-test rules to optionally detect flakynessKlaus Aehlig
2022-02-23Add shell/test ruleKlaus Aehlig
... allowing to run simple tests given by a shell script.