This repository has been archived by the owner on Dec 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgenerator.h
95 lines (72 loc) · 3.09 KB
/
generator.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*
Copyright 2017 Battelle Energy Alliance, LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Description
-----------
HPC Software testing suite.
Generator concrete class.
Reads json file and creates test objects.
Date Created: Tue Dec 8 08:51:17 MST 2015
Author: Cormac Garvey
*/
#ifndef HPCSWTEST_GENERATOR_H_
#define HPCSWTEST_GENERATOR_H_
#include "compilertest.h"
#include "mpitest.h"
#include "blastest.h"
#include "boosttest.h"
#include "mcnptest.h"
#include "mcnpxtest.h"
#include "scaletest.h"
#include "scale62test.h"
#include "heliostest.h"
#include "vasptest.h"
#include "lammpstest.h"
#include "nwchemtest.h"
#include "mc21test.h"
#include "abaqustest.h"
#include "serpenttest.h"
#include "cthtest.h"
#include "starccmtest.h"
#include "gaussiantest.h"
#include "matlabtest.h"
#include "python2test.h"
#include "python3test.h"
#include <memory>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/info_parser.hpp>
#include <boost/property_tree/json_parser.hpp>
//#include <boost/optional/optional.hpp>
//#include <boost/optional.hpp>
namespace hpcswtest {
class Generator {
public:
Generator(std::string);
~Generator(void);
void runTests(void);
private:
void createTestObjects(void);
void getCompilerJsonData(boost::property_tree::ptree::value_type, std::string &, std::string &, std::string &, std::string &, std::string &, std::string &, std::string &, std::string &, std::string &, std::string &, std::string &);
void getModuleNameVersionJsonData(boost::property_tree::ptree::value_type, std::string &, std::string &);
void getRunScriptJsonData(boost::property_tree::ptree::value_type, std::string &);
void getLibraryNameJsonData(boost::property_tree::ptree::value_type, std::string &);
void getExtraModJsonData(boost::property_tree::ptree::value_type, int, std::string &, std::string &);
void getExeExeArgsJsonData(boost::property_tree::ptree::value_type, std::string &, std::string &);
void getMpiCmdNameArgsJsonData(boost::property_tree::ptree::value_type, std::string &, std::string &);
void getHeliosExesJsonData(boost::property_tree::ptree::value_type, std::string &, std::string &, std::string &);
void getPythonModulesJsonData(boost::property_tree::ptree::value_type, std::vector<std::string> &);
std::string getClusterNameJsonData(boost::property_tree::ptree);
int getPbsMaxChunkSizeJsonData(std::string, boost::property_tree::ptree);
std::string json_file_name_;
std::vector<HpcSwTest *> tests_;
};
} // namespace hpcswtest
#endif // HPCSWTEST_GENERATOR_H