michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /** michael@0: * This file runs a stub Bagheera server. michael@0: * michael@0: * It is meant to be executed with an xpcshell. michael@0: * michael@0: * The Makefile in this directory contains a target to run it: michael@0: * michael@0: * $ make bagheera-server michael@0: */ michael@0: michael@0: Cu.import("resource://testing-common/services-common/bagheeraserver.js"); michael@0: michael@0: initTestLogging(); michael@0: michael@0: let server = new BagheeraServer(); michael@0: server.allowAllNamespaces = true; michael@0: server.start(SERVER_PORT); michael@0: _("Bagheera server started on port " + SERVER_PORT); michael@0: michael@0: // Launch the thread manager. michael@0: _do_main(); michael@0: