use of org.lflang.lf.Element in project lingua-franca by lf-lang.
the class CppRos2Test method runWithRos2.
/**
* Run C++ tests with the ros2 target property set
*/
@Test
public void runWithRos2() {
Assumptions.assumeTrue(isLinux(), "Only supported on Linux");
Element trueLiteral = LfFactory.eINSTANCE.createElement();
trueLiteral.setLiteral("true");
runTestsForTargets(Message.DESC_ROS2, it -> it != TestCategory.EXAMPLE, it -> ASTUtils.addTargetProperty(it.fileConfig.resource, "ros2", trueLiteral), TestLevel.EXECUTION, true);
}