commit f3b66ee0060939a17048c33284d89ee949f7d470
parent 274b221ad9f1f95655c7f76945eaa8ef8ffe9644
Author: serge-sans-paille <sguelton@mozilla.com>
Date: Tue, 14 Oct 2025 14:20:00 +0000
Bug 1981975 - Move check_js_msg_encoding.py check from Makefile.in to moz.build r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D260443
Diffstat:
3 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/js/src/Makefile.in b/js/src/Makefile.in
@@ -39,9 +39,6 @@ JITTEST_SANITIZER_ENV=MSAN_SYMBOLIZER_PATH='$(LLVM_SYMBOLIZER)'
endif
endif
-check-js-msg::
- (cd $(topsrcdir) && $(PYTHON3) $(topsrcdir)/config/check_js_msg_encoding.py);
-
check-jit-test::
$(JITTEST_SANITIZER_ENV) $(PYTHON3) -u $(srcdir)/jit-test/jit_test.py \
--no-slow --no-progress --format=automation --jitflags=all \
@@ -49,8 +46,6 @@ check-jit-test::
$(JITTEST_EXTRA_ARGS) \
$(DIST)/bin/js$(BIN_SUFFIX) $(JITTEST_TEST_ARGS)
-check:: check-js-msg
-
check-jstests:
$(PYTHON3) -u $(srcdir)/tests/jstests.py \
--no-progress --format=automation --timeout 300 \
diff --git a/js/src/moz.build b/js/src/moz.build
@@ -64,6 +64,12 @@ if not CONFIG["JS_DISABLE_SHELL"]:
"fuzz-tests",
]
+LegacyTest(
+ f"%{CONFIG['PYTHON3']}",
+ "/config/check_js_msg_encoding.py",
+ depends=["/config/check_js_msg_encoding.py"],
+)
+
if CONFIG["FUZZING_INTERFACES"] and CONFIG["LIBFUZZER"]:
# In addition to regular coverage provided by trace-pc-guard,
# LibFuzzer can use trace-cmp to instrument various compare instructions.
diff --git a/python/mozbuild/mozbuild/test/test_legacy_test.py b/python/mozbuild/mozbuild/test/test_legacy_test.py
@@ -10,6 +10,7 @@ import mozversioncontrol
allowlist = {
"ipc/ipdl/test/ipdl/moz.build",
+ "js/src/moz.build",
}