Exemplo n.º 1
0
def main():
    logging.basicConfig(level=logging.INFO)

    judgeenv.env['runtime'] = {}
    judgeenv.env['extra_fs'] = {
        'PHP': ['/etc/php5/', '/etc/terminfo/', '/etc/protocols$'],
        'SWIFT': [os.path.abspath(os.path.join(os.path.dirname(__file__), 'swift'))],
        'RUBY2': ['/home/travis/.gem/'],
    }

    print('Available JVMs:')
    for jvm in get_dirs(JVM_DIR):
        print('  -', jvm)
    print()

    print('Available Pythons:')
    for python in get_dirs(PYENV_DIR):
        print('  -', python)
    print()

    print('Available Rubies:')
    for ruby in get_dirs(RVM_DIR):
        print('  -', ruby)
    print()

    print('Using extra allowed filesystems:')
    for lang, fs in judgeenv.env['extra_fs'].iteritems():
        print('%-6s: %s' % (lang, '|'.join(fs)))
    print()

    print('Testing executors...')

    ci_test(EXECUTORS, OVERRIDES)
Exemplo n.º 2
0
def main():
    logging.basicConfig(level=logging.INFO)

    judgeenv.env['runtime'] = {}
    judgeenv.env['extra_fs'] = {
        'PHP': ['/etc/php5/', '/etc/terminfo/', '/etc/protocols$'],
        'SWIFT': [os.path.abspath(os.path.join(os.path.dirname(__file__), 'swift'))],
        'RUBY2': ['/home/travis/.gem/'],
    }

    print('Available JVMs:')
    for jvm in get_dirs(JVM_DIR):
        print('  -', jvm)
    print()

    print('Available Pythons:')
    for python in get_dirs(PYENV_DIR):
        print('  -', python)
    print()

    print('Available Rubies:')
    for ruby in get_dirs(RVM_DIR):
        print('  -', ruby)
    print()

    print('Using extra allowed filesystems:')
    for lang, fs in judgeenv.env['extra_fs'].iteritems():
        print('%-6s: %s' % (lang, '|'.join(fs)))
    print()

    print('Testing executors...')

    ci_test(EXECUTORS, OVERRIDES)
Exemplo n.º 3
0
def main():
    logging.basicConfig(level=logging.INFO)

    judgeenv.env['runtime'] = {}
    judgeenv.env['extra_fs'] = {}

    print('Testing executors...')

    ci_test(EXECUTORS, OVERRIDES, ALLOW_FAIL)
Exemplo n.º 4
0
def main():
    judgeenv.env['runtime'] = {}
    judgeenv.env['extra_fs'] = {}

    logging.basicConfig(level=logging.INFO)

    print('Using extra allowed filesystems:')
    for lang, fs in judgeenv.env['extra_fs'].iteritems():
        print('%-6s: %s' % (lang, '|'.join(fs)))
    print()

    print('Testing executors...')
    ci_test(EXECUTORS, OVERRIDES)
Exemplo n.º 5
0
def main():
    judgeenv.env['runtime'] = {}
    judgeenv.env['extra_fs'] = {}

    logging.basicConfig(level=logging.INFO)

    print('Using extra allowed filesystems:')
    for lang, fs in judgeenv.env['extra_fs'].iteritems():
        print('%-6s: %s' % (lang, '|'.join(fs)))
    print()

    print('Testing executors...')
    ci_test(EXECUTORS, OVERRIDES)
Exemplo n.º 6
0
def main():
    judgeenv.env['runtime'] = {}
    judgeenv.env['extra_fs'] = {
        'PERL': ['/dev/dtrace/helper$', '/dev/hv_tsc$'],
        'PY3': ['/dev/hv_tsc$'],
        'RUBY2': ['/dev/dtrace/helper$', '/dev/hv_tsc$'],
    }

    print 'Using extra allowed filesystems:'
    for lang, fs in judgeenv.env['extra_fs'].iteritems():
        print '%-6s: %s' % (lang, '|'.join(fs))
    print

    print 'Testing executors...'

    ci_test(EXECUTORS, OVERRIDES)
Exemplo n.º 7
0
def main():
    judgeenv.env['runtime'] = {}
    judgeenv.env['extra_fs'] = {
        'PERL': [{'exact_file': '/dev/dtrace/helper'}],
        'RUBY2': [{'exact_file': '/dev/dtrace/helper'}],
    }

    logging.basicConfig(level=logging.INFO)

    print('Using extra allowed filesystems:')
    for lang, fs in judgeenv.env['extra_fs'].iteritems():
        for rules in fs:
            for access_type, file in rules.iteritems():
                print('%-6s: %s: %s' % (lang, access_type, file))
    print()

    print('Testing executors...')
    ci_test(EXECUTORS, OVERRIDES)