Debian Codegraph @

src/tests/bootmakertest.cpp

raw symbols SCIP
1 // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
2 //
3 // SPDX-License-Identifier: GPL-3.0-only
4
5 #include "bootmakertest.h"
6
7 // Sets up the test fixture.
8 void BootMakerTest::SetUp()
9 {
10 m_bootMaker = new BootMaker;
11 }
12
13 // Tears down the test fixture.
14 void BootMakerTest::TearDown()
15 {
16 delete m_bootMaker;
17 m_bootMaker = nullptr;
18 }
19
20 TEST_F(BootMakerTest, Slots)
21 {
22 m_bootMaker->reboot();
23 m_bootMaker->start();
24 m_bootMaker->stop();
25 m_bootMaker->deviceList();
26 m_bootMaker->install("~/virtual_disk.img","/dev/sdb","/dev/sdb1",false);
27 m_bootMaker->checkfile("/dev/sdb1");
28 }