-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.cfg
88 lines (63 loc) · 2.69 KB
/
template.cfg
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
-- name of this file must be the same as the name you would like the students
-- to use at submission command;
-- if you like the submission command to be:
-- $ submit workshop2
-- then for this submission you should copy this config file to workshop2.cfg
-- and modify its values base on your needs.
-- format for configuration values:
-- value_name|value1, value2, value3,...
--Subject Code
subject_code|OOP244
--Professor Linux userid
userid|fardad.soleimanloo
--Professor email
--you can add more emails to send a copy of submission to TAs
prof_email|[email protected], [email protected]
--Assignment name
assessment_name|Workshop 2
--files that must exist for a successful submission (or compile)
assess_files | whatever.cpp,whatever.h, w2.cpp, reflect.txt
--File names to be copied to student account from professor's
--submitter files directory for testing (tester programs and etc)
--comment out the line if you don't need copying
copy_files|w2_tester.cpp
--compile code (yes, no)
compile|yes
--compiler command
--if you want the program to be executed then this compile command should
--an exacutable with the same name as exe_name value (see next value)
compile_command|g++ -Wall -std=c++0x -o w2
--executable name
exe_name|w2
--files to compile
--this will be ignored if compile value is no
compile_files|whatever.cpp,w2_tester.cpp
--error capture file name
--this file will hold the warnings and error resulted by compiling the code
err_file|errw2.txt
--Allow warnings in compilation (yes, no)
allow_warning|no
--execute (yes, no)
execute|yes
--type of output (script, redirect):
--this will be ignored if check_output is no or execute is no)
-- "script", for interactive programs, typescript will be invoked
-- "redirect" or any other value, dump ouput to file for non-interactive programs
output_type|script
--output file name
--the output of the execution or the typescript will be dumped in this
output_file|output.txt
--compare the output to professor's; (yes, no)
--this will be ignored if execute value is no
--anything but "yes" will be considered as no value
--in this case the file for the outpu comparison should be copied to submitter_files dir.
check_output|yes
--comparison range, line numbers
-- values: from, to ; integer numbers
--to specify the range of comparison (in this example from line 16 to line 31, inclusive)
comp_range|16, 31
--filename for the original output in submitter_files dir.
--this will be ignored if check_output is no
correct_output|w2org.txt
--files to be emailed as submission. (if any of them is missing assingment can not be sumbitted)
submit_files |whatever.cpp,whatever.h,reflect.txt