File: run_boot_test.tcl

package info (click to toggle)
skiboot 5.3.3-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 13,280 kB
  • ctags: 13,840
  • sloc: ansic: 77,199; asm: 1,002; sh: 997; cpp: 894; tcl: 408; makefile: 325; python: 166; pascal: 65
file content (16 lines) | stat: -rw-r--r-- 506 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
source ../../external/mambo/skiboot.tcl

proc console_trigger {response args} {
    array set triginfo $args
    set sim $triginfo(sim)
    $sim trigger clear console $triginfo(match)

    puts "console trigger: putting $response to console"
    $sim console create input in string $response
}

mysim trigger set console "Welcome to Petitboot" { console_trigger "x" }
mysim trigger set console "# "  { console_trigger "halt\n" }
mysim go
mysim memory fwrite 0x30000000 0x300000 $env(SKIBOOT_MEM_DUMP)
exit