forked from utsaslab/crashmonkey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBaseTestCase.h
34 lines (26 loc) · 799 Bytes
/
BaseTestCase.h
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
#ifndef BASE_TEST_CASE_H
#define BASE_TEST_CASE_H
#include <string>
#include "../results/DataTestResult.h"
#include "../user_tools/api/wrapper.h"
namespace fs_testing {
namespace tests {
class BaseTestCase {
public:
virtual ~BaseTestCase() {};
virtual int setup() = 0;
int Run(const int change_fd, const int checkpoint);
virtual int run(const int checkpoint) = 0;
virtual int check_test(unsigned int last_checkpoint,
DataTestResult *test_result) = 0;
virtual int init_values(std::string mount_dir, long filesys_size);
protected:
std::string mnt_dir_;
long filesys_size_;
fs_testing::user_tools::api::CmFsOps *cm_;
};
typedef BaseTestCase *test_create_t();
typedef void test_destroy_t(BaseTestCase *instance);
} // namespace tests
} // namespace fs_testing
#endif