This .lk option lets you execute particular tests only on specific host
architectures.
libctf/
* testsuite/lib/ctf-lib.exp (run_lookup_test): Add host.
# no_cross:
# If set, do not run this test when host != target.
#
+# host:
+# If set, only run this test on hosts matching the given glob.
+#
# Each option may occur at most once unless otherwise mentioned.
#
# After the option lines come regexp lines. run_lookup_test calls
set opts(source) {}
set opts(xfail) {}
set opts(no_cross) {}
+ set opts(host) {}
foreach i $opt_array {
set opt_name [lindex $i 0]
return
}
+ if { [llength $opts(host)] != 0 && ![ishost $opts(host)] } {
+ untested "$subdir/$name only runs on $opts(host)"
+ return
+ }
+
if { [llength $opts(lookup)] == 0 } {
set opts(lookup) "$file.c"
} else {