mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
added test for edge router
This commit is contained in:
parent
d4e16173b6
commit
0c291bd7e2
10
projects/sixlowedge_test/Jamfile
Normal file
10
projects/sixlowedge_test/Jamfile
Normal file
@ -0,0 +1,10 @@
|
||||
SubDir TOP projects sixlowedge_test ;
|
||||
|
||||
Module sixlowedge_test : main.c : 6lowpan auto_init uart0 posix_io ;
|
||||
|
||||
UseModule sixlowedge_test ;
|
||||
UseModule cc110x_ng ;
|
||||
# UseModule transceiver ;
|
||||
UseModule 6lowpan ;
|
||||
UseModule vtimer ;
|
||||
UseModule auto_init ;
|
13
projects/sixlowedge_test/main.c
Normal file
13
projects/sixlowedge_test/main.c
Normal file
@ -0,0 +1,13 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <transceiver.h>
|
||||
#include <vtimer.h>
|
||||
#include "sys/net/sixlowpan/sixlowip.h"
|
||||
#include "sys/net/sixlowpan/sixlowedge.h"
|
||||
#include "sys/net/sixlowpan/sixlowerror.h"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
border_initialize(TRANSCEIVER_CC1100, NULL);
|
||||
}
|
13
projects/sixlowedge_test/tests/hello-world
Executable file
13
projects/sixlowedge_test/tests/hello-world
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/expect
|
||||
|
||||
set timeout 5
|
||||
|
||||
spawn pseudoterm $env(PORT)
|
||||
|
||||
expect {
|
||||
"Hello World!" {}
|
||||
timeout { exit 1 }
|
||||
}
|
||||
|
||||
puts "\nTest successful!\n"
|
||||
|
Loading…
Reference in New Issue
Block a user