Backed out 3 changesets (bug 1901078, bug 1749048) for causing interface related...
[gecko.git] / mfbt / tests / moz.build
bloba8ef150aec8672db988f9411aca5dcf14f1dc58c
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             "TestMPSCQueue",
79             "TestSPSCQueue",
80             "TestThreadSafeWeakPtr",
81         ]
82     )
84 if CONFIG["OS_ARCH"] == "WINNT":
85     CppUnitTests(
86         [
87             "TestWinArchDefs",
88         ]
89     )
91 # Not to be unified with the rest, because this test
92 # sets MOZ_PRETEND_NO_JSRUST, which changes the behavior
93 # of the included headers.
94 CppUnitTests(
95     [
96         "TestUtf8",
97     ]
100 # Wasi doesn't support <signal> yet so skip this test.
101 if not CONFIG["MOZ_ASAN"] and not CONFIG["MOZ_TSAN"] and CONFIG["OS_ARCH"] != "WASI":
102     CppUnitTests(
103         [
104             "TestPoisonArea",
105         ]
106     )
108 DisableStlWrapping()
110 if CONFIG["CC_TYPE"] == "clang-cl":
111     CXXFLAGS += [
112         "-wd4275",  # non dll-interface class used as base for dll-interface class
113         "-wd4530",  # C++ exception handler used, but unwind semantics are not enabled
114     ]
116 USE_LIBS += [
117     "mozglue",