Skip to content

tests/cn-cbor: move from unittests to regular test#10188

Merged
miri64 merged 1 commit intoRIOT-OS:masterfrom
smlng:pr/tests/pkg_cn-cbor
Nov 27, 2018
Merged

tests/cn-cbor: move from unittests to regular test#10188
miri64 merged 1 commit intoRIOT-OS:masterfrom
smlng:pr/tests/pkg_cn-cbor

Conversation

@smlng
Copy link
Copy Markdown
Member

@smlng smlng commented Oct 18, 2018

Contribution description

This moves tests for the cn-cbor package from unittests to a regular
test, which should help to decrease binary size of unittests.

Testing procedure

run the tests, i.e. BOARD=<your-favourite> make -C tests/pkg_cn-cbor flash test

Issues/PRs references

@smlng smlng added Area: tests Area: tests and testing framework Area: pkg Area: External package ports Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation CI: run tests If set, CI server will run tests on hardware for the labeled PR labels Oct 18, 2018
@smlng smlng requested a review from bergzand October 18, 2018 07:02
@smlng smlng added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: run tests If set, CI server will run tests on hardware for the labeled PR labels Oct 18, 2018
wsn430-v1_3b \
wsn430-v1_4 \
z1 \
#
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this lonely comment either.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its done in other tests, too see https://github.com/RIOT-OS/RIOT/blob/master/tests/unittests/Makefile#L192 - but its not consistent. I thought it makes it easier to add a board to the list - simply by putting <board> \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason for the BLACKLIST here ?
If it is a size issue they should just be put as BOARD_INSUFFICIENT_MEMORY.

Copy link
Copy Markdown
Contributor

@cladmi cladmi Nov 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok they fail with string.h EDIT strings.h not found. Tested compiling arduino-mega2560 and wsn430-v1_3b.

@smlng
Copy link
Copy Markdown
Member Author

smlng commented Oct 19, 2018

can I squash?

Copy link
Copy Markdown
Contributor

@cladmi cladmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on iotlab-m3 and samr21-xpro.

Changes requests inline.

@cladmi cladmi added CI: run tests If set, CI server will run tests on hardware for the labeled PR CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Nov 27, 2018
Copy link
Copy Markdown
Contributor

@cladmi cladmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with IoT-LAB and the following boards/command (only tested with gcc):

BOARDS="samr21-xpro pba-d-01-kw2x b-l475e-iot01a nrf52dk arduino-zero nrf52840dk iotlab-m3 microbit frdm-kw41z"

for board in ${BOARDS}; do BOARD=${board} RIOT_CI_BUILD=1 IOTLAB_NODE=auto-ssh BUILD_IN_DOCKER=1 DOCKER="sudo docker" make --no-print-directory -C tests/pkg_cn-cbor/ clean all flash test || break; done

Please squash.

@cladmi
Copy link
Copy Markdown
Contributor

cladmi commented Nov 27, 2018

To be precise, I tested the rebase on master to have all IoT-LAB nodes available.

@smlng smlng force-pushed the pr/tests/pkg_cn-cbor branch from e8b1e63 to 6fdb55c Compare November 27, 2018 19:32


def testfunc(child):
child.expect('OK \(\d+ tests\)')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same error here with the regex string. You can squash directly.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed and squashed directly

This moves tests for the cn-cbor package from unittests to a regular
test, which should help to decrease binary size of unittests.
@smlng smlng force-pushed the pr/tests/pkg_cn-cbor branch from 6fdb55c to 7b0a7db Compare November 27, 2018 21:17
@miri64 miri64 merged commit 85b9be7 into RIOT-OS:master Nov 27, 2018
@cladmi
Copy link
Copy Markdown
Contributor

cladmi commented Nov 28, 2018

Thank you for doing the migration!

@aabadie aabadie added this to the Release 2019.01 milestone Dec 2, 2018
@smlng smlng deleted the pr/tests/pkg_cn-cbor branch June 25, 2019 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: pkg Area: External package ports Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR CI: run tests If set, CI server will run tests on hardware for the labeled PR Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants