equal
deleted
inserted
replaced
|
1 # The tests in this folder test specifying the cargo profile name via the --profile option. |
|
2 # The built-in `test` and `bench` profiles are _not_ supported, because they output |
|
3 # artifacts to a different location and add a hash to the artifact name. |
|
4 if(Rust_VERSION VERSION_GREATER_EQUAL 1.57.0) |
|
5 |
|
6 corrosion_tests_add_test(custom_profiles_global "custom-profile-exe" TEST_SRC_DIR custom_profiles) |
|
7 corrosion_tests_add_test(custom_profiles_target_specific "custom-profile-exe" |
|
8 TEST_SRC_DIR custom_profiles |
|
9 PASS_THROUGH_ARGS -DCORROSION_TEST_USE_TARGET_SPECIFIC_OVERRIDE=ON |
|
10 ) |
|
11 corrosion_tests_add_test(dev_profile "dev_bin" TEST_SRC_DIR basic_profiles CARGO_PROFILE dev) |
|
12 corrosion_tests_add_test(release_profile "release_bin" TEST_SRC_DIR basic_profiles CARGO_PROFILE release) |
|
13 |
|
14 set_tests_properties("custom_profiles_global_run_custom-profile-exe" PROPERTIES PASS_REGULAR_EXPRESSION |
|
15 "^Hello, Cpp! I'm Rust!\r?\n$" |
|
16 ) |
|
17 set_tests_properties("custom_profiles_target_specific_run_custom-profile-exe" PROPERTIES PASS_REGULAR_EXPRESSION |
|
18 "^Hello, Cpp! I'm Rust!\r?\n$" |
|
19 ) |
|
20 set_tests_properties("dev_profile_run_dev_bin" PROPERTIES PASS_REGULAR_EXPRESSION |
|
21 "^Hello, Cpp! I'm Rust!\r?\n$" |
|
22 ) |
|
23 set_tests_properties("release_profile_run_release_bin" PROPERTIES PASS_REGULAR_EXPRESSION |
|
24 "^Hello, Cpp! I'm Rust!\r?\n$" |
|
25 ) |
|
26 |
|
27 endif() |