Commit b7b64719 authored by niklas.baumgarten's avatar niklas.baumgarten

fixed test

parent 3bc4664a
#include "../mpp/tests/TestEnvironment.hpp"
#include "ConfigMapsForTest.hpp"
#include "MainProgram.hpp"
#include "utility/Assertion.h"
#include "utility/M_IOFiles.hpp"
class TestMainProgram : public TestWithParam<ConfigMapsForTest> {
protected:
......@@ -16,7 +17,7 @@ protected:
for (auto &pair: additionalMap)
finalMap[pair.first] = pair.second;
// config = Config(finalMap);
Config::initialize(finalMap);
mainProgram = std::make_unique<MainProgram>();
mainProgram->Initialize();
......@@ -50,6 +51,8 @@ protected:
}
void TearDown() {
Config::close();
if (PPM->master()) {
system("rm -rf data/vtk/*");
}
......@@ -94,6 +97,6 @@ TEST_P(TestMainProgram, TestRunMLMCExperiment) {
}
int main(int argc, char **argv) {
return MAIN_TEST_WITH_PPM(argc, argv);
// return MAIN_TEST_WITH_PPM(argc, argv, "../../mlmc/");
// return MAIN_TEST_WITH_PPM(argc, argv);
return MAIN_TEST_WITH_PPM_WITHOUT_CONFIG(argc, argv, "../../mlmc/");
}
\ No newline at end of file
Markdown is supported
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