forked from DMOJ/judge-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.freebsd.test.py
53 lines (44 loc) · 978 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
49
50
51
52
53
import logging
from dmoj import judgeenv
from dmoj.citest import ci_test
EXECUTORS = [
'AWK',
'C',
'C11',
'CPP03',
'CPP11',
'CPP14',
'CPP17',
'CLANG',
'CLANGX',
'F95',
'JAVA8',
'MONOCS',
'MONOFS',
'MONOVB',
'PAS',
'PERL',
'PY2',
'PY3',
'RUBY',
'SED',
'TEXT',
]
OVERRIDES = {}
def main():
judgeenv.env['runtime'] = {}
judgeenv.env['extra_fs'] = {
'PERL': [{'exact_file': '/dev/dtrace/helper'}],
'RUBY': [{'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)
if __name__ == '__main__':
main()