tools/corrosion/test/hostbuild/CMakeLists.txt
branchtransitional_engine
changeset 16038 d903f8d2395a
parent 16021 6a3dc15b78b9
equal deleted inserted replaced
16036:7b8d96fc8799 16038:d903f8d2395a
     1 # FIXME: ONly test this when cross-compiling?
     1 corrosion_tests_add_test(hostbuild "rust-host-program" IS_HOSTBUILD)
     2 corrosion_tests_add_test(hostbuild "rust-host-program")
       
     3 
     2 
     4 set_tests_properties("hostbuild_run_rust-host-program" PROPERTIES PASS_REGULAR_EXPRESSION
     3 set_tests_properties("hostbuild_run_rust-host-program" PROPERTIES PASS_REGULAR_EXPRESSION
     5         "^ok\r?\nHello Rust Hostbuild, I am an external C function"
     4         "^ok\r?\nHello Rust Hostbuild, I am an external C function"
     6         )
     5         )
     7 # Run tests are disabled by default when cross-compiling, however we still want to test hostbuild!
     6 
     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()