[riot-notifications] [RIOT-OS/RIOT] tools/compile_and_test_for_board.py: allow use of wildcards for applications selection (#10838)

Alexandre Abadie notifications at github.com
Tue Jan 22 09:31:49 CET 2019

The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.

### Contribution description

This is adding the possibility to use wildcard to select multiple applications easily with `compile_and_test_for_board.py`. This is used with `--applications` and `--application-exclude` parameters

For the moment, you can only explicitly select a list of applications with `--applications="tests/shell tests/buttons"` but you can't easily select all applications in `tests`.

With this PR, one can do:

    compile_and_test_for_board.py --applications="tests/*" --applications-exclude="tests/xtimer* tests/pkg*" <riotbase> <board>

Put here the description of your contribution:
- describe which part(s) of RIOT is (are) involved
- if it's a bug fix, describe the bug that it solves and how it is solved
- you can also give more information to reviewers about how to test your changes

### Testing procedure

- Only build examples applications for native:

      compile_and_test_for_board.py --jobs=4 --applications="examples/*" <riotbase> native

- Only build `tests/shell` with test xtimer tests but without xtimer_usleep*:

      compile_and_test_for_board.py --jobs=4 --applications="tests/shell tests/xtimer*" --applications-exclude="tests/xtimer_usleep*" <riotbase> native

- One can also test the corner cases with only '*", for example, the following does nothing:

      compile_and_test_for_board.py --jobs=4 --applications="*" --applications-exclude="*" <riotbase> native

Details steps to test your contribution:
- which test/example to compile for which board and is there a 'test' command
- how to know that it was not working/available in master
- the expected success test output

### Issues/PRs references

Follow-up of #10837 

Examples: Fixes #1234. See also #5678. Depends on PR #9876.

Please use keywords (e.g., fixes, resolve) with the links to the issues you
resolved, this way they will be automatically closed when your pull request
is merged. See https://help.github.com/articles/closing-issues-using-keywords/.

You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * tools/compile_test_board: allow use of wildcards for applications

-- File Changes --

    M dist/tools/compile_and_test_for_board/compile_and_test_for_board.py (32)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190122/a1c41d70/attachment-0001.html>

More information about the notifications mailing list