tests.cpp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /**
  2. * @file tests/multithreading/tests.cpp
  3. * @author The PARADEVS Development Team
  4. * See the AUTHORS or Authors.txt file
  5. */
  6. /*
  7. * PARADEVS - the multimodeling and simulation environment
  8. * This file is a part of the PARADEVS environment
  9. *
  10. * Copyright (C) 2013 ULCO http://www.univ-litoral.fr
  11. *
  12. * This program is free software: you can redistribute it and/or modify
  13. * it under the terms of the GNU General Public License as published by
  14. * the Free Software Foundation, either version 3 of the License, or
  15. * (at your option) any later version.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU General Public License
  23. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  24. */
  25. #include <tests/multithreading/graph_manager.hpp>
  26. #include <tests/pdevs/models.hpp>
  27. #include <tests/pdevs/graph_manager.hpp>
  28. #include <common/RootCoordinator.hpp>
  29. #define CATCH_CONFIG_MAIN
  30. #include <tests/catch.hpp>
  31. using namespace paradevs::tests::pdevs;
  32. using namespace paradevs::tests::multithreading;
  33. using namespace paradevs::common;
  34. TEST_CASE("pdevs/hierachical", "run")
  35. {
  36. paradevs::common::RootCoordinator <
  37. DoubleTime, paradevs::pdevs::multithreading::Coordinator <
  38. DoubleTime,
  39. paradevs::common::scheduler::HeapScheduler <
  40. DoubleTime, SchedulerHandle >,
  41. SchedulerHandle,
  42. paradevs::tests::multithreading::RootGraphManager >
  43. > rc(0, 10000, "root", paradevs::common::NoParameters(),
  44. paradevs::common::NoParameters());
  45. rc.run();
  46. }