-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathgrader_config.toml
More file actions
74 lines (58 loc) · 1.86 KB
/
grader_config.toml
File metadata and controls
74 lines (58 loc) · 1.86 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[debug]
default_type = "cpp"
[setup]
# 在运行测试之前需要执行的准备步骤
[[setup.steps]]
name = "Compile FLE Tools"
type = "command"
command = "make"
args = ["all", "-j"]
required = true # 如果这一步失败,则终止所有测试
message = "Preparing FLE Tools..."
success_message = "FLE Tools compiled successfully"
timeout = 60.0
[[setup.steps]]
name = "Compile minilibc"
type = "command"
command = "./cc"
args = ["tests/common/minilibc.c", "-o", "tests/common/minilibc.o"]
required = true # 如果这一步失败,则终止所有测试
message = "Preparing minilibc..."
success_message = "minilibc compiled successfully"
# 可以添加更多setup步骤
# [[setup.steps]]
# name = "其他准备步骤"
# type = "command" # 可以是普通命令
# command = "./some_script.sh"
# args = ["arg1", "arg2"]
# required = false # 这一步失败不会终止测试
[paths]
# 定义项目中重要路径的配置
tests_dir = "tests"
cases_dir = "tests/cases"
common_dir = "tests/common"
[grader]
# 评分器的全局配置
default_timeout = 5.0 # 默认超时时间(秒)
[groups]
# 定义测试点分组
# 每个分组包含一个或多个测试点
# 可以通过 --group 参数指定运行某个分组的所有测试点
# 任务一:符号表查看器
nm = ["1"]
# 任务二:基础链接器(绝对地址重定位)
basic_linking = ["2", "3"]
# 任务三:相对重定位
relocations = ["4", "5", "6"]
# 任务四:处理符号冲突
symbol_resolution = ["7", "8", "9", "10"]
# 任务五:多段内存布局
multi_segment = ["11", "12"]
# 任务六:段权限
section_perm = ["13", "14"]
# 任务七:静态链接库
static_linking = ["15", "16"]
# Bonus 1:生成共享库
bonus1 = ["17", "18", "19"]
# Bonus 2:链接使用共享库的程序
bonus2 = ["20", "21", "22"]