commit e3f52915c9c74a7eedec6cc291792f4e845aedae
parent f267f4acbf02b015a1fe0e558e59b1aaedb552e1
Author: serge-sans-paille <sguelton@mozilla.com>
Date: Tue, 14 Oct 2025 16:04:27 +0000
Bug 1981976 - Move xre tests from Makefile.in to moz.build r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D260444
Diffstat:
3 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/python/mozbuild/mozbuild/test/test_legacy_test.py b/python/mozbuild/mozbuild/test/test_legacy_test.py
@@ -11,6 +11,7 @@ import mozversioncontrol
allowlist = {
"ipc/ipdl/test/ipdl/moz.build",
"js/src/moz.build",
+ "toolkit/xre/test/win/moz.build",
}
diff --git a/toolkit/xre/test/win/Makefile.in b/toolkit/xre/test/win/Makefile.in
@@ -1,9 +0,0 @@
-# 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/.
-
-include $(topsrcdir)/config/rules.mk
-
-check::
- @echo 'Running TestXREMakeCommandLineWin tests'
- @$(FINAL_TARGET)/TestXREMakeCommandLineWin.exe
diff --git a/toolkit/xre/test/win/moz.build b/toolkit/xre/test/win/moz.build
@@ -55,3 +55,8 @@ if CONFIG["MOZ_LAUNCHER_PROCESS"]:
# Needed for TestLauncherRegistryInfo
for var in ("MOZ_APP_BASENAME", "MOZ_APP_VENDOR"):
DEFINES[var] = '"%s"' % CONFIG[var]
+
+LegacyTest(
+ f"!/{FINAL_TARGET}/TestXREMakeCommandLineWin{CONFIG['BIN_SUFFIX']}",
+ description="TestXREMakeCommandLineWin tests",
+)