summaryrefslogtreecommitdiff
path: root/cesar/maximus/test/test_python.sh
blob: 54755cfae3cc22fb226316dfe9934950769f4c39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#! /bin/bash

WORKSPACE='/home/buret/workspace/maximus'

echo
echo "*** Compile stations executables ***"
echo
cd $WORKSPACE/maximus/stationtest
make clean; make
cd $WORKSPACE/maximus/prototest/fcall
make clean; make
cd $WORKSPACE/maximus/prototest/integration
make clean; make

# Maximus Python unitary tests
echo
echo "*** Compile Python interface ***"
echo
cd $WORKSPACE/maximus/python
make clean; make
python test/test_channel.py -e ../stationtest/obj/test_station.elf -d false -t 2500000000
python test/test_cli.py
python test/test_ethernet.py -e ../stationtest/obj/test_ether.elf -d false -t 2500000000
python test/test_fsm.py
python test/test_interface.py -e ../stationtest/obj/stationtest.elf -d false -t 2500000000
python test/test_lib_cesar.py -e ../stationtest/obj/test_lib_cesar.elf -d false -t 2500000000
python test/test_lib_proto.py -u -e ../prototest/fcall/obj/test_fcall.elf -t 2500000000
python test/test_macframe.py -e ../stationtest/obj/test_send.elf -d false -t 2500000000
python test/test_mme.py -e ../stationtest/obj/stationtest.elf -d false -t 2500000000
python test/test_result.py
python test/test_simu.py -e ../stationtest/obj/stationtest.elf -d false -t 2500000000
python test/test_station.py -e ../stationtest/obj/test_station.elf -d false -t 2500000000
python test/test_utils.py
#python test/test_maximus.py -e ../stationtest/obj/stationtest.elf -d false -t 2500000000

# Maximus Python scripts tests
python py/script_example.py -e ../stationtest/obj/stationtest.elf -d false -t 2500000000
python py/test_cb.py -e ../stationtest/obj/test_cb.elf -d false -t 2500000000
python py/test_send_mpdu.py -e ../stationtest/obj/test_send.elf -d false -t 2500000000
python py/test_send_noise.py -e ../stationtest/obj/test_send.elf -d false -t 2500000000
python py/test_tx_rx.py -e ../stationtest/obj/test_tx_rx.elf -d false -t 2500000000
python py/test_ether.py -e ../stationtest/obj/test_ether.elf -d false -t 2500000000
python py/test_false_alarm.py -e ../stationtest/obj/test_false_alarm.elf -d false -t 2500000000

echo
echo "*** PB proc tests ***"
echo
cd $WORKSPACE/mac/pbproc/test/maximus
make clean; make
python py/host_test_pbproc.py -e obj/test_pbproc.elf -d false -t 2500000000
python py/test_coll.py -e obj/test_pbproc.elf -d false -t 2500000000

echo
echo "*** CE tests ***"
echo
cd $WORKSPACE/ce/test/rx/maximus
make clean; make
python send_noise.py -e obj/test_rx.elf -d false -t 2500000000

echo
echo "*** CL - SAR - PB proc tests ***"
echo
cd $WORKSPACE/test_general/maximus/integration/cl-sar-pbproc
make clean; make
python test1.py -e obj/cl-sar-pbproc.elf -d false -t 2500000000

echo
echo "*** CP BEACON - DP tests ***"
echo
cd $WORKSPACE/test_general/maximus/integration/cp_beacon-dp
make clean; make
python src/max.py -e obj/cp_beacon.elf -d false -t 2500000000
python src/max_ucco.py -e obj/cp_beacon.elf -d false -t 2500000000
python cco_alone.py -e obj/cp_beacon.elf -d false -t 2500000000
python cco_with_sta.py -e obj/cp_beacon.elf -d false -t 2500000000
python ucco_alone.py -e obj/cp_beacon.elf -d false -t 2500000000
python ucco_with_sta.py -e obj/cp_beacon.elf -d false -t 2500000000

echo
echo "*** HLE - CL - SAR - PB proc tests ***"
echo
cd $WORKSPACE/test_general/maximus/integration/hle-cl-sar-pbproc
make clean; make
python test1.py -e obj/hle-cl-sar-pbproc.elf -d false -t 2500000000

echo
echo "*** IPMBOX - HLE - CL - SAR - PB proc tests ***"
echo
cd $WORKSPACE/test_general/maximus/integration/ipmbox-hle-cl-sar-pbproc
make clean; make
python test1.py -e obj/ipmbox-hle-cl-sar-pbproc.elf -d false -t 2500000000
python test2.py -e obj/ipmbox-hle-cl-sar-pbproc.elf -d false -t 2500000000

echo
echo "*** SAR - PB proc tests ***"
echo
cd $WORKSPACE/test_general/maximus/integration/sar-pbproc
make clean; make
python test1.py -e obj/sar-pbproc.elf -d false -t 2500000000

echo
echo "*** INTERFACE - DP tests ***"
echo
cd $WORKSPACE/test_general/maximus/integration/interface-dp
make clean; make
python test1.py -d false -t 2500000000

echo
echo "*** STATION - CP - DP tests ***"
echo
cd $WORKSPACE/test_general/maximus/integration/station-cp-dp
make clean; make
cd src
#python Maximus.py -d false -t 500000000
#python Maximus_3_stations.py -d false -t 500000000