| 1 |
|
| 2 |
# Load support procs. |
| 3 |
load_lib objc-dg.exp |
| 4 |
|
| 5 |
# If a testcase doesn't have special options, use these. |
| 6 |
global DEFAULT_CFLAGS |
| 7 |
if ![info exists DEFAULT_CFLAGS] then { |
| 8 |
set DEFAULT_CFLAGS "" |
| 9 |
} |
| 10 |
|
| 11 |
# Initialize `dg'. |
| 12 |
dg-init |
| 13 |
|
| 14 |
# Gather a list of all tests. |
| 15 |
set tests [lsort [glob -nocomplain $srcdir/$subdir/*.m]] |
| 16 |
|
| 17 |
# Main loop. |
| 18 |
dg-runtest $tests "-fgnu-runtime" $DEFAULT_CFLAGS |
| 19 |
|
| 20 |
# darwin targets can also run code with the NeXT runtime. |
| 21 |
if [istarget "*-*-darwin*" ] { |
| 22 |
dg-runtest $tests "-fnext-runtime" $DEFAULT_CFLAGS |
| 23 |
} |
| 24 |
|
| 25 |
# All done. |
| 26 |
dg-finish |