Debian Codegraph @

gcc/testsuite/gfortran.dg/guality/guality.exp

raw
1 # This harness is for tests that should be run at all optimisation levels.
2
3 load_lib gfortran-dg.exp
4 load_lib gcc-gdb-test.exp
5
6 # Disable on darwin until radr://7264615 is resolved.
7 if { [istarget *-*-darwin*] } {
8 return
9 }
10
11 if { [istarget hppa*-*-hpux*] } {
12 return
13 }
14
15 if { [istarget "powerpc-ibm-aix*"] } {
16 set torture_execute_xfail "powerpc-ibm-aix*"
17 return
18 }
19
20 dg-init
21 torture-init
22
23 global GDB
24 if ![info exists ::env(GUALITY_GDB_NAME)] {
25 if [info exists GDB] {
26 set guality_gdb_name "$GDB"
27 } elseif { [info exists rootme] && [file exists $rootme/../gdb/gdb] } {
28 # If we're doing a combined build, and gdb is available, use it.
29 set guality_gdb_name "$rootme/../gdb/gdb"
30 } else {
31 set guality_gdb_name "[transform gdb]"
32 }
33 setenv GUALITY_GDB_NAME "$guality_gdb_name"
34 }
35
36 if [info exists ::env(DEBUGINFOD_URLS)] {
37 set orig_debuginfod_urls "$::env(DEBUGINFOD_URLS)"
38 setenv DEBUGINFOD_URLS ""
39 }
40
41 report_gdb $::env(GUALITY_GDB_NAME) [info script]
42
43 global DG_TORTURE_OPTIONS
44 set guality_dg_torture_options [guality_minimal_options $DG_TORTURE_OPTIONS]
45 set-torture-options \
46 $guality_dg_torture_options \
47
48 gfortran-dg-runtest [lsort [glob $srcdir/$subdir/*.\[fF\]{,90,95,03,08} ]] "" ""
49
50 if [info exists guality_gdb_name] {
51 unsetenv GUALITY_GDB_NAME
52 }
53
54 if [info exists ::env(DEBUGINFOD_URLS)] {
55 setenv DEBUGINFOD_URLS "$orig_debuginfod_urls"
56 }
57
58 torture-finish
59 dg-finish