from dmoj import judgeenv
from dmoj.citest import ci_test

EXECUTORS = ['AWK', 'BF', 'C', 'CPP03', 'CPP11', 'CLANG', 'CLANGX',
             'JAVA8', 'PAS', 'PERL', 'PY2', 'PY3', 'RUBY2', 'SED',
             'TEXT']
OVERRIDES = {}


def main():
    judgeenv.env['runtime'] = {}
    judgeenv.env['extra_fs'] = {
        'PERL': ['/dev/dtrace/helper$'],
        'RUBY2': ['/dev/dtrace/helper$'],
    }

    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)


if __name__ == '__main__':
    main()

import logging

from dmoj import judgeenv
from dmoj.citest import ci_test

EXECUTORS = ['AWK', 'BF', 'C', 'CPP03', 'CPP11', 'CLANG', 'CLANGX',
             'JAVA8', 'PAS', 'PERL', 'PY2', 'PY3', 'RUBY2', 'SED',
             'TEXT']
OVERRIDES = {}


def main():
    judgeenv.env['runtime'] = {}
    judgeenv.env['extra_fs'] = {
        'PERL': ['/dev/dtrace/helper$'],
        'RUBY2': ['/dev/dtrace/helper$'],
    }

    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)


if __name__ == '__main__':
    main()

Enable logging in tests.