1 # Example synacor simulator testsuite. 2 3 sim_init 4 5 # All machines. 6 set all_machs "example" 7 8 global LDFLAGS_FOR_TARGET 9 set LDFLAGS_FOR_TARGET "-Ttext=0" 10 11 foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.s]] { 12 # If we're only testing specific files and this isn't one of them, skip it. 13 if ![runtest_file_p $runtests $src] { 14 continue 15 } 16 run_sim_test $src $all_machs 17 } 18