Repository navigation
Expand file tree
/
Copy pathnative.json
More file actions
65 lines (65 loc) · 1.47 KB
/
Copy pathnative.json
File metadata and controls
65 lines (65 loc) · 1.47 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
{
"schema_version": 1,
"target": {
"kind": "native"
},
"variants": {
"baseline": {
"cwd": "baseline",
"build": [
{
"argv": ["cc", "-O2", "-Wall", "-Werror", "-o", "port-check", "port.c"],
"env": {
"LC_ALL": "C"
},
"timeout_seconds": 120
}
],
"inputs": ["port.c"],
"artifacts": ["port-check"]
},
"candidate": {
"cwd": "candidate",
"build": [
{
"argv": ["cc", "-O2", "-Wall", "-Werror", "-o", "port-check", "port.c"],
"env": {
"LC_ALL": "C"
},
"timeout_seconds": 120
}
],
"inputs": ["port.c"],
"artifacts": ["port-check"]
}
},
"test_inputs": [],
"tests": [
{
"id": "valid-port",
"argv": ["port-check", "valid-port"],
"timeout_seconds": 10,
"baseline_expect": {
"exit_code": 0,
"stdout_contains": "PASS valid-port"
},
"candidate_expect": {
"exit_code": 0,
"stdout_contains": "PASS valid-port"
}
},
{
"id": "reject-out-of-range",
"argv": ["port-check", "reject-out-of-range"],
"timeout_seconds": 10,
"baseline_expect": {
"exit_code": 1,
"stdout_contains": "FAIL reject-out-of-range: \"70000\" was accepted as 4464"
},
"candidate_expect": {
"exit_code": 0,
"stdout_contains": "PASS reject-out-of-range"
}
}
]
}