Bug 1874684 - Part 22: Compute the precise fraction in Duration.p.total and ZonedDate...
[gecko.git] / js / src / jsapi-tests / moz.build
blobac9afbe814ec55ca982e24ed8af1d80a5d897aac
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 GeckoProgram("jsapi-tests", linkage=None)
9 include("../js-cxxflags.mozbuild")
10 include("../js-standalone.mozbuild")
12 UNIFIED_SOURCES += [
13     "selfTest.cpp",
14     "testAddPropertyPropcache.cpp",
15     "testArgumentsObject.cpp",
16     "testArrayBuffer.cpp",
17     "testArrayBufferOrViewAPI.cpp",
18     "testArrayBufferView.cpp",
19     "testArrayBufferWithUserOwnedContents.cpp",
20     "testAtomicOperations.cpp",
21     "testAtomizeUtf8NonAsciiLatin1CodePoint.cpp",
22     "testAtomizeWithoutActiveZone.cpp",
23     "testAvlTree.cpp",
24     "testBigInt.cpp",
25     "testBoundFunction.cpp",
26     "testBug604087.cpp",
27     "testCallArgs.cpp",
28     "testCallNonGenericMethodOnProxy.cpp",
29     "testCharacterEncoding.cpp",
30     "testChromeBuffer.cpp",
31     "testCompileNonSyntactic.cpp",
32     "testCompileScript.cpp",
33     "testCompileUtf8.cpp",
34     "testDateToLocaleString.cpp",
35     "testDebugger.cpp",
36     "testDeduplication.cpp",
37     "testDeepFreeze.cpp",
38     "testDefineGetterSetterNonEnumerable.cpp",
39     "testDefineProperty.cpp",
40     "testDeflateStringToUTF8Buffer.cpp",
41     "testDeleteProperty.cpp",
42     "testDifferentNewTargetInvokeConstructor.cpp",
43     "testEmptyWindowIsOmitted.cpp",
44     "testErrorCopying.cpp",
45     "testErrorLineOfContext.cpp",
46     "testException.cpp",
47     "testExecuteInJSMEnvironment.cpp",
48     "testExternalStrings.cpp",
49     "testFindSCCs.cpp",
50     "testForceLexicalInitialization.cpp",
51     "testForOfIterator.cpp",
52     "testForwardSetProperty.cpp",
53     "testFractionToDouble.cpp",
54     "testFreshGlobalEvalRedefinition.cpp",
55     "testFrontendCompileStencil.cpp",
56     "testFrontendErrors.cpp",
57     "testFrontendJSON.cpp",
58     "testFunctionBinding.cpp",
59     "testFunctionNonSyntactic.cpp",
60     "testFunctionProperties.cpp",
61     "testGCAllocator.cpp",
62     "testGCCellPtr.cpp",
63     "testGCChunkPool.cpp",
64     "testGCExactRooting.cpp",
65     "testGCFinalizeCallback.cpp",
66     "testGCGrayMarking.cpp",
67     "testGCHeapBarriers.cpp",
68     "testGCHooks.cpp",
69     "testGCMarking.cpp",
70     "testGCOutOfMemory.cpp",
71     "testGCStoreBufferRemoval.cpp",
72     "testGCUniqueId.cpp",
73     "testGCWeakCache.cpp",
74     "testGetPropertyDescriptor.cpp",
75     "testHashTable.cpp",
76     "testIndexToString.cpp",
77     "testInformalValueTypeName.cpp",
78     "testInt128.cpp",
79     "testIntern.cpp",
80     "testIntlAvailableLocales.cpp",
81     "testIntString.cpp",
82     "testIsInsideNursery.cpp",
83     "testIsISOStyleDate.cpp",
84     "testIteratorObject.cpp",
85     "testJSEvaluateScript.cpp",
86     "testJSON.cpp",
87     "testLargeArrayBuffers.cpp",
88     "testLookup.cpp",
89     "testLooselyEqual.cpp",
90     "testMappedArrayBuffer.cpp",
91     "testMemoryAssociation.cpp",
92     "testMutedErrors.cpp",
93     "testNewObject.cpp",
94     "testNewTargetInvokeConstructor.cpp",
95     "testNullRoot.cpp",
96     "testNumberToString.cpp",
97     "testObjectEmulatingUndefined.cpp",
98     "testObjectSwap.cpp",
99     "testOOM.cpp",
100     "testParseJSON.cpp",
101     "testParserAtom.cpp",
102     "testPersistentRooted.cpp",
103     "testPreserveJitCode.cpp",
104     "testPrintf.cpp",
105     "testPrivateGCThingValue.cpp",
106     "testProfileStrings.cpp",
107     "testPromise.cpp",
108     "testPropCache.cpp",
109     "testPropertyKey.cpp",
110     "testRecordTupleToSource.cpp",
111     "testRegExp.cpp",
112     "testResolveRecursion.cpp",
113     "testResult.cpp",
114     "tests.cpp",
115     "testSABAccounting.cpp",
116     "testSameValue.cpp",
117     "testSavedStacks.cpp",
118     "testScriptInfo.cpp",
119     "testScriptObject.cpp",
120     "testScriptSourceCompression.cpp",
121     "testSetProperty.cpp",
122     "testSetPropertyIgnoringNamedGetter.cpp",
123     "testSharedImmutableStringsCache.cpp",
124     "testSinglyLinkedList.cpp",
125     "testSliceBudget.cpp",
126     "testSlowScript.cpp",
127     "testSourcePolicy.cpp",
128     "testSparseBitmap.cpp",
129     "testStencil.cpp",
130     "testStringBuffer.cpp",
131     "testStringIsArrayIndex.cpp",
132     "testStructuredClone.cpp",
133     "testSymbol.cpp",
134     "testThreadingConditionVariable.cpp",
135     "testThreadingExclusiveData.cpp",
136     "testThreadingMutex.cpp",
137     "testThreadingThread.cpp",
138     "testToSignedOrUnsignedInteger.cpp",
139     "testTypedArrays.cpp",
140     "testUbiNode.cpp",
141     "testUncaughtSymbol.cpp",
142     "testUTF8.cpp",
143     "testWasmEncoder.cpp",
144     "testWasmLEB128.cpp",
145     "testWasmReturnCalls.cpp",
146     "testWeakMap.cpp",
147     "testWindowNonConfigurable.cpp",
150 SOURCES += [
151     # There are clashing definitions of js::jit::AssemblerBuffer.
152     "testAssemblerBuffer.cpp",
155 SOURCES += [
156     # We don't want this in the C++ files with the test cases.
157     "hidePointer.cpp",
160 if not CONFIG["JS_CODEGEN_NONE"]:
161     UNIFIED_SOURCES += [
162         "testJitABIcalls.cpp",
163         "testJitDCEinGVN.cpp",
164         "testJitFoldsTo.cpp",
165         "testJitGVN.cpp",
166         "testJitMacroAssembler.cpp",
167         "testJitMoveEmitterCycles-mips32.cpp",
168         "testJitMoveEmitterCycles.cpp",
169         "testJitRangeAnalysis.cpp",
170         "testJitRegisterSet.cpp",
171         "testJitRValueAlloc.cpp",
172         "testsJit.cpp",
173     ]
175 if CONFIG["NIGHTLY_BUILD"]:
176     # The Error interceptor only exists on Nightly.
177     UNIFIED_SOURCES += [
178         "testErrorInterceptor.cpp",
179         "testErrorInterceptorGC.cpp",
180     ]
182 if CONFIG["OS_ARCH"] not in ("WINNT", "Darwin") and CONFIG["OS_TARGET"] != "Android":
183     # open_memstream() not available on Windows, macOS, or Android
184     UNIFIED_SOURCES += [
185         "testPrintError.cpp",
186     ]
188 if CONFIG["MOZ_DEBUG"] or CONFIG["NIGHTLY_BUILD"]:
189     DEFINES["JS_CACHEIR_SPEW"] = True
190     DEFINES["JS_STRUCTURED_SPEW"] = True
192 DEFINES["EXPORT_JS_API"] = True
194 LOCAL_INCLUDES += [
195     "!..",
196     "..",
199 USE_LIBS += [
200     "static:js",
203 DEFINES["topsrcdir"] = "%s/js/src" % TOPSRCDIR
204 OBJDIR_PP_FILES.js.src["jsapi-tests"] += ["jsapi-tests-gdb.py.in"]