File: run

package info (click to toggle)
tinyos 2.1.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 47,476 kB
  • ctags: 36,607
  • sloc: ansic: 63,646; cpp: 14,974; java: 10,358; python: 5,215; makefile: 1,724; sh: 902; asm: 597; xml: 392; perl: 74; awk: 46
file content (24 lines) | stat: -rwxr-xr-x 492 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

make micaz sim

for t in test-equal.py test-asym.py test-unequal.py
do
 echo Running $t...
 python $t > `basename $t .py`.log
done

make clean

for l in test-equal.log test-asym.log test-unequal.log
do
    echo $l
    echo -e '\t   ACK \t\t NOACK \t total'
    for i in 1 3
    do
	N1=`grep 'Send completed' $l | grep ' ACK' | grep "($i)" | wc -l`
	N2=`grep 'Send completed' $l | grep 'NOACK' | grep "($i)" | wc -l`
	echo -e "\t $i $N1 \t $N2 \t" `expr $N1 + $N2`
    done
done