]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/testsuite/m32c/allinsn.exp
sim: testsuite: push $arch out to targets
[thirdparty/binutils-gdb.git] / sim / testsuite / m32c / allinsn.exp
1 # M32C simulator testsuite.
2 # TODO: Add support for .c tests.
3
4 if [istarget m32c*-*-*] {
5 # Used to locate the `run` program.
6 global arch
7 set arch "m32c"
8
9 # all machines
10 set all_machs "m32c"
11
12 foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.s]] {
13 # If we're only testing specific files and this isn't one of them,
14 # skip it.
15 if ![runtest_file_p $runtests $src] {
16 continue
17 }
18 run_sim_test $src $all_machs
19 }
20 }