Bug 1879774 [wpt PR 44524] - WebKit export: Implement field-sizing support for input...
[gecko.git] / mfbt / tests / moz.build
blob231bec84a33889274730bc299332cb4485cbc883
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 if CONFIG["MOZ_WIDGET_TOOLKIT"]:
8     TEST_DIRS += [
9         "gtest",
10     ]
12 # Important: for these tests to be run, they also need to be added
13 # to testing/cppunittest.toml.
14 CppUnitTests(
15     [
16         "TestAlgorithm",
17         "TestArray",
18         "TestArrayUtils",
19         "TestAtomicBitfields",
20         "TestAtomics",
21         "TestBinarySearch",
22         "TestBitSet",
23         "TestBloomFilter",
24         "TestBufferList",
25         "TestCasting",
26         "TestCeilingFloor",
27         "TestCheckedInt",
28         "TestCompactPair",
29         "TestCountPopulation",
30         "TestCountZeroes",
31         "TestDefineEnum",
32         "TestDoublyLinkedList",
33         "TestEndian",
34         "TestEnumeratedArray",
35         "TestEnumSet",
36         "TestEnumTypeTraits",
37         "TestFastBernoulliTrial",
38         "TestFloatingPoint",
39         "TestFunctionRef",
40         "TestFunctionTypeTraits",
41         "TestHashTable",
42         "TestIntegerRange",
43         "TestJSONWriter",
44         "TestLinkedList",
45         "TestMacroArgs",
46         "TestMacroForEach",
47         "TestMathAlgorithms",
48         "TestMaybe",
49         "TestNonDereferenceable",
50         "TestNotNull",
51         "TestRandomNum",
52         "TestRange",
53         "TestRefPtr",
54         "TestResult",
55         "TestRollingMean",
56         "TestSaturate",
57         "TestScopeExit",
58         "TestSegmentedVector",
59         "TestSHA1",
60         "TestSIMD",
61         "TestSmallPointerArray",
62         "TestSplayTree",
63         "TestTextUtils",
64         "TestTypedEnum",
65         "TestUniquePtr",
66         "TestVariant",
67         "TestVector",
68         "TestWeakPtr",
69         "TestWrappingOperations",
70         "TestXorShift128PlusRNG",
71     ]
74 # We don't support these tests yet because of the lack of thread support for wasi.
75 if CONFIG["OS_ARCH"] != "WASI":
76     CppUnitTests(
77         [
78             "TestSPSCQueue",
79             "TestThreadSafeWeakPtr",
80         ]
81     )
83 if CONFIG["OS_ARCH"] == "WINNT":
84     CppUnitTests(
85         [
86             "TestWinArchDefs",
87         ]
88     )
90 # Not to be unified with the rest, because this test
91 # sets MOZ_PRETEND_NO_JSRUST, which changes the behavior
92 # of the included headers.
93 CppUnitTests(
94     [
95         "TestUtf8",
96     ]
99 # Wasi doesn't support <signal> yet so skip this test.
100 if not CONFIG["MOZ_ASAN"] and not CONFIG["MOZ_TSAN"] and CONFIG["OS_ARCH"] != "WASI":
101     CppUnitTests(
102         [
103             "TestPoisonArea",
104         ]
105     )
107 DisableStlWrapping()
109 if CONFIG["CC_TYPE"] == "clang-cl":
110     CXXFLAGS += [
111         "-wd4275",  # non dll-interface class used as base for dll-interface class
112         "-wd4530",  # C++ exception handler used, but unwind semantics are not enabled
113     ]
115 USE_LIBS += [
116     "mozglue",