Debian Codegraph @

libgomp/testsuite/libgomp.c/c.exp

raw
1 load_lib libgomp-dg.exp
2 load_gcc_lib gcc-dg.exp
3
4 lappend ALWAYS_CFLAGS "compiler=$GCC_UNDER_TEST"
5
6 # If a testcase doesn't have special options, use these.
7 if ![info exists DEFAULT_CFLAGS] then {
8 set DEFAULT_CFLAGS "-O2"
9 }
10
11 # Initialize dg.
12 dg-init
13
14 # Turn on OpenMP.
15 lappend ALWAYS_CFLAGS "additional_flags=-fopenmp"
16
17 # Gather a list of all tests.
18 set tests [lsort [concat \
19 [find $srcdir/$subdir *.c] \
20 [find $srcdir/$subdir/../libgomp.c-c++-common *.c]]]
21
22 set ld_library_path $always_ld_library_path
23 append ld_library_path [gcc-set-multilib-library-path $GCC_UNDER_TEST]
24 set_ld_library_path_env_vars
25
26 # Main loop.
27 dg-runtest $tests "" $DEFAULT_CFLAGS
28
29 # All done.
30 dg-finish