forked from mcpt/wlmoj-judge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.docker.test.py
49 lines (39 loc) · 899 Bytes
/
.docker.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
import logging
import platform
from dmoj import judgeenv
from dmoj.citest import ci_test
from dmoj.executors import get_available
arch = platform.machine()
if arch == 'x86_64':
ALLOW_FAIL = {'GASARM', 'JAVA9', 'JAVA10', 'OBJC', 'LCODE'}
EXECUTORS = get_available()
elif arch == 'aarch64':
EXECUTORS = {
'AWK',
'BF',
'C',
'C11',
'CPP03',
'CPP11',
'CPP14',
'CPP17',
'JAVA8',
'PAS',
'PERL',
'PY2',
'PY3',
'SED',
'TEXT',
}
ALLOW_FAIL = set()
else:
raise AssertionError('invalid architecture')
OVERRIDES = {}
def main():
logging.basicConfig(level=logging.INFO)
judgeenv.env['runtime'] = {}
judgeenv.env['extra_fs'] = {}
print('Testing executors...')
ci_test(EXECUTORS, OVERRIDES, ALLOW_FAIL)
if __name__ == '__main__':
main()