Skip to content

Commit 8d94d18

Browse files
committed
Move the test binaries to the tests/ directory
1 parent c3bc306 commit 8d94d18

File tree

11 files changed

+11
-8
lines changed

11 files changed

+11
-8
lines changed

.github/workflows/hil.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
repository:
1010
description: "Owner and repository to test"
1111
required: true
12-
default: 'esp-rs/espflash'
12+
default: "esp-rs/espflash"
1313
branch:
1414
description: "Branch, tag or SHA to checkout."
1515
required: true
@@ -26,7 +26,6 @@ concurrency:
2626
cancel-in-progress: true
2727
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
2828

29-
3029
jobs:
3130
build-espflash:
3231
name: Build espflash
@@ -60,7 +59,13 @@ jobs:
6059
name: ${{ matrix.board.mcu }}${{ matrix.board.freq }}
6160
if: ${{ github.repository_owner == 'esp-rs' }}
6261
needs: build-espflash
63-
runs-on: [self-hosted, linux, x64, "${{ matrix.board.mcu }}${{ matrix.board.freq }}" ]
62+
runs-on:
63+
[
64+
self-hosted,
65+
linux,
66+
x64,
67+
"${{ matrix.board.mcu }}${{ matrix.board.freq }}",
68+
]
6469
strategy:
6570
matrix:
6671
board:
@@ -97,7 +102,7 @@ jobs:
97102
- name: flash test
98103
env:
99104
ESPFLASH_PORT: /dev/serial_ports/${{ matrix.board.mcu }}
100-
ESPFLASH_APP: espflash/resources/apps/${{ matrix.board.mcu }}
105+
ESPFLASH_APP: espflash/tests/data/${{ matrix.board.mcu }}
101106
shell: bash
102107
run: |
103108
result=$(espflash_app/espflash flash --no-skip ${{ env.ESPFLASH_APP }} 2>&1)
@@ -140,7 +145,7 @@ jobs:
140145
- name: save-image/write-bin test
141146
env:
142147
ESPFLASH_PORT: /dev/serial_ports/${{ matrix.board.mcu }}
143-
ESPFLASH_APP: espflash/resources/apps/${{ matrix.board.mcu }}
148+
ESPFLASH_APP: espflash/tests/data/${{ matrix.board.mcu }}
144149
run: |
145150
result=$(espflash_app/espflash save-image --merge --chip ${{ matrix.board.mcu }} ${{ matrix.board.flag }} ${{ env.ESPFLASH_APP }} app.bin 2>&1)
146151
echo "$result"
@@ -159,5 +164,3 @@ jobs:
159164
if ! echo "$result" | grep -q "Hello world!"; then
160165
exit 1
161166
fi
162-
163-

espflash/tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Test Resources
22

3-
This document describes how the test files under `tests/resources` were generated, so that they can be re-generated in the future if needed.
3+
This document describes how the test files under `tests/data` were generated, so that they can be re-generated in the future if needed.
44

55
## IDF Bootloader
66

-74 KB
Binary file not shown.

0 commit comments

Comments
 (0)