IOSS 2.0
Loading...
Searching...
No Matches
CatalystTestFixture.h
Go to the documentation of this file.
1// Copyright(C) 1999-2021 National Technology & Engineering Solutions
2// of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3// NTESS, the U.S. Government retains certain rights in this software.
4//
5// See packages/seacas/LICENSE for details
6
7#ifndef CatalystTestFixture_h
8#define CatalystTestFixture_h
9
10#include "IossApplication.h"
11#include "vtk_jsoncpp.h"
12#include <map>
13
15{
16public:
17 typedef std::vector<std::pair<std::string, int>> VarAndCompCountVec;
18 typedef std::vector<std::string> StringVec;
19
22
23 void checkPhactoriStringValidParse(const std::string &phactoriSyntax,
24 const Json::Value &parsedJSONResult);
25
26 void checkPhactoriStringInvalidParse(const std::string &phactoriSyntax);
27
28 void runPhactoriJSONTest(const std::string &jsonFile, const std::string &inputFile);
29
30 void runPhactoriJSONTestTwoGrid(const std::string &jsonFile, const std::string &inputFileA,
31 const std::string &inputFileB);
32
33 void runPhactoriJSONTestTwoGridTwoPipe(const std::string &jsonFileA,
34 const std::string &inputFileA,
35 const std::string &jsonFileB,
36 const std::string &inputFileB);
37
38 void runParaViewGuiScriptTest(const std::string &pythonScript, const std::string &inputFile);
39
41 const std::string &jsonFile, const std::string &inputFile);
42
43 void runCatalystMultiBlockMeshTest(const std::string &inputFile);
44
45 void checkMeshOutputVariables(const std::string &inputFile, const VarAndCompCountVec &cellVars,
46 const VarAndCompCountVec &pointVars,
47 const VarAndCompCountVec &globalVars, const std::string &blockPath);
48
49 void checkPartitionedDataSetCollectionStructure(const std::string &inputFile,
50 const StringVec &partitions, int numCells,
51 const StringVec &searchQueries);
52
53 static bool isFileExists(const char *fileName);
54 static void checkTestOutputFileExists(const char *fileName);
55 static void checkTestOutputFileDoesNotExist(const char *fileName);
56
58
59 Json::Value getDefaultCameraJSON();
64
65private:
67};
68
69#endif
Definition CatalystTestFixture.h:15
void checkPhactoriStringValidParse(const std::string &phactoriSyntax, const Json::Value &parsedJSONResult)
void runCatalystMultiBlockMeshTest(const std::string &inputFile)
Json::Value getDefaultCameraJSON()
void checkMeshOutputVariables(const std::string &inputFile, const VarAndCompCountVec &cellVars, const VarAndCompCountVec &pointVars, const VarAndCompCountVec &globalVars, const std::string &blockPath)
void checkPhactoriStringInvalidParse(const std::string &phactoriSyntax)
Json::Value getDefaultCameraParallelProjectionJSON()
void checkPartitionedDataSetCollectionStructure(const std::string &inputFile, const StringVec &partitions, int numCells, const StringVec &searchQueries)
static bool isFileExists(const char *fileName)
std::vector< std::string > StringVec
Definition CatalystTestFixture.h:18
Json::Value getDefaultImageSetWithCameraJSON()
static void checkTestOutputFileExists(const char *fileName)
Json::Value getDefaultOperationsJSON()
Json::Value getDefaultImageSetJSON()
void runCatalystLoggingTest(Ioss::PropertyManager *logging_properties, const std::string &jsonFile, const std::string &inputFile)
IossApplication ioapp
Definition CatalystTestFixture.h:66
void runParaViewGuiScriptTest(const std::string &pythonScript, const std::string &inputFile)
void runPhactoriJSONTestTwoGrid(const std::string &jsonFile, const std::string &inputFileA, const std::string &inputFileB)
static void checkTestOutputFileDoesNotExist(const char *fileName)
void runPhactoriJSONTest(const std::string &jsonFile, const std::string &inputFile)
std::vector< std::pair< std::string, int > > VarAndCompCountVec
Definition CatalystTestFixture.h:17
void runPhactoriJSONTestTwoGridTwoPipe(const std::string &jsonFileA, const std::string &inputFileA, const std::string &jsonFileB, const std::string &inputFileB)
Json::Value getDefaultPhactoriJSON()
Definition IossApplication.h:19
A collection of Ioss::Property objects.
Definition Ioss_PropertyManager.h:36