summaryrefslogtreecommitdiff
path: root/zephyr/zmake/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* zephyr: zmake: add a test for BuildConfig objectsJack Rosenthal2021-01-291-0/+184
| | | | | | | | | | | | | | | Implement test coverage for BuildConfigs, including merging using `|` operator, and running `popen_cmake`. BUG=b:178642582 BRANCH=none TEST=pytest Cq-Depend: chromium:2654350 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I07d8e913af999dac4f66f904b9d53e974e57eb40 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2656515 Reviewed-by: Simon Glass <sjg@chromium.org>
* zmake: allow overriding default log level for file descriptorYuval Peress2021-01-141-0/+29
| | | | | | | | | | | | | | | | | | | | This change allows users of the multiproc logging functionality to override the log level used for a given file descriptor. This is particularly useful when addressing an issue with ninja builds that print everything to stdout (including errors). BRANCH=none BUG=b:176364631 TEST=introduce a bug then run zmake build $BUILD_DIR, observe most output is suppressed, but after the error takes place, all logging is made to CRITICAL. TEST=add unit test Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: I1dba8a06f0dfebe91e49829dbb8d91f1b71f58f5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2625550 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
* zephyr: zmake: Move tool tests to platform/ecYuval Peress2021-01-122-0/+147
This change copies the zmake tests from zephyr-chrome over to platform/ec to match the tool's relocation. BRANCH=none BUG=b:177003034 TEST=pytest zephyr/zmake/tests TEST=zmake testall Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: I764af51cfcea6821f3bc9274cdfbf42b2da4fb7e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2622503