Skip to content

Add nanostack mac tester and testcases #7996

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

Merged
merged 8 commits into from
Oct 6, 2018
Merged

Add nanostack mac tester and testcases #7996

merged 8 commits into from
Oct 6, 2018

Conversation

JuhPuur
Copy link
Contributor

@JuhPuur JuhPuur commented Sep 5, 2018

Description

Add the nanostack MAC tester to test applications and testcases.
Target 5.10-RC2 / 5.10.1

Pull request type

[ ] Fix
[ ] Refactor
[ ] Target update
[x] Feature
[ ] Breaking change

@mikter
Copy link

mikter commented Sep 5, 2018

@artokin @OPpuolitaival @kjbracey-arm can you check these changes

Copy link

@mikter mikter left a comment

Choose a reason for hiding this comment

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

looks good for me

@@ -13,5 +13,6 @@
"6LOWPAN_ROUTER" : "6lowpanInterface_router.json",
"THREAD_END_DEVICE" : "ThreadInterface_end_device.json",
"THREAD_ROUTER" : "ThreadInterface_router.json",
"NO_NETWORK": "no_network.json"
"NO_NETWORK": "no_network.json",
"MAC_TESTER": "MACTester.json"
Copy link
Contributor

Choose a reason for hiding this comment

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

I would say "MAC tester" may be clear enough in context of Nanostack, but is too generic for Mbed OS as a whole - the name should say something about Nanostack or 802.15.4

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm fine with changing it to something like NanostackMACTester.json

@0xc0170
Copy link
Contributor

0xc0170 commented Sep 17, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Sep 17, 2018

Build : FAILURE

Build number : 3082
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/7996/

@0xc0170
Copy link
Contributor

0xc0170 commented Sep 17, 2018

Please review the build failures (some are related to the changes)

@JuhPuur
Copy link
Contributor Author

JuhPuur commented Sep 17, 2018

Rebased the branch. Weird stuff started happening when I tried to recreate that disappeared after rebasing.

@cmonr
Copy link
Contributor

cmonr commented Sep 22, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Sep 22, 2018

Build : FAILURE

Build number : 3124
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/7996/

del self.th
self.reset_dut()

if __name__=='__main__':
Copy link
Contributor

@jupe jupe Sep 22, 2018

Choose a reason for hiding this comment

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

i dont think user are able to run individual test anymore directly, maybe better to remove these blocks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea.

@JuhPuur
Copy link
Contributor Author

JuhPuur commented Sep 23, 2018

KW24D has this:
[Error] mbed_trace.h@435,45: 'dont_use_trace_helpers_outside_trace_calls' was not declared in this scope

KW41Z has this:
[DEBUG] Errors: /builds/ws/mbed-os-build-matrix/3124/KW41Z_GCC_ARM/sources/mbed-os/./TEST_APPS/device/nanostack_mac_tester/main.cpp:92: undefined reference to `NanostackRfPhy::get_default_instance()'

I don't understand why the first one appears, and the second one is weird since that change should be included already.

@0xc0170
Copy link
Contributor

0xc0170 commented Sep 24, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Sep 24, 2018

Build : FAILURE

Build number : 3145
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/7996/

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 1, 2018

@JuhPuur Is this completed and ready for CI or still work ongoing (latest commit pushed minutes ago) ?

@JuhPuur
Copy link
Contributor Author

JuhPuur commented Oct 1, 2018

Sorry about the delay. It's obvious that the application won't compile without its specific test config, so I set it to skip by default. Should have done that from the beginning. Should be done now.

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 2, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Oct 2, 2018

Build : FAILURE

Build number : 3217
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/7996/

@NirSonnenschein
Copy link
Contributor

looks like a build issue related tot he PR, please take a look.

@JuhPuur
Copy link
Contributor Author

JuhPuur commented Oct 5, 2018

I don't think it's related to the PR. One failure for one target for one compiler, when the application added by the PR isn't compiled. The error logs have disappeared so i can't tell what was the actual cause.

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 5, 2018

Looks like CI cleanup was not done properly, restarting

/morph build

@mbed-ci
Copy link

mbed-ci commented Oct 5, 2018

Build : SUCCESS

Build number : 3247
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/7996/

Triggering tests

/morph test
/morph mbed2-build

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 5, 2018

/morph export-build

@0xc0170 0xc0170 changed the title Added nanostack mac tester and testcases Add nanostack mac tester and testcases Oct 5, 2018
@mbed-ci
Copy link

mbed-ci commented Oct 5, 2018

@mbed-ci
Copy link

mbed-ci commented Oct 6, 2018

@kjbracey
Copy link
Contributor

kjbracey commented Oct 9, 2018

This PR's use of thread flags just showed up while rebasing #7980 - didn't notice it at the time.

In case you ever touch this again, all the stuff about manual thread flags and rawserial and interrupt handlers and rx_buffer should no longer be needed - like some other test apps that have already been converted you can just use getchar as long as you configure platform.stdio-buffered-serial on.

Also makes the app nominally portable to a device using something other than serial console I/O.

@kjbracey
Copy link
Contributor

kjbracey commented Oct 9, 2018

Example of another app conversion: https://github.com/ARMmbed/mbed-client-testapp/pull/981/files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants