Commit 4d332829 authored by steffen.schotthoefer's avatar steffen.schotthoefer
Browse files

fix config unit test

parent 1e39542d
Pipeline #90872 passed with stages
in 17 minutes and 41 seconds
......@@ -16,7 +16,7 @@ OUTPUT_FILE = testOutput
% Log directory
LOG_DIR = ../result/logs
% Mesh File
MESH_FILE = testMesh.su2
MESH_FILE = unit.su2
%
% ---- Solver specifications ----
%
......
......@@ -4,24 +4,14 @@
TEST_CASE( "Read in Config Template" ) {
std::string filename = "input/configTest.cfg";
char config_file_name[MAX_STRING_SIZE];
/*--- Load in the number of zones and spatial dimensions in the mesh file (If no config
file is specified, default.cfg is used) ---*/
strcpy( config_file_name, filename.c_str() );
char filename[] = "../tests/input/configTest.cfg";
// Load Settings from File
Config* config = new Config( config_file_name );
Config* config = new Config( filename );
// Test all set configurations
bool allSatisfied = true;
if( config->GetMeshFile().compare( "testMesh.su2" ) != 0 ) allSatisfied = false;
if( config->GetOutputDir().compare( "../result" ) != 0 ) allSatisfied = false;
if( config->GetOutputFile().compare( "testOutput" ) != 0 ) allSatisfied = false;
if( config->GetLogDir().compare( "../result/logs" ) != 0 ) allSatisfied = false;
if( config->GetCFL() != 0.4 ) allSatisfied = false;
if( config->GetTEnd() != 0.3 ) allSatisfied = false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment