Skip to content

Commit

Permalink
Tizen QEMU tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq committed Feb 6, 2023
1 parent 21d3dc3 commit 0e81c05
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 2 deletions.
49 changes: 47 additions & 2 deletions .github/workflows/qemu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ env:
CHIP_NO_LOG_TIMESTAMPS: true

jobs:
qemu:

qemu-esp32:
name: ESP32
timeout-minutes: 85

Expand All @@ -37,7 +38,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: connectedhomeip/chip-build-esp32-qemu:0.6.35
image: connectedhomeip/chip-build-esp32-qemu:0.6.39
volumes:
- "/tmp/log_output:/tmp/test_logs"

Expand Down Expand Up @@ -83,3 +84,47 @@ jobs:
with:
name: qemu-esp32-logs
path: /tmp/log_output

qemu-tizen:
name: Tizen

runs-on: ubuntu-latest
if: github.actor != 'restyled-io[bot]'

container:
image: connectedhomeip/chip-build-tizen-qemu:0.6.39
volumes:
- "/tmp/log_output:/tmp/test_logs"

steps:
- uses: Wandalen/[email protected]
name: Checkout
with:
action: actions/checkout@v3
with: |
token: ${{ github.token }}
attempt_limit: 3
attempt_delay: 2000
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform tizen

- name: Bootstrap
run: scripts/build/gn_bootstrap.sh

- name: Build Tizen examples used by QEMU test runner
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--enable-flashbundle \
--target tizen-arm-chip-tool-no-ble \
--target tizen-arm-light-no-ble \
build
"
- name: Run tests
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--target tizen-qemu-tests-no-ble \
build
"
5 changes: 5 additions & 0 deletions scripts/build/builders/tizen.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ def is_tpk(self):
"""If True, this app is a TPK."""
return isinstance(self.value, App)

@property
def is_test(self):
"""If True, this app is a test driver."""
return isinstance(self.value, TestDriver)

@property
def package_name(self):
return self.manifest.get('package')
Expand Down

0 comments on commit 0e81c05

Please sign in to comment.