Bug 1861305 - Renew data collection for audio_process_per_codec_name r=padenot
[gecko.git] / mfbt / tests / moz.build
blob21b25b8afaed6fb3b730016dea52273d3f831c33
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.ini.
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 # Not to be unified with the rest, because this test
84 # sets MOZ_PRETEND_NO_JSRUST, which changes the behavior
85 # of the included headers.
86 CppUnitTests(
87     [
88         "TestUtf8",
89     ]
92 # Wasi doesn't support <signal> yet so skip this test.
93 if not CONFIG["MOZ_ASAN"] and not CONFIG["MOZ_TSAN"] and CONFIG["OS_ARCH"] != "WASI":
94     CppUnitTests(
95         [
96             "TestPoisonArea",
97         ]
98     )
100 DisableStlWrapping()
102 if CONFIG["CC_TYPE"] == "clang-cl":
103     CXXFLAGS += [
104         "-wd4275",  # non dll-interface class used as base for dll-interface class
105         "-wd4530",  # C++ exception handler used, but unwind semantics are not enabled
106     ]
108 USE_LIBS += [
109     "mozglue",