forked from ufz/ogs
/
TestDefinition.h
42 lines (36 loc) · 1012 Bytes
/
TestDefinition.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
35
36
37
38
39
40
41
42
/**
* \file
*
* \copyright
* Copyright (c) 2012-2018, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include <memory>
#include <string>
#include <vector>
namespace BaseLib
{
class ConfigTree;
}
namespace ApplicationsLib
{
class TestDefinition final
{
public:
/// Constructs test definition from the config and reference path
/// essentially constructing the command lines to be run on run() function
/// call.
TestDefinition(BaseLib::ConfigTree const& config_tree,
std::string const& reference_path,
std::string const& output_directory);
bool runTests() const;
std::vector<std::string> const& getOutputFiles() const;
private:
std::vector<std::string> _command_lines;
std::vector<std::string> _output_files;
};
} // namespace ApplicationsLib