forked from Imagelibrary/binutils-gdb
We'll rely on the toolchain probing to determine whether each arch's tests can be run rather the current configure target. This allows testing all of the ports in a multitarget configuration. For now, we don't reformat the files entirely to make it easier to review, and in case we need to make adjustments. Once this feels like it's stable, we can flatten the code a bit by removing the if statement entirely.
22 lines
384 B
Plaintext
22 lines
384 B
Plaintext
# sh tests
|
|
|
|
sim_init
|
|
|
|
set all_machs "sh shdsp"
|
|
|
|
global ASFLAGS_FOR_TARGET
|
|
global LDFLAGS_FOR_TARGET
|
|
|
|
foreach opt $board_variant_list {
|
|
switch "x$opt" {
|
|
x-ml { set ASFLAGS_FOR_TARGET "-little --defsym LITTLE=1"
|
|
set LDFLAGS_FOR_TARGET "-EL" }
|
|
}
|
|
}
|
|
|
|
if [istarget *] {
|
|
foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.s]] {
|
|
run_sim_test $src $all_machs
|
|
}
|
|
}
|