generated from fduTristin/ICS-24Fall-FDU
-
Notifications
You must be signed in to change notification settings - Fork 0
159 lines (159 loc) · 5.25 KB
/
classroom.yml
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
name: Autograding Tests
'on':
- push
- repository_dispatch
permissions:
checks: write
actions: read
contents: read
jobs:
run-autograding-tests:
runs-on: ubuntu-latest
if: github.actor != 'github-classroom[bot]'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: test1-2
id: test1-2
uses: classroom-resources/autograding-io-grader@v1
with:
test-name: test1-2
setup-command: cd Task1_2 && chmod +x ./bash-calc && chmod +x ./malware && cd ..
command: cd Task1_2 && python3 payload.py > payload && ./bash-calc < payload; echo ""
input: ''
expected-output: You have successfully detonated the bomb! Congratulations!
comparison-method: contains
timeout: 10
max-score: 10
- name: task3-1
id: task3-1
uses: classroom-resources/autograding-io-grader@v1
with:
test-name: task3-1
setup-command: cd Task3 && make clean && make all && chmod +x ./program && cd ..
command: cd Task3 && ./program
input: ''
expected-output: |-
test1 PASSED
comparison-method: contains
timeout: 10
max-score: 10
- name: task3-2
id: task3-2
uses: classroom-resources/autograding-io-grader@v1
with:
test-name: task3-2
setup-command: cd Task3 && make clean && make all && chmod +x ./program && cd ..
command: cd Task3 && ./program
input: ''
expected-output: |-
test2 PASSED
comparison-method: contains
timeout: 10
max-score: 10
- name: task3-3
id: task3-3
uses: classroom-resources/autograding-io-grader@v1
with:
test-name: task3-3
setup-command: cd Task3 && make clean && make all && chmod +x ./program && cd ..
command: cd Task3 && ./program
input: ''
expected-output: |-
test3 PASSED
comparison-method: contains
timeout: 10
max-score: 10
- name: task3-4
id: task3-4
uses: classroom-resources/autograding-io-grader@v1
with:
test-name: task3-4
setup-command: cd Task3 && make clean && make all && chmod +x ./program && cd ..
command: cd Task3 && ./program
input: ''
expected-output: |-
test4 PASSED
comparison-method: contains
timeout: 10
max-score: 10
- name: task3-5
id: task3-5
uses: classroom-resources/autograding-io-grader@v1
with:
test-name: task3-5
setup-command: cd Task3 && make clean && make all && chmod +x ./program && cd ..
command: cd Task3 && ./program
input: ''
expected-output: |-
test5 PASSED
comparison-method: contains
timeout: 10
max-score: 10
- name: task3-6
id: task3-6
uses: classroom-resources/autograding-io-grader@v1
with:
test-name: task3-6
setup-command: cd Task3 && make clean && make all && chmod +x ./program && cd ..
command: cd Task3 && ./program
input: ''
expected-output: |-
test6 PASSED
comparison-method: contains
timeout: 10
max-score: 10
- name: task3-7
id: task3-7
uses: classroom-resources/autograding-io-grader@v1
with:
test-name: task3-7
setup-command: cd Task3 && make clean && make all && chmod +x ./program && cd ..
command: cd Task3 && ./program
input: ''
expected-output: |-
test7 PASSED
comparison-method: contains
timeout: 10
max-score: 10
- name: task3-8
id: task3-8
uses: classroom-resources/autograding-io-grader@v1
with:
test-name: task3-8
setup-command: cd Task3 && make clean && make all && chmod +x ./program && cd ..
command: cd Task3 && ./program
input: ''
expected-output: |-
test8 PASSED
comparison-method: contains
timeout: 10
max-score: 10
- name: task3-progress_bar
id: task3-progress_bar
uses: classroom-resources/autograding-io-grader@v1
with:
test-name: task3-progress_bar
setup-command: cd Task3 && make clean && make all && chmod +x ./program && cd ..
command: cd Task3 && ./program
input: ''
expected-output: |-
progress bar SHOWN
comparison-method: contains
timeout: 10
max-score: 10
- name: Autograding Reporter
uses: classroom-resources/autograding-grading-reporter@v1
env:
TEST1-2_RESULTS: "${{steps.test1-2.outputs.result}}"
TASK3-1_RESULTS: "${{steps.task3-1.outputs.result}}"
TASK3-2_RESULTS: "${{steps.task3-2.outputs.result}}"
TASK3-3_RESULTS: "${{steps.task3-3.outputs.result}}"
TASK3-4_RESULTS: "${{steps.task3-4.outputs.result}}"
TASK3-5_RESULTS: "${{steps.task3-5.outputs.result}}"
TASK3-6_RESULTS: "${{steps.task3-6.outputs.result}}"
TASK3-7_RESULTS: "${{steps.task3-7.outputs.result}}"
TASK3-8_RESULTS: "${{steps.task3-8.outputs.result}}"
TASK3-PROGRESS_BAR_RESULTS: "${{steps.task3-progress_bar.outputs.result}}"
with:
runners: test1-2,task3-1,task3-2,task3-3,task3-4,task3-5,task3-6,task3-7,task3-8,task3-progress_bar