Skip to content

Commit

Permalink
update unit test and integration test workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Bich Vu Thi Ngoc committed Oct 9, 2024
1 parent 9e36c74 commit 73f3a7d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/generate_firmware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,10 @@ jobs:
TOOL_DIRS: arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi/bin
COMPILER: GCC
TOOL_CHAINS: GCC
PLATFORM: MG12
APP_TYPE: SecureApp
SECURITY: APP_SECURE=false
COMMAND: all
TASK: gen-only
COMPONENT: all
ADAPTER_SN: 440133193
CHIP: EFR32MG24BXXXF1536
OPTION_INTEGRATION_TEST: -DENABLE_CAL_CRC_32=ON -DENABLE_CRC_USE_SW=ON -DTEST_SECURE_PERIPHERALS_ENABLE=ON -DINTEGRATION_TEST_WDOG1_ENABLE=ON - INTEGRATION_TEST_USE_MARCHX_DISABLE=ON
steps:
- name: Checkout
uses: actions/[email protected]
Expand Down Expand Up @@ -145,7 +141,7 @@ jobs:
export LST_PATH=$PWD/test/integration_test/build/brd4187c/integration_test_iec60730_watchdog/S
export JLINK_PATH=/opt/SEGGER/JLink/libjlinkarm.so
export HOST_IP=192.168.1.69
bash execute_test.sh $BOARD_NAME $TASK $COMPONENT $ADAPTER_SN $GCC $OPTION_INTEGRATION_TEST
bash execute_integration_test.sh $BOARD_NAME $TASK $COMPONENTS $ADAPTER_SN $COMPILER
- name: Upload firmware
uses: actions/[email protected]
with:
Expand All @@ -166,13 +162,10 @@ jobs:
COMPILER: GCC
TOOL_CHAINS: GCC
PLATFORM: MG12
APP_TYPE: SecureApp
SECURITY: APP_SECURE=false
COMMAND: all
TASK: gen-only
COMPONENT: all
ADAPTER_SN: 440189400
CHIP: EFR32MG12
OPTION_INTEGRATION_TEST: -DENABLE_CAL_CRC_32=ON -DENABLE_CRC_USE_SW=ON -DTEST_SECURE_PERIPHERALS_ENABLE=ON -DINTEGRATION_TEST_WDOG1_ENABLE=ON - INTEGRATION_TEST_USE_MARCHX_DISABLE=ON
steps:
- name: Checkout
uses: actions/[email protected]
Expand Down Expand Up @@ -283,7 +276,7 @@ jobs:
export LST_PATH=$PWD/test/integration_test/build/brd4187c/integration_test_iec60730_watchdog/S
export JLINK_PATH=/opt/SEGGER/JLink/libjlinkarm.so
export HOST_IP=192.168.1.69
bash execute_test.sh $BOARD_NAME $TASK $COMPONENT $ADAPTER_SN $GCC $OPTION_INTEGRATION_TEST
bash execute_integration_test.sh $BOARD_NAME $TASK $COMPONENTS $ADAPTER_SN $COMPILER
- name: Upload firmware
uses: actions/[email protected]
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/integration_test_auto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ jobs:
job2:
name: Integration test for mg12 with gcc
runs-on: [self-hosted, ds-sqa-hn-iec]
if: ${{ always() }}
needs: [job1]
permissions:
contents: read
pull-requests: write
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/unit_test_auto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ jobs:
job2:
name: Unit test for mg12 with gcc
runs-on: [self-hosted, ds-sqa-hn-iec]
if: ${{ always() }}
needs: [job1]
permissions:
contents: read
pull-requests: write
Expand Down

0 comments on commit 73f3a7d

Please sign in to comment.