1 set lang_library_path
"../libgfortran/.libs"
2 set lang_link_flags
"-lgfortranbegin -lgfortran"
3 set lang_test_file_found
0
5 load_lib libgomp
-dg.exp
10 if { $blddir
!= "" } {
11 if [file
exists "${blddir}/${lang_library_path}/libgfortranbegin.a"] {
12 set lang_test_file
"${lang_library_path}/libgfortranbegin.a"
13 set lang_test_file_found
1
15 puts
"No libgfortranbegin library found, will not execute fortran tests"
17 } elseif
[info exists GFORTRAN_UNDER_TEST
] {
18 set lang_test_file_found
1
19 # Needs to exist
for libgomp.exp.
22 puts
"GFORTRAN_UNDER_TEST not defined, will not execute fortran tests"
25 if { $lang_test_file_found
} {
26 # Gather a list of all tests.
27 set tests
[lsort
[find $srcdir
/$subdir
*.\
[fF\
]{,90,95,03,08}]]
29 if { $blddir
!= "" } {
30 set ld_library_path
"$always_ld_library_path:${blddir}/${lang_library_path}"
32 set ld_library_path
"$always_ld_library_path"
34 append ld_library_path
[gcc
-set-multilib
-library
-path $GCC_UNDER_TEST
]
35 set_ld_library_path_env_vars
38 gfortran
-dg
-runtest $tests
""