|
|
|
@ -231,42 +231,45 @@ Example:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"name":"source",
|
|
|
|
|
"portsIn":[],
|
|
|
|
|
"portsOut":[{ "source_file":[{"type":"file", "value":"source_file"}] }],
|
|
|
|
|
"type":"data"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name":"test",
|
|
|
|
|
"portsIn":[],
|
|
|
|
|
"portsOut":[{
|
|
|
|
|
"test_file":[{"type":"file", "value":"test_file"}],
|
|
|
|
|
"expected_output":[{"type":"file", "value":"expected_output"}]
|
|
|
|
|
}],
|
|
|
|
|
"type":"data"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name":"compilation",
|
|
|
|
|
"portsIn":[{ "input_file":[{"type":"file", "value":"source_file"}] }],
|
|
|
|
|
"portsOut":[{ "output_file":[{"type":"file", "value":"binary_file"}] }],
|
|
|
|
|
"type":"compilation"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name":"run",
|
|
|
|
|
"portsIn":[{ "binary_file":[{"type":"file", "value":"binary_file"}] }],
|
|
|
|
|
"portsOut":[{ "output_file":[{"type":"file", "value":"actual_output"}] }],
|
|
|
|
|
"type":"execution"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name":"judge",
|
|
|
|
|
"portsIn":[{
|
|
|
|
|
"actual_output":[{"type":"file", "value":"actual_output"}],
|
|
|
|
|
"expected_output":[{"type":"file", "value":"expected_output"}]
|
|
|
|
|
}],
|
|
|
|
|
"portsOut":[{ "score":[{"type":"file", "value":"score"}] }],
|
|
|
|
|
"type":"evaluation"
|
|
|
|
|
}
|
|
|
|
|
{ "variables":[] },
|
|
|
|
|
{ "boxes": [
|
|
|
|
|
{
|
|
|
|
|
"name":"source",
|
|
|
|
|
"portsIn":[],
|
|
|
|
|
"portsOut":[{ "source_file":[{"type":"file", "value":"source_file"}] }],
|
|
|
|
|
"type":"data"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name":"test",
|
|
|
|
|
"portsIn":[],
|
|
|
|
|
"portsOut":[{
|
|
|
|
|
"test_file":[{"type":"file", "value":"test_file"}],
|
|
|
|
|
"expected_output":[{"type":"file", "value":"expected_output"}]
|
|
|
|
|
}],
|
|
|
|
|
"type":"data"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name":"compilation",
|
|
|
|
|
"portsIn":[{ "input_file":[{"type":"file", "value":"source_file"}] }],
|
|
|
|
|
"portsOut":[{ "output_file":[{"type":"file", "value":"binary_file"}] }],
|
|
|
|
|
"type":"compilation"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name":"run",
|
|
|
|
|
"portsIn":[{ "binary_file":[{"type":"file", "value":"binary_file"}] }],
|
|
|
|
|
"portsOut":[{ "output_file":[{"type":"file", "value":"actual_output"}] }],
|
|
|
|
|
"type":"execution"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name":"judge",
|
|
|
|
|
"portsIn":[{
|
|
|
|
|
"actual_output":[{"type":"file", "value":"actual_output"}],
|
|
|
|
|
"expected_output":[{"type":"file", "value":"expected_output"}]
|
|
|
|
|
}],
|
|
|
|
|
"portsOut":[{ "score":[{"type":"file", "value":"score"}] }],
|
|
|
|
|
"type":"evaluation"
|
|
|
|
|
}
|
|
|
|
|
] }
|
|
|
|
|
]
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|