tools/corrosion/test/hostbuild/CMakeLists.txt
branchtransitional_engine
changeset 16021 6a3dc15b78b9
equal deleted inserted replaced
16009:7544a7d7c819 16021:6a3dc15b78b9
       
     1 # FIXME: ONly test this when cross-compiling?
       
     2 corrosion_tests_add_test(hostbuild "rust-host-program")
       
     3 
       
     4 set_tests_properties("hostbuild_run_rust-host-program" PROPERTIES PASS_REGULAR_EXPRESSION
       
     5         "^ok\r?\nHello Rust Hostbuild, I am an external C function"
       
     6         )
       
     7 # Run tests are disabled by default when cross-compiling, however we still want to test hostbuild!
       
     8 # So we manually re-enable the test here.
       
     9 if(CMAKE_CROSSCOMPILING)
       
    10     set_tests_properties("hostbuild_run_rust-host-program" PROPERTIES DISABLED FALSE)
       
    11 endif()