aboutsummaryrefslogtreecommitdiff
path: root/ci.sh
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2021-12-07 00:28:32 +0100
committerDario Nieuwenhuis <[email protected]>2021-12-07 00:29:41 +0100
commitdde6607aec758df431eafb5844a78888bc7231e7 (patch)
tree3d43450b7ba67112dad3968fa836f09d4d75026a /ci.sh
parent693690cb5abf5855d190e58142e2b5f7dd63f2bb (diff)
Add timer test, add g0, g4 tests.
Diffstat (limited to 'ci.sh')
-rwxr-xr-xci.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/ci.sh b/ci.sh
index e6a882da3..046038ffa 100755
--- a/ci.sh
+++ b/ci.sh
@@ -57,7 +57,9 @@ cargo batch \
57 --- build --release --manifest-path examples/stm32wb55/Cargo.toml --target thumbv7em-none-eabihf --out-dir out/examples/stm32wb55 \ 57 --- build --release --manifest-path examples/stm32wb55/Cargo.toml --target thumbv7em-none-eabihf --out-dir out/examples/stm32wb55 \
58 --- build --release --manifest-path examples/stm32wl55/Cargo.toml --target thumbv7em-none-eabihf --out-dir out/examples/stm32wl55 \ 58 --- build --release --manifest-path examples/stm32wl55/Cargo.toml --target thumbv7em-none-eabihf --out-dir out/examples/stm32wl55 \
59 --- build --release --manifest-path examples/wasm/Cargo.toml --target wasm32-unknown-unknown --out-dir out/examples/wasm \ 59 --- build --release --manifest-path examples/wasm/Cargo.toml --target wasm32-unknown-unknown --out-dir out/examples/wasm \
60 --- build --release --manifest-path tests/stm32/Cargo.toml --target thumbv7em-none-eabi --out-dir out/tests/stm32f4 \ 60 --- build --release --manifest-path tests/stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32f429zi --out-dir out/tests/nucleo-stm32f429zi \
61 --- build --release --manifest-path tests/stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32g491re --out-dir out/tests/nucleo-stm32g491re \
62 --- build --release --manifest-path tests/stm32/Cargo.toml --target thumbv6m-none-eabi --features stm32g071rb --out-dir out/tests/nucleo-stm32g071rb \
61 63
62 64
63function run_elf { 65function run_elf {
@@ -70,6 +72,7 @@ function run_elf {
70 -H "Authorization: Bearer $TELEPROBE_TOKEN" \ 72 -H "Authorization: Bearer $TELEPROBE_TOKEN" \
71 https://teleprobe.embassy.dev/targets/$1/run --data-binary @$2 73 https://teleprobe.embassy.dev/targets/$1/run --data-binary @$2
72 ) 74 )
75 echo
73 echo HTTP Status code: $STATUSCODE 76 echo HTTP Status code: $STATUSCODE
74 test "$STATUSCODE" -eq 200 77 test "$STATUSCODE" -eq 200
75} 78}
@@ -83,6 +86,9 @@ if [[ -z "${TELEPROBE_TOKEN-}" ]]; then
83 export TELEPROBE_TOKEN=$(curl -sS -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL" | jq -r '.value') 86 export TELEPROBE_TOKEN=$(curl -sS -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL" | jq -r '.value')
84fi 87fi
85 88
86 89for board in $(ls out/tests); do
87run_elf nucleo-stm32f429zi out/tests/stm32f4/gpio 90 echo Running tests fo board: $board
88 91 for elf in $(ls out/tests/$board); do
92 run_elf $board out/tests/$board/$elf
93 done
94done