Files
prplMesh/ci/certification/templates.yml
Lu Dai 61497cd9a3 ci: r4: add mozart platform
add mozart into r4 test loop;
align the mozart configuration of r4 and boradfarm;

Signed-off-by: Lu Dai <lu.dai@mind.be>
2025-12-10 09:45:39 +01:00

107 lines
4.7 KiB
YAML

.certification:R1:freedom:
stage: certification-R1-freedom
extends: .certification-generic-R1
variables:
RUN_ON_DEVICE: "freedom"
before_script:
- tools/deploy_firmware.py --device freedom --target-name "$RUN_ON_DEVICE" --image "$FREEDOM_FULLIMAGE" --whm --configuration ci/configuration/certification/R1/freedom.sh
- tools/deploy_ipk.sh --certification-mode $RUN_ON_DEVICE build/$RUN_ON_DEVICE/prplmesh.ipk
needs:
- job: build-for-freedom
tags:
- certs-tests
- freedom
.certification:R4:freedom:
stage: certification-R4-freedom
extends: .certification-generic-R4
variables:
RUN_ON_DEVICE: "freedom"
before_script:
- tools/deploy_firmware.py --device freedom --target-name "$RUN_ON_DEVICE" --image "$FREEDOM_FULLIMAGE" --whm --configuration ci/configuration/certification/R4/freedom.sh
- tools/deploy_ipk.sh --certification-mode $RUN_ON_DEVICE build/$RUN_ON_DEVICE/prplmesh.ipk
- echo "Setting no on-boot scan for prplMesh"
- ssh freedom 'sed -ri "s/on_boot_scan=.*/on_boot_scan=0/g" /opt/prplmesh/config/beerocks_agent.conf'
- echo "Setting no profile disallow for prplMesh"
- ssh freedom 'sed -ri "s/profile_x_disallow_override_unsupported_configuration=.*/profile_x_disallow_override_unsupported_configuration=1/g" /opt/prplmesh/config/beerocks_agent.conf'
needs:
- job: build-for-freedom
tags:
- certs-tests-R4
- freedom
.certification:R4:freedom_on_boot_24:
extends: .certification:R4:freedom
before_script:
- !reference [.certification:R4:freedom, before_script]
- echo "Setting 2.4GHz on-boot scan for prplMesh"
- ssh freedom 'sed -ri "s/on_boot_scan=.*/on_boot_scan=2/g" /opt/prplmesh/config/beerocks_agent.conf'
.certification:R4:freedom_on_boot_5:
extends: .certification:R4:freedom
before_script:
- !reference [.certification:R4:freedom, before_script]
- echo "Setting 5GHz on-boot scan for prplMesh"
- ssh freedom 'sed -ri "s/on_boot_scan=.*/on_boot_scan=1/g" /opt/prplmesh/config/beerocks_agent.conf'
.certification:R4:freedom_downstream_R1_agent:
extends: .certification:R4:freedom
before_script:
- !reference [.certification:R4:freedom, before_script]
- echo "Setting Multi-AP profile 2 disallow for prplMesh (downstream R1 agent)"
- ssh freedom 'sed -ri "s/profile_x_disallow_override_unsupported_configuration=.*/profile_x_disallow_override_unsupported_configuration=2/g" /opt/prplmesh/config/beerocks_agent.conf'
.certification:R4:mozart:
stage: certification-R4-mozart
extends: .certification-generic-R4
variables:
RUN_ON_DEVICE: "mozart"
before_script:
- tools/deploy_firmware.py --device mozart --target-name "$RUN_ON_DEVICE" --image "$MOZART_FULLIMAGE" --whm --configuration ci/configuration/certification/R4/mozart.sh
- tools/deploy_ipk.sh --certification-mode $RUN_ON_DEVICE build/$RUN_ON_DEVICE/prplmesh.ipk
- echo "Setting no on-boot scan for prplMesh"
- ssh mozart 'sed -ri "s/on_boot_scan=.*/on_boot_scan=0/g" /opt/prplmesh/config/beerocks_agent.conf'
- echo "Setting no profile disallow for prplMesh"
- ssh mozart 'sed -ri "s/profile_x_disallow_override_unsupported_configuration=.*/profile_x_disallow_override_unsupported_configuration=1/g" /opt/prplmesh/config/beerocks_agent.conf'
needs:
- job: build-for-mozart
tags:
- certs-tests-R4
- mozart
.certification:R4:mozart_on_boot_24:
extends: .certification:R4:mozart
before_script:
- !reference [.certification:R4:mozart, before_script]
- echo "Setting 2.4GHz on-boot scan for prplMesh"
- ssh mozart 'sed -ri "s/on_boot_scan=.*/on_boot_scan=2/g" /opt/prplmesh/config/beerocks_agent.conf'
.certification:R4:mozart_on_boot_5:
extends: .certification:R4:mozart
before_script:
- !reference [.certification:R4:mozart, before_script]
- echo "Setting 5GHz on-boot scan for prplMesh"
- ssh mozart 'sed -ri "s/on_boot_scan=.*/on_boot_scan=1/g" /opt/prplmesh/config/beerocks_agent.conf'
.certification:R4:mozart_downstream_R1_agent:
extends: .certification:R4:mozart
before_script:
- !reference [.certification:R4:mozart, before_script]
- echo "Setting Multi-AP profile 2 disallow for prplMesh (downstream R1 agent)"
- ssh mozart 'sed -ri "s/profile_x_disallow_override_unsupported_configuration=.*/profile_x_disallow_override_unsupported_configuration=2/g" /opt/prplmesh/config/beerocks_agent.conf'
include:
- local: "ci/certification/R1/freedom.yml"
- local: "ci/certification/R4/freedom.yml"
- local: "ci/certification/R4/mozart.yml"
# Merge train tests
##################
merge-train:R1:freedom:MAP-4.4.2_BHWIFI_FH5GH:
extends: .certification:R1:freedom
rules:
- if: '$CI_MERGE_REQUEST_EVENT_TYPE == "merge_train"'
when: on_success
retry: 2