tests/libcose: Move from unittests to regular test#10183
tests/libcose: Move from unittests to regular test#10183miri64 merged 1 commit intoRIOT-OS:masterfrom
Conversation
|
😆 to
Not the PR itself ;-) |
miri64
left a comment
There was a problem hiding this comment.
ACK. Murdock still requires some BOARD_INSUFFIENT_MEMORY to be set. You can squash that immediately
c0c2c5b to
31da48d
Compare
|
Should be fixed now |
tests/pkg_libcose/tests/01-run.py
Outdated
|
|
||
|
|
||
| def testfunc(child): | ||
| child.expect_exact('OK (3 tests)') |
There was a problem hiding this comment.
Maybe make this a regex. This way the test is extensible (and might not fail randomly ;-))
| child.expect_exact('OK (3 tests)') | |
| child.expect(r'OK (\d+ tests)') |
|
I think I have to increase the timeout on the CI run test. |
|
That could be the problem. Let me test this on a more accessible (i.e. iotlab) samr21 |
|
Seems saclay is currently down :-/. |
|
(their was some maintainance on IoT-LAB announced for today) |
Ah, that means it's not only down for me. Testing it locally shows that the test takes around 67 seconds: Do we actually want to have this run on the CI if it takes this long? |
|
Increased the timeout to 120s |
Good question. IMHO for nightly builds this should be done, but maybe not for every PR that sets |
|
@kaspar030 @smlng Do you guys have an opinion on this? |
|
An answer to our question would be nice though ;-) |
|
I like this, see #10188 and #10189 😉 IIRC I had a similar discussion with others (e.g. @cladmi) to finally have packages tests within the package directory and make them self-contained. So moving the tests out of unittests is a first step in that direction and also has the benefit of reducing unittests binary size. TL;DR: 👍 🎉 ❤️ |
|
But the question was if we want to introduce a 2min wait-time to the CI tests, because this test requires two minutes to finish on samr21-xpro. |
ah that question: well, I would say no don't run the tests on hardware if it takes that long |
|
I've extended the test script a bit to only use the 120 seconds timeout when running on non-native. Now when the test breaks, the CI doesn't have to wait for the 2 minute timeout to pass on native. |
ea3312e to
03e2eca
Compare
|
squashed! |
|
Ready to merge here? |
|
Yepp |
|
Thanks for reviewing! |
Contribution description
Moves the libcose unittest to a "regular" test in
pkg_libcose. saves quite a bit of flash and ram on a samr21-xpro for the unittests (No, still doesn't fit):Before:
After:
Testing procedure
Run the test in pkg_libcose.
Issues/PRs references
Part of #10187