testing/peptest/runtests.py
author Daniel Holbert <dholbert@cs.stanford.edu>
Tue, 29 Jan 2013 09:01:10 -0800
changeset 120243 bf9886e0d35620c31ed2586a4a2fc8c316ddaa5e
parent 94475 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
Bug 835692: Convert TransportLayerDtls::kMaxDigestLength to be a size_t, since that's how it's used & what it's compared to. r=ekr

# 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/.
"""
Adds peptest's dependencies to sys.path then runs the tests
"""
import os
import sys

deps = ['manifestdestiny',
        'mozinfo',
        'mozhttpd',
        'mozlog',
        'mozprofile',
        'mozprocess',
        'mozrunner',
       ]

here = os.path.dirname(__file__)
mozbase = os.path.realpath(os.path.join(here, '..', 'mozbase'))

for dep in deps:
    module = os.path.join(mozbase, dep)
    if module not in sys.path:
        sys.path.insert(0, module)

from peptest import runpeptests
runpeptests.main(sys.argv[1:])