-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Fix hostbuild tests not running when cross-compiling
- Loading branch information
Showing
2 changed files
with
4 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
# FIXME: ONly test this when cross-compiling? | ||
corrosion_tests_add_test(hostbuild "rust-host-program") | ||
corrosion_tests_add_test(hostbuild "rust-host-program" IS_HOSTBUILD) | ||
|
||
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() | ||
|