-
Notifications
You must be signed in to change notification settings - Fork 2k
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
tests/gnrc_tcp_*: remove default PORT for native #10948
Conversation
The point of those is, I believe that those two apps belong to each other. IMHO we need to rework these tests in general (however, having the first bisect in #10947 having a Python script interacting via a TCP socket with the test is probably not a good solution either) |
tests/gnrc_tcp_client/README.md
Outdated
Build and run test: | ||
make clean all term | ||
Build and run test (don't forget to use different tap device than server): | ||
make clean all term PORT=tap1 |
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.
such a line should be added to the servers readme, too ... or not?
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.
PORT
defaults to tap0
so it is not strictly necessary.
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.
alternatively, as some might overlook this or do not know that tap0
is default, we could add:
ifeq (native,$(BOARD))
PORT ?= tap1
endif
in the Makefile instead
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.
I'd prefer that solution as well.
7e2fb4b
to
b285752
Compare
Fine with me. Changed, squashed, pushed... |
@PeterKietzmann I assume (and trust) that you've tested this 😄 |
@smlng you should never do that :-P! However, I was able to start both programs via |
Confirmed. |
Contribution description
This PR removes the default
PORT?=
which was set to run the TCP client/server test applications on two native instances. A problem occurs when callingBOARD=xyz make flash term
(with xyz not native) because in that case,PORT
is set totap
by defualt.Testing procedure
Build/flash/term a board with one of the applications tests/gnrc_tcp_* with and without this PR.
Issues/PRs references
#10947