]> granicus.if.org Git - esp-idf/commit
CI: assign unit test cases according to sdkconfig:
authorHe Yin Ling <heyinling@espressif.com>
Tue, 15 May 2018 03:51:56 +0000 (11:51 +0800)
committerbot <bot@espressif.com>
Thu, 24 May 2018 03:40:03 +0000 (03:40 +0000)
commit3b24bc42d2b52cefbac02e3302bde5c31fc1b62a
tree71d2d9edbe1f93fc03a089ef93626bfac8e92a09
parent358c822d6a29c8f881fd2fbbb100ec9fa9320596
CI: assign unit test cases according to sdkconfig:

We have built unit-test-app with different configs.
Currently we use the config name as tags to match runners.
It's not easy to add new configs (need to update tags to existed runners).

Now we'll parse required test runner tags from `sdkconfig` file.
For example, if config enables `CONFIG_SPIRAM_SUPPORT`, then it requires `psram` tag.
This will make adding new configs easier.

In this commit we change the one behavior of assign test: match keys of
cases should be exactly the same with job tags. This fixes cases select
jobs include their tags, and jobs requires those tags can't be assigned.
.gitlab-ci.yml
tools/tiny-test-fw/CIAssignExampleTest.py
tools/tiny-test-fw/CIAssignUnitTest.py
tools/tiny-test-fw/Utility/CIAssignTest.py
tools/tiny-test-fw/Utility/GitlabCIJob.py
tools/unit-test-app/tools/ConfigDependency.yml [new file with mode: 0644]
tools/unit-test-app/tools/UnitTestParser.py
tools/unit-test-app/unit_test.py