@@ -173,6 +173,14 @@ Run_test() {
173173 make -C test SIMU=" $1 " test
174174}
175175
176+ # Like Run_test, but don't test the clightgen tool, it's been done already
177+
178+ Rerun_test () {
179+ make -C test -s clean
180+ make -C test CLIGHTGEN=false CCOMPOPTS=" $2 " -j$jobs all
181+ make -C test CLIGHTGEN=false SIMU=" $1 " test
182+ }
183+
176184# Rounds of testing.
177185# First parameter: round number (1, 2, ...)
178186
@@ -181,43 +189,43 @@ case "$target,$os" in
181189 aarch64,linux)
182190 case " $1 " in
183191 1) Run_test " $simu_aarch64 " " " ;;
184- 2) Run_test " $simu_aarch64 " " -fpic" ;;
185- 3) Run_test " $simu_aarch64 " " -Os -fno-pie -no-pie" ;;
192+ 2) Rerun_test " $simu_aarch64 " " -fpic" ;;
193+ 3) Rerun_test " $simu_aarch64 " " -Os -fno-pie -no-pie" ;;
186194 esac ;;
187195 aarch64,macos)
188196 case " $1 " in
189197 1) Run_test " " " " ;;
190- 2) Run_test " " " -fpic" ;;
191- 3) Run_test " " " -Os" ;;
198+ 2) Rerun_test " " " -fpic" ;;
199+ 3) Rerun_test " " " -Os" ;;
192200 esac ;;
193201 arm,linux)
194202 case " $1 " in
195203 1) Run_test " $simu_armhf " " -marm" ;;
196- 2) Run_test " $simu_armhf " " -mthumb" ;;
204+ 2) Rerun_test " $simu_armhf " " -mthumb" ;;
197205 3) Rebuild_runtime -toolprefix arm-linux-gnueabi- arm-eabi
198- Run_test " $simu_armsf " " -marm" ;;
206+ Rerun_test " $simu_armsf " " -marm" ;;
199207 esac ;;
200208 ppc,linux)
201209 case " $1 " in
202210 1) Run_test " $simu_ppc32 " " " ;;
203- 2) Run_test " $simu_ppc32 " " -Os" ;;
211+ 2) Rerun_test " $simu_ppc32 " " -Os" ;;
204212 esac ;;
205213 riscv,linux)
206214 case " $1 " in
207215 1) Run_test " $simu_rv64 " " " ;;
208- 2) Run_test " $simu_rv64 " " -fpic" ;;
209- 3) Run_test " $simu_rv64 " " -Os -fno-pie -no-pie" ;;
216+ 2) Rerun_test " $simu_rv64 " " -fpic" ;;
217+ 3) Rerun_test " $simu_rv64 " " -Os -fno-pie -no-pie" ;;
210218 esac ;;
211219 x86_32,* )
212220 case " $1 " in
213221 1) Run_test " " " " ;;
214- 2) Run_test " " " -Os" ;;
222+ 2) Rerun_test " " " -Os" ;;
215223 esac ;;
216224 x86_64,* )
217225 case " $1 " in
218226 1) Run_test " " " " ;;
219- 2) Run_test " " " -fpic" ;;
220- 3) Run_test " " " -Os -fno-pie -no-pie" ;;
227+ 2) Rerun_test " " " -fpic" ;;
228+ 3) Rerun_test " " " -Os -fno-pie -no-pie" ;;
221229 esac ;;
222230 * )
223231 Fatal " Unknown configuration \" $target \" - \" $os \" "
0 commit comments