aboutsummaryrefslogtreecommitdiff
path: root/config/boards/tcwg-local.exp
blob: f13de9047db1da01c61eea81feba23b040e4f52e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
load_base_board_description unix

# Compilation timeout 10min
set_board_info gcc,timeout 600
# Execution timeout 5min.
# DJ seems to ignore these and uses default timeout of 300.
set test_timeout 300
set gdb_test_timeout 60
if {[info exists env(TIMEOUTFACTOR)] && ![string equal $env(TIMEOUTFACTOR) ""]} {
    set test_timeout [expr $test_timeout * $env(TIMEOUTFACTOR)]
    set gdb_test_timeout [expr $gdb_test_timeout * $env(TIMEOUTFACTOR)]
}
set_board_info timeout $test_timeout

# Unfortunatelly, current DejaGNU can't reliably kill timed-out
# processes, so wrap them in timeout.
set_board_info exec_shell "timeout -k 30s [expr 30 + $test_timeout]s"

# Mark this board as one for local testing
global board
global board_info
# Remove any target variant specifications from the name.
set baseboard [lindex [split $board "/"] 0]
set board_info($baseboard,isremote) 0