You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

46 lines
1.1 KiB

load_lib "dejagnu.exp"
# If tracing has been enabled at the top level, then turn it on here
# too.
if $tracelevel {
strace $tracelevel
}
# exp_internal -f dbg.log 1
# Execute everything in the test subdir so all the output files go there.
cd $subdir
# Get the size of the module being tested.
set sizes [exe_size "unit"]
if {[lindex $sizes 0] == "-1"} {
perror "Couldn't get the object file size" 0
}
# Extract the text section size
set textsize [lindex $sizes 0]
# Extract the data section size
set datasize [lindex $sizes 1]
# FIXME: This ultimately needs to be recorded in the testing database,
# which doesn't exist yet. Till then it's kinda bogus, but I figured
# it would be useful having working code to get this data. So we print
# it out, just for the demo aspects.
verbose "Text section size of proctor is 0x$textsize"
verbose "Data section size of proctor is 0x$datasize"
# Execute the test case, and analyse the output
if { [host_execute "unit"] != "" } {
perror "unit had an execution error" 0
}
# All done, back to the top level test directory
cd ..