-
Notifications
You must be signed in to change notification settings - Fork 82
/
Copy pathfail.cmake
41 lines (37 loc) · 1.26 KB
/
fail.cmake
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
36
37
38
39
40
41
# Copyright (C) 2021 Toitware ApS.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; version
# 2.1 only.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# The license can be found in the file `LICENSE` in the top level
# directory of this repository.
if ("${CMAKE_SIZEOF_VOID_P}" EQUAL 4)
# For tests that crash (instead of failing). Ctest doesn't have a way to deal
# with that, so we skip the test.
# See https://gitlab.kitware.com/cmake/cmake/-/issues/20397
set(TOIT_SKIP_TESTS
)
endif()
list(APPEND TOIT_SKIP_TESTS
)
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows" OR "${CMAKE_SYSTEM_NAME}" STREQUAL "MSYS")
list(APPEND TOIT_FAILING_TESTS
tests/time_test.toit
tests/zlib_test.toit
tests/class_field_limit_test_compiler.toit
tests/cow_read_only_test_compiler.toit
tests/uart_test.toit
)
endif()
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
list(APPEND TOIT_FAILING_TESTS
tests/uart_test.toit
)
endif()