# 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/.
import os import sys
import mozpack.path as mozpath
from mozbuild.backend.test_manifest import TestManifestBackend from mozbuild.base import BuildEnvironmentNotFoundException, MozbuildObject from mozbuild.frontend.emitter import TreeMetadataEmitter from mozbuild.frontend.reader import BuildReader, EmptyConfig
def gen_test_backend():
build_obj = MozbuildObject.from_environment() try:
config = build_obj.config_environment except BuildEnvironmentNotFoundException: # Create a stub config.status file, since the TestManifest backend needs # to be re-created if configure runs. If the file doesn't exist, # mozbuild continually thinks the TestManifest backend is out of date # and tries to regenerate it.
print("No build detected, test metadata may be incomplete.")
# If 'JS_STANDALONE' is set, tests that don't require an objdir won't # be picked up due to bug 1345209.
substs = EmptyConfig.default_substs if"JS_STANDALONE"in substs: del substs["JS_STANDALONE"]
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.