Search in sources :

Example 1 with Element

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);
}
Also used : Element(org.lflang.lf.Element) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 Element (org.lflang.lf.Element)1