-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
43 lines (40 loc) · 1.36 KB
/
main.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
from autograde.autograder import Autograder
from autograde.tree import TreeSubmission
from autograde.compiler import TestCompileFiles, TestCleanBinaries
from autograde.gitlog import TestGitlogFormat
from autograde.files import TestRequiredFiles, TestUnexpectedFiles
from autograde.tests import TestGroup, TestRunner, ArgumentArray
from autograde.controller import DiffTester
CONFIG = {
"settings": {
"autograder": True,
"version": "0.1.0",
"locationMount": "submission/",
"foldersReq": ["input", "output", "expected"]
},
"test": {
"tests": [
TreeSubmission(),
TestGitlogFormat(),
TestRequiredFiles(['one.c']),
TestCleanBinaries(['one']),
TestCompileFiles(targets=['one']),
TestGroup("Equality", [
TestRunner(
target='one',
test_name='Check Equality',
arguments=ArgumentArray(),
tester=DiffTester('Testing 123')
),
TestRunner(
target='one',
test_name='Check Equality',
arguments=ArgumentArray(),
tester=DiffTester('Testing 1234')
)
])
]
}
}
if __name__ == "__main__":
Autograder(CONFIG, autograder=False).run()