]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/testsuite/sim/bpf/allinsn.exp
sim: eBPF simulator
[thirdparty/binutils-gdb.git] / sim / testsuite / sim / bpf / allinsn.exp
CommitLineData
b26e2ae7
JM
1# eBPF simulator testsuite
2
3if [istarget bpf-unknown-none] {
4 # all machines
5 set all_machs "bpf"
6
7 global global_sim_options
8 if ![info exists global_sim_options] {
9 set global_sim_options "--memory-size=4Mb"
10 }
11
12 global global_ld_options
13 if ![info exists global_ld_options] {
14 set global_ld_options "-Ttext=0x0"
15 }
16
17 foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.s]] {
18 # If we're only testing specific files and this isn't one of them,
19 # skip it.
20 if ![runtest_file_p $runtests $src] {
21 continue
22 }
23
24 run_sim_test $src $all_machs
25 }
26}