@@ -66,135 +66,3 @@ jobs:
6666 echo "Run twister tests"
6767 source zephyr-env.sh
6868 PYTHONPATH="./scripts/tests" pytest ./scripts/tests/twister_blackbox/
69-
70- - name : Build firmware No. 1 - basic
71- working-directory : zephyr
72- shell : bash
73- run : |
74- if [ "${{ runner.os }}" = "macOS" ]; then
75- EXTRA_TWISTER_FLAGS="-P native_sim --build-only"
76- elif [ "${{ runner.os }}" = "Windows" ]; then
77- EXTRA_TWISTER_FLAGS="-P native_sim --short-build-path -O /tmp/twister-out"
78- fi
79- ./scripts/twister --runtime-artifact-cleanup --force-color --inline-logs -T samples/hello_world -T samples/cpp/hello_world -v $EXTRA_TWISTER_FLAGS -P qemu_cortex_m0
80- rm -rf twister-out*
81-
82- - name : Build firmware No. 2 - save and load with emulation only
83- working-directory : zephyr
84- shell : bash
85- run : |
86- if [ "${{ runner.os }}" = "macOS" ]; then
87- EXTRA_TWISTER_FLAGS="-P native_sim --build-only"
88- elif [ "${{ runner.os }}" = "Windows" ]; then
89- EXTRA_TWISTER_FLAGS="-P native_sim --short-build-path -O /tmp/twister-out"
90- fi
91- BASIC_FLAGS="--runtime-artifact-cleanup --force-color --inline-logs -T samples/hello_world -T samples/cpp/hello_world -v $EXTRA_TWISTER_FLAGS"
92- ./scripts/twister --save-tests tests.file $BASIC_FLAGS -P qemu_cortex_m0
93- ./scripts/twister --load-tests tests.file --emulation-only $BASIC_FLAGS -P qemu_cortex_m0
94- rm tests.file
95- rm -rf twister-out*
96-
97- - name : Build firmware No. 3 - print out test plan
98- working-directory : zephyr
99- shell : bash
100- run : |
101- if [ "${{ runner.os }}" = "macOS" ]; then
102- EXTRA_TWISTER_FLAGS="-P native_sim --build-only"
103- elif [ "${{ runner.os }}" = "Windows" ]; then
104- EXTRA_TWISTER_FLAGS="-P native_sim --short-build-path -O /tmp/twister-out"
105- fi
106- BASIC_FLAGS="--runtime-artifact-cleanup --force-color --inline-logs -v $EXTRA_TWISTER_FLAGS -P qemu_cortex_m0"
107- ./scripts/twister --test-tree -T tests/kernel/spinlock $BASIC_FLAGS
108- rm -rf twister-out*
109-
110- - name : Build firmware No. 4 - integration, exclude tag, filter, shuffle, dry run
111- working-directory : zephyr
112- shell : bash
113- run : |
114- if [ "${{ runner.os }}" = "macOS" ]; then
115- EXTRA_TWISTER_FLAGS="-P native_sim --build-only"
116- elif [ "${{ runner.os }}" = "Windows" ]; then
117- EXTRA_TWISTER_FLAGS="-P native_sim --short-build-path -O /tmp/twister-out"
118- fi
119- BASIC_FLAGS="--runtime-artifact-cleanup --force-color --inline-logs -v $EXTRA_TWISTER_FLAGS -P qemu_cortex_m0"
120- ./scripts/twister --dry-run --integration --subset 1/3 --shuffle-tests --shuffle-tests-seed 1 --filter runnable --exclude-tag audio --exclude-tag driver $BASIC_FLAGS
121- rm -rf twister-out*
122-
123- - name : Build firmware No. 5 - test, arch, vendor, exclude-platform, platform-reports
124- working-directory : zephyr
125- shell : bash
126- run : |
127- if [ "${{ runner.os }}" = "macOS" ]; then
128- EXTRA_TWISTER_FLAGS="-P native_sim --build-only"
129- elif [ "${{ runner.os }}" = "Windows" ]; then
130- EXTRA_TWISTER_FLAGS="-P native_sim --short-build-path -O /tmp/twister-out"
131- fi
132- BASIC_FLAGS="--runtime-artifact-cleanup --force-color --inline-logs -v $EXTRA_TWISTER_FLAGS -P qemu_cortex_m0"
133- ./scripts/twister --test kernel.multiprocessing.spinlock --arch x86 --exclude-platform qemu_x86_64 --vendor qemu --platform-reports $BASIC_FLAGS
134- rm -rf twister-out*
135-
136- - name : Build firmware No. 6 - subtest, platform, rom-ram report, ROM footprint report from buildlog, size report
137- working-directory : zephyr
138- shell : bash
139- run : |
140- if [ "${{ runner.os }}" = "macOS" ]; then
141- EXTRA_TWISTER_FLAGS="-P native_sim --build-only"
142- elif [ "${{ runner.os }}" = "Windows" ]; then
143- EXTRA_TWISTER_FLAGS="-P native_sim --short-build-path -O /tmp/twister-out"
144- fi
145- BASIC_FLAGS="--runtime-artifact-cleanup --force-color --inline-logs -v $EXTRA_TWISTER_FLAGS -P qemu_cortex_m0"
146- ./scripts/twister --sub-test kernel.multiprocessing.spinlock.minimallibc.spinlock.spinlock_basic --platform qemu_x86 --create-rom-ram-report --footprint-report ROM --enable-size-report --footprint-from-buildlog $BASIC_FLAGS --detailed-test-id
147- rm -rf twister-out*
148-
149- - name : Build firmware No. 7 - list tags
150- working-directory : zephyr
151- shell : bash
152- run : |
153- if [ "${{ runner.os }}" = "macOS" ]; then
154- EXTRA_TWISTER_FLAGS="-P native_sim --build-only"
155- elif [ "${{ runner.os }}" = "Windows" ]; then
156- EXTRA_TWISTER_FLAGS="-P native_sim --short-build-path -O /tmp/twister-out"
157- fi
158- BASIC_FLAGS="--runtime-artifact-cleanup --force-color --inline-logs -v $EXTRA_TWISTER_FLAGS -P qemu_cortex_m0"
159- ./scripts/twister --sub-test kernel.multiprocessing.spinlock.minimallibc.spinlock.spinlock_basic --list-tags $BASIC_FLAGS --detailed-test-id
160- rm -rf twister-out*
161-
162- - name : Build firmware No. 8 - list tests
163- working-directory : zephyr
164- shell : bash
165- run : |
166- if [ "${{ runner.os }}" = "macOS" ]; then
167- EXTRA_TWISTER_FLAGS="-P native_sim --build-only"
168- elif [ "${{ runner.os }}" = "Windows" ]; then
169- EXTRA_TWISTER_FLAGS="-P native_sim --short-build-path -O /tmp/twister-out"
170- fi
171- BASIC_FLAGS="--runtime-artifact-cleanup --force-color --inline-logs -v $EXTRA_TWISTER_FLAGS -P qemu_cortex_m0"
172- ./scripts/twister -T tests/posix/common --list-tests $BASIC_FLAGS
173- rm -rf twister-out*
174-
175- - name : Build firmware No. 9 - report flags - dir, name, suffix, summary, all-options, filtered
176- working-directory : zephyr
177- shell : bash
178- run : |
179- if [ "${{ runner.os }}" = "macOS" ]; then
180- EXTRA_TWISTER_FLAGS="-P native_sim --build-only"
181- elif [ "${{ runner.os }}" = "Windows" ]; then
182- EXTRA_TWISTER_FLAGS="-P native_sim --short-build-path -O /tmp/twister-out"
183- fi
184- BASIC_FLAGS="--runtime-artifact-cleanup --force-color --inline-logs -v $EXTRA_TWISTER_FLAGS -P qemu_cortex_m0"
185- ./scripts/twister --sub-test kernel.multiprocessing.spinlock.minimallibc.spinlock.spinlock_basic --platform qemu_x86 --report-dir . --report-name test_name --report-suffix suffix --report-summary 0 --report-all-options --report-filtered $BASIC_FLAGS --detailed-test-id
186- rm -rf twister-out*
187-
188- - name : Build firmware No. 10 - force platform and toolchain, log level, timestamps, logfile
189- working-directory : zephyr
190- shell : bash
191- run : |
192- if [ "${{ runner.os }}" = "macOS" ]; then
193- EXTRA_TWISTER_FLAGS="-P native_sim --build-only"
194- elif [ "${{ runner.os }}" = "Windows" ]; then
195- EXTRA_TWISTER_FLAGS="-P native_sim --short-build-path -O /tmp/twister-out"
196- fi
197- BASIC_FLAGS="--runtime-artifact-cleanup --force-color --inline-logs -v $EXTRA_TWISTER_FLAGS -P qemu_cortex_m0"
198- ./scripts/twister --sub-test kernel.multiprocessing.spinlock.minimallibc.spinlock.spinlock_basic --force-platform --platform qemu_x86 --force-toolchain --log-level WARNING --log-file log.file $BASIC_FLAGS --detailed-test-id
199- rm log.file
200- rm -rf twister-out*
0 commit comments