2020-12-10 11:26:30 +08:00
|
|
|
# Example synacor simulator testsuite.
|
|
|
|
|
2021-11-21 16:41:39 +08:00
|
|
|
sim_init
|
|
|
|
|
2021-06-24 11:23:27 +08:00
|
|
|
# All machines.
|
|
|
|
set all_machs "example"
|
2020-12-10 11:26:30 +08:00
|
|
|
|
2021-06-24 11:23:27 +08:00
|
|
|
global LDFLAGS_FOR_TARGET
|
|
|
|
set LDFLAGS_FOR_TARGET "-Ttext=0"
|
2021-11-10 14:10:00 +08:00
|
|
|
|
2021-06-24 11:23:27 +08:00
|
|
|
foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.s]] {
|
|
|
|
# If we're only testing specific files and this isn't one of them, skip it.
|
|
|
|
if ![runtest_file_p $runtests $src] {
|
|
|
|
continue
|
2020-12-10 11:26:30 +08:00
|
|
|
}
|
2021-06-24 11:23:27 +08:00
|
|
|
run_sim_test $src $all_machs
|
2020-12-10 11:26:30 +08:00
|
|
|
}
|