forked from DMOJ/judge-server
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.docker.test.py
More file actions
34 lines (24 loc) · 780 Bytes
/
.docker.test.py
File metadata and controls
34 lines (24 loc) · 780 Bytes
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
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'}
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()