forked from DMOJ/judge-server
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.freebsd.test.py
48 lines (39 loc) · 828 Bytes
/
.freebsd.test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import logging
from dmoj import judgeenv
from dmoj.citest import ci_test
EXECUTORS = [
'AWK',
'BF',
'C',
'C11',
'CPP03',
'CPP11',
'CPP14',
'CPP17',
'CLANG',
'CLANGX',
'JAVA8',
'MONOCS',
'MONOFS',
'MONOVB',
'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()