| 1 |
976 |
jianian |
#!/usr/bin/expect -f
|
| 2 |
|
|
####################################################################################
|
| 3 |
|
|
# Load required libraries
|
| 4 |
|
|
###################################################################################
|
| 5 |
1931 |
hjz |
set libdir $testhome
|
| 6 |
|
|
|
| 7 |
976 |
jianian |
load_lib parse_conf.exp
|
| 8 |
|
|
|
| 9 |
1931 |
hjz |
if {[info exists env(DEJAGNU)]} {
|
| 10 |
1010 |
hjz |
} else {
|
| 11 |
1931 |
hjz |
puts ""
|
| 12 |
|
|
puts ""
|
| 13 |
|
|
puts "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
| 14 |
|
|
puts "FATAL error: DEJAGNU is empty. We can't find site.exp to start test."
|
| 15 |
|
|
puts "Please set DEJAGNU to point to 'site.exp' file for SL regression test."
|
| 16 |
|
|
puts "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
| 17 |
|
|
puts ""
|
| 18 |
|
|
puts ""
|
| 19 |
|
|
exit;
|
| 20 |
1010 |
hjz |
}
|
| 21 |
976 |
jianian |
|
| 22 |
1931 |
hjz |
verbose "The SL software testing framework started with: "
|
| 23 |
|
|
verbose "_____________________________________________"
|
| 24 |
|
|
verbose "Configuration: $confdir/$conf.conf"
|
| 25 |
|
|
verbose "Current Date: $date"
|
| 26 |
|
|
verbose "Testing Home: $testhome"
|
| 27 |
|
|
verbose "Log DIR: $logdir"
|
| 28 |
|
|
verbose "Test Output DIR:$testoutput"
|
| 29 |
976 |
jianian |
|
| 30 |
1931 |
hjz |
# First, Parse the configuration
|
| 31 |
|
|
parse_conf $confdir/$conf.conf
|
| 32 |
976 |
jianian |
|
| 33 |
1931 |
hjz |
# Log and print out the result of configuration
|
| 34 |
|
|
print_conf_vars
|