diff -r 7544a7d7c819 -r 6a3dc15b78b9 tools/corrosion/test/hostbuild/CMakeLists.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/corrosion/test/hostbuild/CMakeLists.txt Wed Aug 28 15:31:51 2024 +0200 @@ -0,0 +1,11 @@ +# FIXME: ONly test this when cross-compiling? +corrosion_tests_add_test(hostbuild "rust-host-program") + +set_tests_properties("hostbuild_run_rust-host-program" PROPERTIES PASS_REGULAR_EXPRESSION + "^ok\r?\nHello Rust Hostbuild, I am an external C function" + ) +# Run tests are disabled by default when cross-compiling, however we still want to test hostbuild! +# So we manually re-enable the test here. +if(CMAKE_CROSSCOMPILING) + set_tests_properties("hostbuild_run_rust-host-program" PROPERTIES DISABLED FALSE) +endif()