equal
deleted
inserted
replaced
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() |
|