From 6250488216d58ef9be95c63963deff21161c4130 Mon Sep 17 00:00:00 2001 From: heck Date: Mon, 7 Jun 2021 23:53:35 +0200 Subject: [PATCH] Tests: PityTest - Add test_model.cc --- test/test_model.cc | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 test/test_model.cc diff --git a/test/test_model.cc b/test/test_model.cc new file mode 100644 index 0000000..1708101 --- /dev/null +++ b/test/test_model.cc @@ -0,0 +1,36 @@ +#include "../src/PityUnit.hh" +#include "../src/PityModel.hh" +#include "../../framework/utils.hh" +#include "../../../src/std_utils.hh" +#include "../../../src/pEpLog.hh" +#include +#include +#include + +using namespace std; +using namespace pEp::Adapter; +using namespace pEp::PityTest11; + + +void test_node1(const PityUnit& unit) { +} + + +int main(int argc, char* argv[]) +{ + pEpLog::log("FSDFSD"); + PityModel::debug_log_enabled = false; + PityNode::debug_log_enabled = false; + PityModel model{ "test_Model", 3 }; + + for (PityNode n : model.getNodes()) { + pEpLog::log(n.to_string()); + } + + auto node1_unit = model.getNodes().at(0).getProcessUnit(); + PityUnit node1_test1 = PityUnit{ node1_unit.get(), "test1", nullptr }; +// model.getPerspective(0); + + model.rootUnit().run(); + // pEpLog::log(model.rootUnit().to_string()); +} \ No newline at end of file