tools/corrosion/test/cxxbridge/CMakeLists.txt
branchtransitional_engine
changeset 16021 6a3dc15b78b9
equal deleted inserted replaced
16009:7544a7d7c819 16021:6a3dc15b78b9
       
     1 if(CORROSION_TESTS_CXXBRIDGE)
       
     2     corrosion_tests_add_test(cxxbridge_cpp2rust_1 "rust_bin"
       
     3         TEST_SRC_DIR cxxbridge_cpp2rust
       
     4         PASS_THROUGH_ARGS -DTEST_CXXBRIDGE_VARIANT1=ON
       
     5     )
       
     6     corrosion_tests_add_test(cxxbridge_cpp2rust_2 "rust_bin"
       
     7             TEST_SRC_DIR cxxbridge_cpp2rust
       
     8             PASS_THROUGH_ARGS -DTEST_CXXBRIDGE_VARIANT2=ON
       
     9     )
       
    10     corrosion_tests_add_test(cxxbridge_rust2cpp "cxxbridge-exe")
       
    11 
       
    12     set_tests_properties("cxxbridge_cpp2rust_1_run_rust_bin"
       
    13         PROPERTIES PASS_REGULAR_EXPRESSION
       
    14             "main function"
       
    15     )
       
    16     set_tests_properties("cxxbridge_rust2cpp_run_cxxbridge-exe"
       
    17         PROPERTIES PASS_REGULAR_EXPRESSION
       
    18             "Hello cxxbridge from lib.rs! \\[4, 5, 6\\]\r?\nHello cxxbridge from foo/mod.rs! \\[4, 5, 6\\]"
       
    19     )
       
    20 endif()