-
Notifications
You must be signed in to change notification settings - Fork 8.4k
ci: Expand BBox tests with Twister runs #88754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: Expand BBox tests with Twister runs #88754
Conversation
a1b9357 to
4ab2c51
Compare
4ab2c51 to
6b98f05
Compare
Blackbox tests now shall include smoke tests, that is Twister calls in the environment. Additionally, those smoke tests will run on multiple platforms. Signed-off-by: Lukasz Mrugala <lukaszx.mrugala@intel.com>
6b98f05 to
7b9c84a
Compare
|
golowanow
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice to check twister run results are really what's expected.
| toolchains: all | ||
|
|
||
| - name: Run Pytest For Twister Black Box Tests | ||
| if: ${{ startsWith(runner.os, 'ubuntu') }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
either ${{ startsWith(matrix.os, 'ubuntu') }} or ${{ runner.os }} == 'Linux' ?
| EXTRA_TWISTER_FLAGS="-P native_sim --build-only" | ||
| elif [ "${{ runner.os }}" = "Windows" ]; then | ||
| EXTRA_TWISTER_FLAGS="-P native_sim --short-build-path -O /tmp/twister-out" | ||
| fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
elif
EXTRA_TWISTER_FLAGS=""
fi
| BASIC_FLAGS="--runtime-artifact-cleanup --force-color --inline-logs -T samples/hello_world -T samples/cpp/hello_world -v $EXTRA_TWISTER_FLAGS" | ||
| ./scripts/twister --save-tests tests.file $BASIC_FLAGS | ||
| ./scripts/twister --load-tests tests.file --emulation-only $BASIC_FLAGS | ||
| rm tests.file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: test.file remains if the first twister call fails



Blackbox tests now shall include smoke tests, that is: Twister calls in the environment.