]>
Commit | Line | Data |
---|---|---|
b26e2ae7 JM |
1 | # eBPF simulator testsuite |
2 | ||
3 | if [istarget bpf-unknown-none] { | |
b0dcd7d8 MF |
4 | # Used to locate the `run` program. |
5 | global arch | |
6 | set arch "bpf" | |
7 | ||
b26e2ae7 JM |
8 | # all machines |
9 | set all_machs "bpf" | |
10 | ||
11 | global global_sim_options | |
12 | if ![info exists global_sim_options] { | |
13 | set global_sim_options "--memory-size=4Mb" | |
14 | } | |
15 | ||
16 | global global_ld_options | |
17 | if ![info exists global_ld_options] { | |
18 | set global_ld_options "-Ttext=0x0" | |
19 | } | |
20 | ||
21 | foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.s]] { | |
22 | # If we're only testing specific files and this isn't one of them, | |
23 | # skip it. | |
24 | if ![runtest_file_p $runtests $src] { | |
25 | continue | |
26 | } | |
27 | ||
28 | run_sim_test $src $all_machs | |
29 | } | |
30 | } |