File: skip-tests-forcing-no-cmake-warn.patch

package info (click to toggle)
corrosion 0.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,048 kB
  • sloc: cpp: 121; sh: 20; ansic: 8; makefile: 4
file content (35 lines) | stat: -rw-r--r-- 1,488 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--- a/test/parse_target_triple/CMakeLists.txt
+++ b/test/parse_target_triple/CMakeLists.txt
@@ -1,10 +1,2 @@
 corrosion_tests_add_test(parse_target_triple "")
 corrosion_tests_add_test(parse_target_triple_should_fail "")
-
-set_tests_properties("parse_target_triple_build" PROPERTIES FAIL_REGULAR_EXPRESSION
-        "CMake Warning"
-        )
-
-set_tests_properties("parse_target_triple_should_fail_build" PROPERTIES PASS_REGULAR_EXPRESSION
-    "CMake Warning"
-    )
\ No newline at end of file
--- a/test/hostbuild/CMakeLists.txt
+++ b/test/hostbuild/CMakeLists.txt
@@ -1,11 +1,11 @@
 # FIXME: ONly test this when cross-compiling?
-corrosion_tests_add_test(hostbuild "rust-host-program")
+# 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"
-        )
+#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()
+#if(CMAKE_CROSSCOMPILING)
+#    set_tests_properties("hostbuild_run_rust-host-program" PROPERTIES DISABLED FALSE)
+#endif()