-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update input condition whether to test mg12/mg24 or not
- Loading branch information
1 parent
0139679
commit 4b12f5a
Showing
1 changed file
with
10 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,15 @@ on: | |
type: string | ||
default: 'iec_efr32' | ||
|
||
test_mg12: | ||
description: 'Run test with MG12?' | ||
type: boolean | ||
default: 'true' | ||
test_mg24: | ||
description: 'Run test with MG24MG24?' | ||
type: boolean | ||
default: 'true' | ||
|
||
mg12_serialnum: | ||
description: 'Serial number of target board to test for GCC MG12' | ||
type: string | ||
|
@@ -50,252 +59,7 @@ on: | |
- programme_counter | ||
- invariable_memory | ||
- system_clock | ||
- variable_memory | ||
- watchdog | ||
- bist | ||
- post | ||
- irq | ||
- integrated | ||
|
||
env: | ||
SECURITY: APP_SECURE=false | ||
COMMAND: all | ||
COMPONENT: all | ||
jobs: | ||
job1: | ||
name: Generate Documents | ||
runs-on: [self-hosted, sqa-ds-hn-003] | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
ref: "${{ github.event.inputs.branch }}" | ||
if: github.event_name == 'workflow_dispatch' | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
if: github.event_name == 'pull_request' | ||
- name: Remove Libraries | ||
run: rm -rf EFR32_ICE60730_Libraries | ||
- name: Create directory for Libraries | ||
run: mkdir EFR32_ICE60730_Libraries | ||
- name: Generate Documents with Doxygen | ||
run: doxygen qat.doxygen | ||
- name: Upload Documents | ||
uses: actions/[email protected] | ||
with: | ||
path: | ||
Doc/html/EFR32_ICE60730_Libraries/ | ||
warn: Output a warning but do not fail the action | ||
retention-days: 90 | ||
|
||
job2: | ||
if: ${{ always() }} | ||
needs: [job1] | ||
name: GCC-MG12 regression test | ||
runs-on: [self-hosted, sqa-ds-hn-006] | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
env: | ||
COMPILER: GCC | ||
PLATFORM: MG12 | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
ref: "${{ github.event.inputs.branch }}" | ||
if: github.event_name == 'workflow_dispatch' | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
if: github.event_name == 'pull_request' | ||
- name: Setup environment variables | ||
run: | ||
export HOST_IP=${{ github.event.inputs.mg12_hostip }} && | ||
export SERIAL_NUM=${{ github.event.inputs.mg12_serialnum }} && | ||
export SECURITY=${{ github.event.inputs.security }} && | ||
export COMMAND=${{ github.event.inputs.command }} && | ||
export COMPONENT=${{ github.event.inputs.component }} | ||
|
||
if: github.event_name == 'workflow_dispatch' | ||
- name: Check working directory | ||
run: | ||
pwd && | ||
ls -la | ||
- name: Prepare Test directory | ||
run: | ||
chmod -R 777 ./Test | ||
- name: Assign environment variables | ||
run: | ||
export TOOL_DIRS=/home/sqa/SimplicityStudio-5/SimplicityStudio_v5/developer/toolchains/gnu_arm/10.3_2021.10/bin && | ||
whoami && | ||
export HOST_IP=$HOST_IP && | ||
export COMPILER=GCC && | ||
export APP_TYPE=SecureApp | ||
|
||
- name: Testing | ||
run: | ||
cd Test/ && | ||
ls -la && | ||
./execute_test.sh $COMMAND $COMPONENT $SERIAL_NUM $PLATFORM $COMPILER $SECURITY | ||
|
||
- name: Generate test report | ||
run: | ||
cd Test/ && | ||
ls -la && | ||
python test_script/get_report.py && | ||
|
||
- name: Upload results and logs | ||
uses: actions/[email protected] | ||
with: | ||
path: | ||
result/ | ||
artifact/ | ||
log/ | ||
warn: Output a warning but do not fail the action | ||
retention-days: 90 | ||
|
||
job3: | ||
if: ${{ always() }} | ||
needs: [job1, job2] | ||
name: GCC-MG24 regression test | ||
runs-on: [self-hosted, sqa-ds-hn-006] | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
env: | ||
COMPILER: GCC | ||
PLATFORM: MG24 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
ref: "${{ github.event.inputs.branch }}" | ||
if: github.event_name == 'workflow_dispatch' | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
if: github.event_name == 'pull_request' | ||
- name: Setup environment variables | ||
run: | ||
export HOST_IP=${{ github.event.inputs.mg24_hostip }} && | ||
export SERIAL_NUM=${{ github.event.inputs.mg24_serialnum }} && | ||
export SECURITY=${{ github.event.inputs.security }} && | ||
export COMMAND=${{ github.event.inputs.command }} && | ||
export COMPONENT=${{ github.event.inputs.component }} | ||
|
||
if: github.event_name == 'workflow_dispatch' | ||
|
||
- name: Check working directory | ||
run: | ||
pwd && | ||
ls -la | ||
- name: Prepare Test directory | ||
run: | ||
chmod -R 777 ./Test | ||
|
||
- name: Assign environment variables | ||
run: | ||
export TOOL_DIRS=/home/sqa/SimplicityStudio-5/SimplicityStudio_v5/developer/toolchains/gnu_arm/10.3_2021.10/bin && | ||
whoami && | ||
export HOST_IP=$HOST_IP && | ||
export COMPILER=GCC && | ||
export APP_TYPE=SecureApp | ||
|
||
- name: Testing | ||
run: | ||
cd Test/ && | ||
ls -la && | ||
./execute_test.sh $COMMAND $COMPONENT $SERIAL_NUM $PLATFORM $COMPILER $SECURITY | ||
|
||
- name: Generate test report | ||
run: | ||
cd Test/ && | ||
ls -la && | ||
python test_script/get_report.py && | ||
|
||
- name: Upload results and logs | ||
uses: actions/[email protected] | ||
with: | ||
path: | ||
result/ | ||
artifact/ | ||
log/ | ||
warn: Output a warning but do not fail the action | ||
retention-days: 90 | ||
|
||
job4: | ||
if: ${{ always() }} | ||
needs: [job1, job2, job3] | ||
name: IAR-MG12 regression test | ||
runs-on: [self-hosted, sqa-ds-hn-006] | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
env: | ||
COMPILER: IAR | ||
PLATFORM: MG12 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
ref: "${{ github.event.inputs.branch }}" | ||
if: github.event_name == 'workflow_dispatch' | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
if: github.event_name == 'pull_request' | ||
- name: Setup environment variables | ||
run: | ||
export HOST_IP=${{ github.event.inputs.mg12_hostip }} && | ||
export SERIAL_NUM=${{ github.event.inputs.mg12_serialnum }} && | ||
export SECURITY=${{ github.event.inputs.security }} && | ||
export COMMAND=${{ github.event.inputs.command }} && | ||
export COMPONENT=${{ github.event.inputs.component }} | ||
|
||
if: github.event_name == 'workflow_dispatch' | ||
|
||
- name: Check working directory | ||
run: | ||
pwd && | ||
ls -la | ||
- name: Prepare Test directory | ||
run: | ||
chmod -R 777 ./Test | ||
|
||
- name: Assign environment variables | ||
run: | ||
whoami | ||
export HOST_IP=$HOST_IP && | ||
export TOOL_DIRS=/home/sqa/EmbeddedWorkbench8.4/arm/bin && | ||
export APP_TYPE=SecureApp | ||
|
||
- name: Testing | ||
run: | ||
cd Test && | ||
ls -la && | ||
./execute_test.sh $COMMAND $COMPONENT $SERIAL_NUM $PLATFORM $COMPILER $SECURITY | ||
|
||
- name: Generate test report | ||
run: | ||
cd Test/ && | ||
ls -la && | ||
python test_script/get_report.py | ||
|
||
- name: Upload results and logs | ||
uses: actions/[email protected] | ||
with: | ||
path: | ||
result/ | ||
artifact/ | ||
log/ | ||
warn: Output a warning but do not fail the action | ||
retention-days: 90 | ||
|
||
job5: | ||
if: ${{ always() }} | ||
- varmg24 == 'true' | ||
needs: [job1, job2, job3, job4] | ||
name: IAR-MG24 regression test | ||
runs-on: [self-hosted, sqa-ds-hn-006] | ||
|