Compare with Previous | Blame | View Log
#################################################################
# Entry for the dejagnu testing framework
# dejagnu will first try to load this file
# In this file, we try to set the configuration globally and
# some global variables.
#################################################################
# Configuration we are going to use
if {[info exists env(conf)]} {
set conf $env(conf)
} else {
set conf open64-O2
}
# tag feature
if {[info exists env(tag)]} {
set tag $env(tag)
} else {
set tag ""
}
# Today's date in YYYY-MM-DD format
set date [exec date +%F]
# Home for the test framework
if {[info exists env(DEJAGNU)]} {
set testhome [split $env(DEJAGNU) /]
set len [expr [llength $testhome] - 1]
set testhome [join [lreplace $testhome $len $len] /]
set cur [pwd]
} else {
set testhome [pwd]
set dejagnu $testhome
append dejagnu "/site.exp"
if {[file exists $dejagnu]} {
set env(DEJAGNU) $dejagnu
} else {
puts ""
puts "******Error:DEJAGNU variable is empty and site.exp doesn't exist in current directory!!"
puts "Please set DEJAGNU to point to your site.exp file"
puts ""
exit
}
}
# the dir for storing log files
set logdir $cur/log/$date/
# the dir for storing historical data
set datdir $cur/dat
# the dir for storing configuration files
set confdir $testhome/conf
# the output for the test cases
set testoutput $cur/output/$date
# the output dir for testrun.log
set outdir $cur
# log file for putting compiler update/building
set compiler_build_log $logdir/compiler-build.log
set check_in_log $logdir/checkin.log
set lib_build_log $logdir/lib-build.log
set lib_check_in_log $logdir/lib-checkin.log
set cc {}
set cxx {}
set fc {}
set cflags {}
set cxxflags {}
set fflags {}
set sim {}
set comp_home {}
set sim_home {}
set lib_home {}
set platform [exec uname -m | sed -e s/i.86/i386/]
#set maximum timeout 2 minutes
set max_timeout 120
#ignore these directories
set ignoredirs [list "conf" "dat" "doc" "log" "output"]
set smoking_test_list ""
# cases listed in pre_test_cases will be run orderly before others
# musted be relative path
set pre_test_list ""
system mkdir -p $logdir
system mkdir -p $testoutput
cd $testhome