Skip to content

Commit

Permalink
Tune timing and upload rate of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maniacbug committed Jan 18, 2012
1 parent 94635e8 commit 205d4b5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/pingpair_blocking/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PROJECT_DIRS = $(PWD) ;
# (2) Board Information

UPLOAD_PROTOCOL ?= arduino ;
UPLOAD_SPEED ?= 57600 ;
UPLOAD_SPEED ?= 115200 ;
MCU ?= atmega328p ;
F_CPU ?= 16000000 ;
CORE ?= arduino ;
Expand Down
2 changes: 1 addition & 1 deletion tests/pingpair_test/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PROJECT_DIRS = $(PWD) ;
# (2) Board Information

UPLOAD_PROTOCOL ?= arduino ;
UPLOAD_SPEED ?= 57600 ;
UPLOAD_SPEED ?= 115200 ;
MCU ?= atmega328p ;
F_CPU ?= 16000000 ;
CORE ?= arduino ;
Expand Down
12 changes: 8 additions & 4 deletions tests/pingpair_test/runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
# WARNING: Test config 2 only works with PLUS units.

jam u0 u1 && expect test.ex 1
stty 57600 raw ignbrk hup < /dev/ttyUSB0 && sleep 1
stty 57600 raw ignbrk hup < /dev/ttyUSB1 && sleep 1
sleep 1
stty 57600 raw ignbrk hup < /dev/ttyUSB0
sleep 1
stty 57600 raw ignbrk hup < /dev/ttyUSB1
expect test.ex 2
stty 57600 raw ignbrk hup < /dev/ttyUSB0 && sleep 1
stty 57600 raw ignbrk hup < /dev/ttyUSB1 && sleep 1
sleep 1
stty 57600 raw ignbrk hup < /dev/ttyUSB0
sleep 1
stty 57600 raw ignbrk hup < /dev/ttyUSB1
expect test.ex 3

0 comments on commit 205d4b5

Please sign in to comment.