/
linuxboot.go
34 lines (30 loc) · 925 Bytes
/
linuxboot.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright 2019 Splitted-Desktop Systems. All rights reserved
// Copyright 2019 Julien Viard de Galbert
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package testsuite
import (
exp "github.com/google/goexpect"
)
// LinuxbootEfiLoaderBatcher follows the boot sequence of linuxboot efi loder
var LinuxbootEfiLoaderBatcher []exp.Batcher = []exp.Batcher{
&BExpTLog{
L: "Matched LinuxBoot banner",
R: "\\| Starting LinuxBoot \\|",
T: 20,
}, &BExpTLog{
L: "Matched Starting bzImage",
R: "LinuxBoot: Starting bzImage",
T: 10,
}}
// Linuxboot2urootBatcher follows the boot sequence of u-root to the shell prompt
var Linuxboot2urootBatcher []exp.Batcher = []exp.Batcher{
&BExpTLog{
L: "Matched u-root banner",
R: "Welcome to u-root!",
T: 40, // TODO make this time a parameter
}, &BExpTLog{
L: "Matched u-root prompt",
R: "~/> ",
T: 5,
}}