OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [libgomp/] [testsuite/] [libgomp.fortran/] [fortran.exp] - Blame information for rev 280

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 273 jeremybenn
load_lib libgomp-dg.exp
2
 
3
global shlib_ext
4
 
5
set shlib_ext [get_shlib_extension]
6
set lang_library_path   "../libgfortran/.libs"
7
set lang_link_flags     "-lgfortran"
8
set lang_test_file_found 0
9
 
10
 
11
# Initialize dg.
12
dg-init
13
 
14
if { $blddir != "" } {
15
    # Look for a static libgfortran first.
16
    if [file exists "${blddir}/${lang_library_path}/libgfortran.a"] {
17
        set lang_test_file "${lang_library_path}/libgfortran.a"
18
        set lang_test_file_found 1
19
        # We may have a shared only build, so look for a shared libgfortran.
20
    } elseif [file exists "${blddir}/${lang_library_path}/libgfortran.${shlib_ext}"] {
21
        set lang_test_file "${lang_library_path}/libgfortran.${shlib_ext}"
22
        set lang_test_file_found 1
23
    } else {
24
        puts "No libgfortran library found, will not execute fortran tests"
25
    }
26
} elseif [info exists GFORTRAN_UNDER_TEST] {
27
    set lang_test_file_found 1
28
    # Needs to exist for libgomp.exp.
29
    set lang_test_file ""
30
} else {
31
    puts "GFORTRAN_UNDER_TEST not defined, will not execute fortran tests"
32
}
33
 
34
if { $lang_test_file_found } {
35
    # Gather a list of all tests.
36
    set tests [lsort [find $srcdir/$subdir *.\[fF\]{,90,95,03,08}]]
37
 
38
    if { $blddir != "" } {
39
        set ld_library_path "$always_ld_library_path:${blddir}/${lang_library_path}"
40
    } else {
41
        set ld_library_path "$always_ld_library_path"
42
    }
43
    append ld_library_path [gcc-set-multilib-library-path $GCC_UNDER_TEST]
44
    set_ld_library_path_env_vars
45
 
46
    # Main loop.
47
    gfortran-dg-runtest $tests ""
48
}
49
 
50
# All done.
51
dg-finish

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.