4 #include <catch_ros/catch.hpp>
6 #include "../../src/launch/launch_config.h"
18 <arg name="test_argument" value="hello" />
20 <include file="$(find rosmon_core)/test/basic_sub.launch">
21 <arg name="test_argument" value="$(arg test_argument)" />
30 CHECK(getTypedParam<std::string>(
params,
"/test_argument") ==
"hello");
38 std::stringstream warnings;
44 <arg name="test_argument" value="hello" />
46 <include file="$(find rosmon_core)/test/basic_sub.launch">
47 <arg name="test_argument" default="$(arg test_argument)" />
56 CHECK(getTypedParam<std::string>(
params,
"/test_argument") ==
"hello");
58 CAPTURE(warnings.str());
59 CHECK(warnings.str().find(
"default") != std::string::npos);
67 <arg name="test_argument" value="hello" />
69 <include file="$(find rosmon_core)/test/basic_sub.launch" pass_all_args="true" />
77 CHECK(getTypedParam<std::string>(
params,
"/test_argument") ==
"hello");
85 <include file="$(find rosmon_core)/test/basic_sub.launch"
86 enable-coredumps="false" rosmon-memory-limit="100" rosmon-stop-timeout="10.0" />
92 auto nodes = config.
nodes();
95 auto n =
getNode(nodes,
"test_node");
96 CHECK(!n->coredumpsEnabled());
97 CHECK(n->memoryLimitByte() == 100);
98 CHECK(n->stopTimeout() == Approx(10.0));