support/scripts/generate-gitlab-ci-yml: make it possible to test multiple defconfigs
PATCH 1/1 support/scripts/generate-gitlab-ci-yml: make it possible to test multiple defconfigs
Already supported:
- Pushing a branch called "<foo>-defconfigs" tests all defconfigs.
- Pushing a branch called "<foo>-defconfig-<defconfig-name>" will test one particular defconfig
This commit adds support for:
- Pushing a branch called "<foo>-defconfigs-<pattern>" which will test all defconfigs whose name start with the pattern. For example "<foo>-defconfigs-qemu_" will test all Qemu defconfigs
---
Ideally, this should be documented in the Buildroot manual, but I'm not sure where it should be documented.
--- support/scripts/generate-gitlab-ci-yml | 5 +++++ 1 file changed, 5 insertions(+)
support/scripts/generate-gitlab-ci-yml +5 -0
@@ -66,6 +66,11 @@ gen_tests() { (*-defconfigs) do_defconfigs=base ;; + (*-defconfigs-*) + pattern=$(echo ${CI_COMMIT_REF_NAME} | sed 's%[^\-]*-defconfigs-\(.*\)%\1%') + defconfigs=( $(cd configs; LC_ALL=C ls -1 | grep ^${pattern}) ) + do_defconfigs=base + ;; (*-*_defconfig) defconfigs=( "${CI_COMMIT_REF_NAME##*-}" ) do_defconfigs=base
Signature · 6 lines
2.31.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Thomas,
Le 29/12/2021 à 15:38, Thomas Petazzoni a écrit :
Quoted 4 lines
Already supported:
- Pushing a branch called "<foo>-defconfigs" tests all defconfigs.
Quoted 8 lines
- Pushing a branch called "<foo>-defconfig-<defconfig-name>" will test one particular defconfig
This commit adds support for:
- Pushing a branch called "<foo>-defconfigs-<pattern>" which will test all defconfigs whose name start with the pattern. For example "<foo>-defconfigs-qemu_" will test all Qemu defconfigs
I'm doing a shameless local hack in generate-gitlab-ci-yml to keep only qemu* defconfig for testing in gitlab:
defconfigs=( $(cd configs; LC_ALL=C ls -1 qemu*_defconfig) )
Quoted 5 lines
Signed-off-by Thomas Petazzoni <[email protected]>---
Ideally, this should be documented in the Buildroot manual, but I'm not sure where it should be documented.
Probably a new chapter after "22.7. Using the run-tests framework".
"22.8. Testing using Buildroot's gitlab-ci"
Quoted 9 lines
--- support/scripts/generate-gitlab-ci-yml | 5 +++++ 1 file changed, 5 insertions(+)support/scripts/generate-gitlab-ci-yml +0
-0
support/scripts/generate-gitlab-ci-yml gen_tests() { · line 73
Quoted 8 lines
support/scripts/generate-gitlab-ci-yml +5
-0@@ -66,6 +66,11 @@ gen_tests() { (*-defconfigs) do_defconfigs=base ;; + (*-defconfigs-*) + pattern=$(echo ${CI_COMMIT_REF_NAME} | sed 's%[^\-]*-defconfigs-\(.*\)%\1%') + defconfigs=( $(cd configs; LC_ALL=C ls -1 | grep ^${pattern}) ) + do_defconfigs=base + ;;
I'll use this patch next time I'll test qemu defconfig.
Best regards,
Romain
support/scripts/generate-gitlab-ci-yml gen_tests() { · line 76
Quoted 4 lines
support/scripts/generate-gitlab-ci-yml +0
-0(*-*_defconfig) defconfigs=( "${CI_COMMIT_REF_NAME##*-}" ) do_defconfigs=base
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Yann E. MORIN
AppliedThomas, All,
On 2021-12-29 15:38 +0100, Thomas Petazzoni spake thusly:
Quoted 7 lines
Already supported:
- Pushing a branch called "<foo>-defconfigs" tests all defconfigs.
- Pushing a branch called "<foo>-defconfig-<defconfig-name>" will test one particular defconfig
Quoted 7 lines
This commit adds support for:
- Pushing a branch called "<foo>-defconfigs-<pattern>" which will test all defconfigs whose name start with the pattern. For example "<foo>-defconfigs-qemu_" will test all Qemu defconfigs
Signed-off-by Thomas Petazzoni <[email protected]>
Applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 30 lines
---
Ideally, this should be documented in the Buildroot manual, but I'm not sure where it should be documented.--- support/scripts/generate-gitlab-ci-yml | 5 +++++ 1 file changed, 5 insertions(+)support/scripts/generate-gitlab-ci-yml +5
-0@@ -66,6 +66,11 @@ gen_tests() { (*-defconfigs) do_defconfigs=base ;; + (*-defconfigs-*) + pattern=$(echo ${CI_COMMIT_REF_NAME} | sed 's%[^\-]*-defconfigs-\(.*\)%\1%') + defconfigs=( $(cd configs; LC_ALL=C ls -1 | grep ^${pattern}) ) + do_defconfigs=base + ;; (*-*_defconfig) defconfigs=( "${CI_COMMIT_REF_NAME##*-}" ) do_defconfigs=baseSignature · 6 lines
2.31.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot