Changeset View
Changeset View
Standalone View
Standalone View
test/testraid.h
- This file was added.
1 | /************************************************************************* | ||||
---|---|---|---|---|---|
2 | * Copyright (C) 2019 by Shubham <aryan100jangid@gmail.com> * | ||||
3 | * * | ||||
4 | * This program is free software; you can redistribute it and/or * | ||||
5 | * modify it under the terms of the GNU General Public License as * | ||||
6 | * published by the Free Software Foundation; either version 3 of * | ||||
7 | * the License, or (at your option) any later version. * | ||||
8 | * * | ||||
9 | * This program is distributed in the hope that it will be useful, * | ||||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||||
12 | * GNU General Public License for more details. * | ||||
13 | * * | ||||
14 | * You should have received a copy of the GNU General Public License * | ||||
15 | * along with this program. If not, see <http://www.gnu.org/licenses/>.* | ||||
16 | *************************************************************************/ | ||||
17 | | ||||
18 | // SPDX-License-Identifier: GPL-3.0+ | ||||
19 | | ||||
20 | #ifndef TESTRAID_H | ||||
21 | #define TESTRAID_H | ||||
22 | | ||||
23 | #include <QProcess> | ||||
24 | | ||||
25 | class TestRAID | ||||
26 | { | ||||
27 | public: | ||||
28 | TestRAID(); | ||||
29 | ~TestRAID(); | ||||
30 | | ||||
31 | bool testIsmdadmInstalled(); | ||||
32 | bool testRAIDCreation(); | ||||
33 | bool testPartitionSize(); | ||||
34 | | ||||
35 | //QString getDefaultPartitionPath(); | ||||
36 | | ||||
37 | private: | ||||
38 | QProcess *m_mdadm; | ||||
39 | }; | ||||
40 | | ||||
41 | #endif // TESTRAID_H |