forked from philipritchey/autograder-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
50 lines (43 loc) · 1.53 KB
/
config.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
'''
Constants that are more-or-less configurable.
'''
# delimiters
BEGIN_MULTILINE_COMMENT_DELIMITER = '/*'
END_MULTILINE_COMMENT_DELIMITER = '*/'
BEGIN_TEST_DELIMITER = '<test>'
END_TEST_DELIMITER = '</test>'
EMPTY_TEST_BLOCK = '<test/>'
# visibility options
# hidden: test case will never be shown to students
# after_due_date: test case will be shown after the assignment's due date has passed. If late
# submission is allowed, then test will be shown only after the late due date.
# after_published: test case will be shown only when the assignment is explicitly published from
# the "Review Grades" page
# visible: test case will always be shown
HIDDEN = 'hidden'
AFTER_DUE_DATE = 'after_due_date'
AFTER_PUBLISHED = 'after_published'
VISIBLE = 'visible'
VISIBILITY_OPTIONS = [HIDDEN, AFTER_DUE_DATE, AFTER_PUBLISHED, VISIBLE]
# defaults
DEFAULT_POINTS = 0.0
DEFAULT_TIMEOUT = 10.0
DEFAULT_SHOW_OUTPUT = 'false'
DEFAULT_NUMBER = ''
DEFAULT_TARGET = ''
DEFAULT_VISIBILITY = VISIBLE
DEFAULT_STDOUT_VISIBILITY = VISIBLE
# output
TIMEOUT_MSSG = 'Timeout during test execution, check for an infinite loop\n'
OCTOTHORPE_LINE = '#'*27
OCTOTHORPE_WALL = '#'+' '*25+'#'
INFO_UNSUPPORTED_TEST = '[INFO] Unsupported Test'
# snarky comment control
SNARKY_SUBMISSION_CNT_THRESHHOLD = 0.9 # be snarky when score < 90%
# cpp compilation config
CXX = 'g++'
CXX_FLAGS = '-std=c++17 -g'
# java compilation config
JAVA_CLASSPATH = ".:./lib/hamcrest-2.2.jar:./lib/junit-4.13.2.jar"
JAVAC = 'javac'
JAVA_FLAGS = '-Xlint -g -cp ' + JAVA_CLASSPATH