Skip to content
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

Icetea missing test doc #8342

Merged
merged 3 commits into from
Nov 22, 2018
Merged

Icetea missing test doc #8342

merged 3 commits into from
Nov 22, 2018

Conversation

JuhPuur
Copy link
Contributor

@JuhPuur JuhPuur commented Oct 8, 2018

Description

Documented icetea testcases. Socket testcases do not differ from greentea testcases except in the way they're executed. Documentation was needed to present how the execution differs.

Added missing documentation for Nanostack MAC tester testcases and comments to testcases.

Pull request type

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

@cmonr cmonr requested review from SeppoTakalo and a team October 8, 2018 19:05
@AnttiKauppila
Copy link

This is documentation only change -> No CI needed

@AnotherButler
Copy link
Contributor

@MelindaWeed Could you please edit the two README files?

Copy link
Contributor

@melwee01 melwee01 left a comment

Choose a reason for hiding this comment

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

Many of these are nitpicky.

@@ -12,3 +12,4 @@ Current testcases:

- [netsocket](https://github.com/ARMmbed/mbed-os/blob/master/TEST_APPS/testcases/netsocket)
- [example](https://github.com/ARMmbed/mbed-os/blob/master/TEST_APPS/testcases/example)
- [nanostack_mac_tester](https://github.com/ARMmbed/mbed-os/blob/master/TEST_APPS/testcases/nanostack_mac_tester)
Copy link
Contributor

Choose a reason for hiding this comment

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

Either capitalize these or put them in ``.

@@ -0,0 +1,294 @@
Nanostack MAC RF tests
Copy link
Contributor

Choose a reason for hiding this comment

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

These should be ## headings, not separated out with =====.

Nanostack MAC RF tests
=============

This folder contains nanostack MAC RF tests for Icetea
Copy link
Contributor

Choose a reason for hiding this comment

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

Check punctuation in file, because there are missing periods.

The test located under this folder is dependent of the application [exampleapp](https://github.com/ARMmbed/mbed-os/blob/master/TEST_APPS/device/nanostack_mac_tester)
The nanostack MAC tester is disabled by default, to be able to run the testcases with the application, either remove the preprocessor macro from main.cpp or add `-DICETEA_MAC_TESTER_ENABLED` to the mbed test command

Icetea testcases are processed by passing commands through the mbed-client-cli command line. Thus testcase steps should be possible to replicate manually with the given commands and instructions.
Copy link
Contributor

Choose a reason for hiding this comment

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

mbed-client-cli

Copy link
Contributor

Choose a reason for hiding this comment

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

Clean up the wording here.


**Description:**

Write addresses to MAC interface, verify successful write.
Copy link
Contributor

Choose a reason for hiding this comment

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

What's MAC?

Copy link
Contributor Author

@JuhPuur JuhPuur Oct 16, 2018

Choose a reason for hiding this comment

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

Media Access Control(MAC) address is a unique hardware identifier used in networking. MAC interface refers to the Data Link layer interface in Nanostack.
I feel that anybody who doesn't have a clue what it refers to has no business running these tests in the first place.

The test cases under this folder are defined in [Network Socket test plan](https://github.com/ARMmbed/mbed-os/blob/master/TESTS/netsocket/README.md)
The test cases under this folder are similar to [Network Socket test plan](https://github.com/ARMmbed/mbed-os/blob/master/TESTS/netsocket/README.md).

Icetea testcases are processed by passing commands through the mbed-client-cli command line. Thus testcase steps should be possible to replicate manually with the given commands and instructions.
Copy link
Contributor

Choose a reason for hiding this comment

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

test cases

Copy link
Contributor

Choose a reason for hiding this comment

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

mbed-client-cli


**Preconditions:**

1. Network interface and stack are initialised
Copy link
Contributor

Choose a reason for hiding this comment

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

Again, end these with .

Copy link
Contributor

Choose a reason for hiding this comment

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

Initialized


**Expected result:**

The test exits with status PASS without timeouts
Copy link
Contributor

Choose a reason for hiding this comment

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

PASS.


**Preconditions:**

1. Network interface and stack are initialised
Copy link
Contributor

Choose a reason for hiding this comment

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

initialized


**Preconditions:**

1. Network interface and stack are initialised
Copy link
Contributor

Choose a reason for hiding this comment

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

Initialized

@JuhPuur
Copy link
Contributor Author

JuhPuur commented Oct 16, 2018

I think I fixed all the points. Please re-review.

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 24, 2018

@melwee01 Please review after the update

@cmonr
Copy link
Contributor

cmonr commented Nov 9, 2018

@AnotherButler @melwee01 Re-review? Or are we good to bring this in asis?

Copy link
Contributor

@AnotherButler AnotherButler left a comment

Choose a reason for hiding this comment

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

Please fix minor requests.

@@ -0,0 +1,298 @@
##Nanostack MAC RF tests
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a space after the pound signs, or this won't render properly.


In test cases with more than one device under test(DUT) the target device is given in the instructions as DUT1, DUT2 or DUT3.

##Test cases
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a space after the pound signs, or this won't render properly.


Icetea test cases are processed by passing commands through the `mbed-client-cli` command line. It is possible to manually replicate most test cases by following the instructions below.

In test cases with more than one device under test(DUT) the target device is given in the instructions as DUT1, DUT2 or DUT3.
Copy link
Contributor

Choose a reason for hiding this comment

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

Parenthetical expressions require a space on either side of them. Please do a global search of this document to make sure there's a space before the opening parenthesis each time.

@AnotherButler
Copy link
Contributor

It looks as though @melwee01 's concerns have been addressed.

@adbridge
Copy link
Contributor

@JuhPuur Please address @AnotherButler review comments

@JuhPuur
Copy link
Contributor Author

JuhPuur commented Nov 16, 2018

Comments addressed. I didn't add spaces to parentheses indicating method/function names.

@cmonr
Copy link
Contributor

cmonr commented Nov 16, 2018

@AnotherButler All good?

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 22, 2018

@OPpuolitaival Please review why exporters are running for this .md changes

@mbed-ci
Copy link

mbed-ci commented Nov 22, 2018

Test run: SUCCESS

Summary: 3 of 3 test jobs passed
Build number : 5
Build artifacts
Build logs

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.

None yet

10 participants