# The programs need to be able to find the built modules, which are
# left in objdir.
-global MODULES_OPTIONS
-set MODULES_OPTIONS "-I $objdir"
-
# Main loop.
set saved-dg-do-what-default ${dg-do-what-default}
set dg-do-what-default "compile"
-algol68-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/program*.a68]] "" ""
+algol68-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/program*.a68]] "" "-I $objdir"
set dg-do-what-default ${saved-dg-do-what-default}
# All done.
torture-init
set-torture-options $TORTURE_OPTIONS
-# The programs need to be able to find the built modules, which are
-# left in objdir.
-global BUILT_MODULES_DIR
-set BUILT_MODULES_DIR "$objdir"
-
foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/program-*.a68]] {
# If we're only testing specific files and this isn't one of them, skip it.
if ![runtest_file_p $runtests $testcase] then {
continue
}
+ set algol68_compile_args "-I$objdir"
algol68-torture-execute $testcase
set algol68_compile_args ""
}
return [gcc-dg-prune $system $text]
}
-# Global modules options
-set MODULES_OPTIONS ""
-
# Modified dg-runtest that can cycle through a list of optimization options
# as c-torture does.
proc algol68-dg-runtest { testcases flags default-extra-flags } {
global runtests
global TORTURE_OPTIONS
- global MODULES_OPTIONS
foreach test $testcases {
# If we're only testing specific files and this isn't one of
foreach flags_t $option_list {
verbose "Testing $nshort, $flags $flags_t" 1
- dg-test $test "$MODULES_OPTIONS $flags $flags_t" ${default-extra-flags}
+ dg-test $test "$flags $flags_t" ${default-extra-flags}
}
}
}
}
}
-# Location of built modules
-set BUILT_MODULES_DIR ""
-
# Build a series of modules ACCESSed by this test.
#
# The first to dg-modules is a list of module names. The source file
if { $algol68_compile_args != "" } {
lappend options "additional_flags=$algol68_compile_args"
}
- if { $BUILT_MODULES_DIR != "" } {
- lappend options "additional_flags=-I$BUILT_MODULES_DIR"
- }
if { $algol68_module_objects != "" } {
lappend options "additional_flags=$algol68_module_objects"
}