nativenet: Port nativenet for netdev#1732
Conversation
2b25c99 to
abb67a1
Compare
abb67a1 to
3ef4122
Compare
3ef4122 to
80ea035
Compare
|
Rebased to master |
80ea035 to
ed5cbe9
Compare
ab486b6 to
beab588
Compare
|
@LudwigOrtmann poke? |
|
Ayeee |
Makefile.dep
Outdated
There was a problem hiding this comment.
The change in https://github.com/RIOT-OS/RIOT/pull/1732/files#diff-2b35e3dab26520778e1991f7041d00a5R3 seems to imply it is still possible to use nativenet without netdev_base..?
|
I've got wget AND curl installed btw. |
it says |
|
It's lying. |
|
I'll look into that tomorrow. |
|
But just by this error message I would presume it has something to do with a70ee0f. I don't do anything with neither curl nor wget. |
|
Maybe you mess up the environment ? |
|
Can you give me the output with the following patch? diff --git a/tests/netdev/tests/01-interaction.py b/tests/netdev/tests/01-interaction.py
index 3f2d66b..fb7037a 100755
--- a/tests/netdev/tests/01-interaction.py
+++ b/tests/netdev/tests/01-interaction.py
@@ -8,6 +8,7 @@
import os, sys, time
from pexpect import spawn, TIMEOUT, EOF
+import pprint
class Abort(Exception):
pass
@@ -17,9 +18,13 @@ board = os.environ.get('BOARD', 'native')
DEFAULT_TIMEOUT=5
def main():
+ pp = pprint.PrettyPrinter(indent=4)
+ pp.pprint(dict(os.environ))
receiver = spawn("make term", timeout=5, env={"SENDER": '0'})
+ receiver.logfile = sys.stdout
time.sleep(1)
sender = spawn("make term", timeout=5, env={"SENDER": '1'})
+ sender.logfile = sys.stdout
try:
receiver.expect(r"RIOT netdev test") |
|
(I did, off the record) |
f7b35a9 to
45d4cf0
Compare
cpu/native/net/tap.c
Outdated
There was a problem hiding this comment.
that is part of the coding conventions?
There was a problem hiding this comment.
I'm wondering about two things here:
- why not use it in
tests/netdev/main.c? - wouldn't it make more sense to set this from the device?
There was a problem hiding this comment.
- To the first point: Like I did here?
- To the second: Maybe, but that's only a matter of opinion IMHO
There was a problem hiding this comment.
I was wondering about https://github.com/RIOT-OS/RIOT/blob/master/tests/netdev/main.c#L41
There was a problem hiding this comment.
ad 2: sure, but if there is a possibility to not care about specific devices in the abstraction layer, it should be taken.
There was a problem hiding this comment.
Anyway - 2 is not really part of this PR.
There was a problem hiding this comment.
to 1: must have been drunk when I did this. 1 isn't really part of this PR either ;-)
|
Sorry for commenting in commits... |
|
Fixed it anyways =) |
|
Quite elegantly so by use of reduction =) |
|
ACK |
|
(don't forget to squash) |
962cd87 to
bf21a9e
Compare
|
done and waiting for Travis |
|
Maybe I'll have another look ... ;) (just kidding) |
nativenet: Port nativenet for netdev
To test this, run
Depends on #1492:(it's merged)