summaryrefslogtreecommitdiffstats
path: root/xpcom/tests/gtest/moz.build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /xpcom/tests/gtest/moz.build
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'xpcom/tests/gtest/moz.build')
-rw-r--r--xpcom/tests/gtest/moz.build181
1 files changed, 181 insertions, 0 deletions
diff --git a/xpcom/tests/gtest/moz.build b/xpcom/tests/gtest/moz.build
new file mode 100644
index 0000000000..3347c56ba5
--- /dev/null
+++ b/xpcom/tests/gtest/moz.build
@@ -0,0 +1,181 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+UNIFIED_SOURCES += [
+ "Helpers.cpp",
+ "TestArenaAllocator.cpp",
+ "TestArrayAlgorithm.cpp",
+ "TestAtoms.cpp",
+ "TestAutoRefCnt.cpp",
+ "TestBase64.cpp",
+ "TestCallTemplates.cpp",
+ "TestCloneInputStream.cpp",
+ "TestCOMPtrEq.cpp",
+ "TestCRT.cpp",
+ "TestDafsa.cpp",
+ "TestDelayedRunnable.cpp",
+ "TestEncoding.cpp",
+ "TestEscape.cpp",
+ "TestEventPriorities.cpp",
+ "TestEventTargetQI.cpp",
+ "TestFile.cpp",
+ "TestGCPostBarriers.cpp",
+ "TestID.cpp",
+ "TestIDUtils.cpp",
+ "TestInputStreamLengthHelper.cpp",
+ "TestJSHolderMap.cpp",
+ "TestLogCommandLineHandler.cpp",
+ "TestLogging.cpp",
+ "TestMemoryPressure.cpp",
+ "TestMoveString.cpp",
+ "TestMozPromise.cpp",
+ "TestMruCache.cpp",
+ "TestMultiplexInputStream.cpp",
+ "TestNonBlockingAsyncInputStream.cpp",
+ "TestNsDeque.cpp",
+ "TestNSPRLogModulesParser.cpp",
+ "TestObserverArray.cpp",
+ "TestObserverService.cpp",
+ "TestOwningNonNull.cpp",
+ "TestPLDHash.cpp",
+ "TestPriorityQueue.cpp",
+ "TestQueue.cpp",
+ "TestRacingServiceManager.cpp",
+ "TestRecursiveMutex.cpp",
+ "TestRustRegex.cpp",
+ "TestRWLock.cpp",
+ "TestSegmentedBuffer.cpp",
+ "TestSlicedInputStream.cpp",
+ "TestSmallArrayLRUCache.cpp",
+ "TestSnappyStreams.cpp",
+ "TestStateWatching.cpp",
+ "TestStorageStream.cpp",
+ "TestStrings.cpp",
+ "TestStringStream.cpp",
+ "TestSubstringTuple.cpp",
+ "TestSynchronization.cpp",
+ "TestTArray.cpp",
+ "TestTArray2.cpp",
+ "TestTaskQueue.cpp",
+ "TestTextFormatter.cpp",
+ "TestThreadManager.cpp",
+ "TestThreadMetrics.cpp",
+ "TestThreadPool.cpp",
+ "TestThreadPoolListener.cpp",
+ "TestThrottledEventQueue.cpp",
+ "TestTimeStamp.cpp",
+ "TestTokenizer.cpp",
+ "TestUTF.cpp",
+ "TestVariant.cpp",
+]
+
+if CONFIG["OS_TARGET"] != "Android":
+ UNIFIED_SOURCES += [
+ "TestPipes.cpp",
+ "TestThreads.cpp",
+ ]
+
+# skip the test on windows10-aarch64 due to perma-fail, bug 1422219
+if not (CONFIG["OS_TARGET"] == "WINNT" and CONFIG["CPU_ARCH"] == "aarch64"):
+ UNIFIED_SOURCES += ["TestThreadUtils.cpp"]
+
+# skip the test on OSX due to frequent failures (bug 1571186)
+if CONFIG["OS_TARGET"] != "Darwin":
+ UNIFIED_SOURCES += ["TestExpirationTracker.cpp"]
+
+# skip the test on windows10-aarch64 and Android, aarch64 due to bug 1545670
+if CONFIG["OS_TARGET"] != "Android" and not (
+ CONFIG["OS_TARGET"] == "WINNT" and CONFIG["CPU_ARCH"] == "aarch64"
+):
+ UNIFIED_SOURCES += ["TestTimers.cpp"]
+
+
+if (
+ CONFIG["MOZ_DEBUG"]
+ and CONFIG["OS_ARCH"] not in ("WINNT")
+ and CONFIG["OS_TARGET"] != "Android"
+):
+ # FIXME bug 523392: TestDeadlockDetector doesn't like Windows
+ # Bug 1054249: Doesn't work on Android
+ UNIFIED_SOURCES += [
+ "TestDeadlockDetector.cpp",
+ "TestDeadlockDetectorScalability.cpp",
+ ]
+
+if CONFIG["OS_TARGET"] == "WINNT":
+ UNIFIED_SOURCES += [
+ "TestAvailableMemoryWatcherWin.cpp",
+ "TestFileNTFSSpecialPaths.cpp",
+ "TestFilePreferencesWin.cpp",
+ "TestHandleWatcher.cpp",
+ ]
+else:
+ UNIFIED_SOURCES += [
+ "TestFilePreferencesUnix.cpp",
+ ]
+
+if CONFIG["OS_TARGET"] == "Darwin":
+ UNIFIED_SOURCES += [
+ "TestAvailableMemoryWatcherMac.cpp",
+ "TestMacNSURLEscaping.mm",
+ "TestThreads_mac.mm",
+ ]
+
+if CONFIG["OS_TARGET"] == "Linux":
+ UNIFIED_SOURCES += [
+ "TestAvailableMemoryWatcherLinux.cpp",
+ ]
+
+if (
+ CONFIG["WRAP_STL_INCLUDES"]
+ and CONFIG["CC_TYPE"] != "clang-cl"
+ and CONFIG["OS_TARGET"] != "Android"
+):
+ UNIFIED_SOURCES += [
+ "TestSTLWrappers.cpp",
+ ]
+
+# Compile TestAllocReplacement separately so Windows headers don't pollute
+# the global namespace for other files.
+if CONFIG["MOZ_MEMORY"]:
+ SOURCES += [
+ "TestAllocReplacement.cpp",
+ ]
+
+SOURCES += [
+ "TestCOMArray.cpp",
+ "TestCOMPtr.cpp", # Redefines IFoo and IBar
+ "TestHashtables.cpp", # Redefines IFoo
+ "TestNsRefPtr.cpp", # Redefines Foo
+]
+
+LOCAL_INCLUDES += [
+ "../../base",
+ "/toolkit/components/telemetry/tests/gtest",
+ "/xpcom/components",
+]
+
+GeneratedFile(
+ "dafsa_test_1.inc",
+ script="../../ds/tools/make_dafsa.py",
+ inputs=["dafsa_test_1.dat"],
+)
+
+TEST_HARNESS_FILES.gtest += [
+ "wikipedia/ar.txt",
+ "wikipedia/de-edit.txt",
+ "wikipedia/de.txt",
+ "wikipedia/ja.txt",
+ "wikipedia/ko.txt",
+ "wikipedia/ru.txt",
+ "wikipedia/th.txt",
+ "wikipedia/tr.txt",
+ "wikipedia/vi.txt",
+]
+
+FINAL_LIBRARY = "xul-gtest"
+
+include("/ipc/chromium/chromium-config.mozbuild")