1#!/bin/sh
2#
3# A meta-script that invokes each of the individual
4# regression tests.
5
6if [ $# -gt 1 ]
7then
8  echo "Usage: `basename $0` [ <gpsim_path> ] "
9  exit 0
10fi
11
12case "$1" in
13    *clean)
14        DIRS='breakpoints instructions_12bit instructions_14bit
15		instructions_16bit node_test p16f84 p18f452_ports
16		p16f628 digital_stim analog_stim p12ce518 eeprom_wide epwm
17		interrupts_14bit macro_test logic_test resistor usart_test
18	        txisr_test tmr0_16bit tmr1_16bit tmr3_16bit switch_test p18f
19		comparator a2d psp ttl ccp ccp_628 wavegen spi i2c port_stim
20		p12c509 wdt p12f675 p16f676 p16f690 p16f684 p1xf18xx
21		p18f26k22 p16f91x p10f32x'
22
23        echo ${DIRS}
24        for i in ${DIRS} ; do
25            echo $i
26            cd $i
27            make clean
28            cd ..
29        done
30
31        exit 0
32        ;;
33
34    *)
35        if [ $# -gt 0 ]
36            then
37            GPSIM_PATH=$1
38            export GPSIM_PATH
39        fi
40        ;;
41esac
42
43GPSIM_MODULE_PATH=$(pwd)/../modules/.libs
44export GPSIM_MODULE_PATH
45
46RT=./rt.sh
47
48# Basic breakpoint test
49${RT} breakpoints sim
50
51# Instruction set simulation of the mid-range devices
52${RT} instructions_14bit sim_instructions_14bit
53${RT} instructions_14bit sim_branching
54
55#instruction set simulation for the 16bit cores:
56${RT} instructions_16bit sim
57
58#instruction set simulation for the 12bit cores:
59${RT} instructions_12bit sim
60
61${RT} node_test sim
62
63#${RT} p12c509 it_12bit
64#${RT} p12c509 tmr0
65
66${RT} p16f84 sim
67
68${RT} p18f452_ports sim
69
70#${RT} p16f628 p16f628
71
72#${RT} p16f873 sim
73
74${RT} digital_stim sim
75
76${RT} analog_stim sim
77
78${RT} register_stim sim
79
80${RT} p12ce518 sim
81
82${RT} eeprom_wide sim
83
84${RT} interrupts_14bit sim
85
86${RT} interrupts_16bit test_basic
87${RT} interrupts_16bit test_priority
88
89${RT} macro_test sim
90
91${RT} logic_test sim
92
93${RT} resistor sim
94
95${RT} usart_test sim_pir1v1
96
97${RT} usart_test sim_pir1v2
98
99${RT} usart_test sim_eusart
100
101${RT} usart_test sim_eusart_2455
102
103${RT} txisr_test sim
104
105${RT} tmr0_16bit sim
106
107${RT} tmr1_16bit sim
108
109${RT} tmr3_16bit sim
110
111${RT} switch_test sim
112
113${RT} p18f sim_instructions
114
115${RT} p18f sim_extended_instructions
116
117${RT} p18f sim_reset
118
119${RT} comparator sim
120
121${RT} a2d sim_p16c71
122
123${RT} a2d sim_p16f871
124
125${RT} a2d sim_p16f873a
126
127${RT} a2d sim_p16f874a
128
129${RT} a2d sim_p16f88
130
131${RT} a2d sim_p16f819
132
133${RT} a2d sim_p18f452
134
135${RT} a2d sim_p18f4321
136
137${RT} a2d sim_p18f1220
138
139${RT} a2d sim_p10f222
140
141${RT} a2d sim_p18f26k22
142
143${RT} psp sim_p18f452
144
145${RT} psp sim_p18f6520
146
147${RT} psp sim_p16f871
148
149${RT} ttl sim_ttl377
150
151${RT} ttl sim_ttl165
152
153${RT} ttl sim_ttl595
154
155${RT} ccp sim_ccp_877a
156
157${RT} ccp sim_ccp_819
158
159${RT} ccp sim_pwm_877a
160
161${RT} ccp sim_pwm_6520
162
163${RT} ccp sim_pwm_26k22
164
165${RT} epwm sim
166
167${RT} ccp_628 sim
168
169${RT} wavegen sim
170
171${RT} spi sim_p16f88
172
173${RT} spi sim_p18f242
174
175${RT} spi sim_p16c62
176
177${RT} i2c sim_p16f88
178
179${RT} i2c sim_p16f819
180
181${RT} i2c sim_p16f876a
182
183${RT} port_stim sim_port_stim
184
185${RT} p12f675	sim_p12f629
186${RT} p12f675	sim_p12f675
187${RT} p12f675	sim_p12f683
188
189${RT} p12c509 sim_p12c509_reset
190
191${RT} p16f84 sim_reset
192
193${RT} wdt sim_wdt_10f200
194${RT} wdt sim_wdt_16f88
195${RT} wdt sim_nwdt_16f88
196
197${RT} wdt sim_nwdt_16f1823
198${RT} wdt sim_pwdt_16f1823
199
200${RT} wdt sim_wdt_16f628
201${RT} wdt sim_nwdt_16f628
202${RT} wdt sim_nwdt_16f648a
203
204${RT} wdt sim_wdt_16c64
205${RT} wdt sim_nwdt_16c64
206
207${RT} wdt sim_wdt_18f452
208${RT} wdt sim_nwdt_18f452
209${RT} wdt sim_wdt_18f4620
210${RT} wdt sim_nwdt_18f4620
211
212${RT} p16f676 sim_p16f676
213${RT} p16f676 sim_reset
214${RT} p16f690 sim_epwm
215${RT} p16f690 sim_eusart
216${RT} p16f690 sim_eusart_690
217${RT} p16f690 sim_nwdt_16f631
218${RT} p16f690 sim_p16f690
219${RT} p16f690 sim_wdt_16f677
220${RT} p16f690 sim_wdt_16f685
221
222${RT}       p16f684 sim_a2d_684
223${RT}       p16f684 sim_compar_684
224${RT}       p16f684 sim_epwm
225${RT}       p16f684 sim_nwdt_16f684
226${RT}       p16f684 sim_reset
227${RT}       p16f684 sim_wdt_16f684
228
229${RT}       p1xf18xx sim_p12f1822
230${RT}       p1xf18xx sim_p12f1822_usart
231${RT}       p1xf18xx sim_p16f1503
232${RT}       p1xf18xx sim_p16f1503_nco
233${RT}       p1xf18xx sim_p16f1823
234${RT}       p1xf18xx sim_p16f1823_comp
235${RT}       p1xf18xx sim_p16f1823_i2c
236${RT}       p1xf18xx sim_p16f1823_i2c_v2
237${RT}       p1xf18xx sim_p16f1823_spi
238${RT}       p1xf18xx sim_p16f1705
239${RT}       p1xf18xx sim_zcd_f1705
240${RT}       p1xf18xx sim_p16f1709
241${RT}       p1xf18xx sim_p16f1709_cog
242${RT}       p1xf18xx sim_p16f1709_i2c
243
244${RT}	p18f26k22 sim
245${RT}	p16f88x sim
246${RT}	p16f91x sim
247${RT}   p10f32x sim
248grep ERR */*log
249