• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[
2  {
3    "wd": "/tmp/stable",
4    "env": [
5      "BISECT_STAGE=someBisectStage",
6      "HOME=/user/home"
7    ],
8    "wrapper": {
9      "cmd": {
10        "path": "./x86_64-cros-linux-gnu-clang",
11        "args": [
12          "main.cc"
13        ]
14      }
15    },
16    "cmds": [
17      {
18        "cmd": {
19          "path": "/usr/bin/env",
20          "args": [
21            "python3",
22            "-c",
23            "\nimport bisect_driver\nimport shlex\nimport sys\n\ndef ExpandArgs(args, target):\n\tfor arg in args:\n\t\tif arg[0] == '@':\n\t\t\twith open(arg[1:], 'r', encoding='utf-8') as f:\n\t\t\t\tExpandArgs(shlex.split(f.read()), target)\n\t\telse:\n\t\t\ttarget.append(arg)\n\treturn target\n\nstage = sys.argv[1]\ndir = sys.argv[2]\nexecargs = ExpandArgs(sys.argv[3:], [])\n\nsys.exit(bisect_driver.bisect_driver(stage, dir, execargs))\n",
24            "someBisectStage",
25            "/tmp/sysroot_bisect",
26            "/usr/bin/ccache",
27            "../../usr/bin/clang",
28            "--sysroot=/usr/x86_64-cros-linux-gnu",
29            "-Qunused-arguments",
30            "-fno-addrsig",
31            "-fcommon",
32            "-Wno-tautological-constant-compare",
33            "-Wno-tautological-unsigned-enum-zero-compare",
34            "-Wno-unknown-warning-option",
35            "-Wno-section",
36            "-static-libgcc",
37            "-fuse-ld=lld",
38            "-Wno-final-dtor-non-final-class",
39            "-Werror=poison-system-directories",
40            "-fexperimental-new-pass-manager",
41            "-Wno-compound-token-split-by-macro",
42            "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics",
43            "-fstack-protector-strong",
44            "-fPIE",
45            "-pie",
46            "-D_FORTIFY_SOURCE=2",
47            "-fno-omit-frame-pointer",
48            "main.cc",
49            "-Wno-implicit-int-float-conversion",
50            "-Wno-compound-token-split-by-space",
51            "-Wno-string-concatenation",
52            "-mno-movbe",
53            "-B../../bin",
54            "-target",
55            "x86_64-cros-linux-gnu"
56          ],
57          "env_updates": [
58            "CCACHE_DIR=/var/cache/distfiles/ccache",
59            "CCACHE_UMASK=002",
60            "CCACHE_CPP2=yes",
61            "PYTHONPATH=/somepath/test_binary"
62          ]
63        }
64      }
65    ]
66  },
67  {
68    "wd": "/tmp/stable",
69    "env": [
70      "BISECT_STAGE=someBisectStage",
71      "BISECT_DIR=someBisectDir",
72      "HOME=/user/home"
73    ],
74    "wrapper": {
75      "cmd": {
76        "path": "./x86_64-cros-linux-gnu-clang",
77        "args": [
78          "main.cc"
79        ]
80      }
81    },
82    "cmds": [
83      {
84        "cmd": {
85          "path": "/usr/bin/env",
86          "args": [
87            "python3",
88            "-c",
89            "\nimport bisect_driver\nimport shlex\nimport sys\n\ndef ExpandArgs(args, target):\n\tfor arg in args:\n\t\tif arg[0] == '@':\n\t\t\twith open(arg[1:], 'r', encoding='utf-8') as f:\n\t\t\t\tExpandArgs(shlex.split(f.read()), target)\n\t\telse:\n\t\t\ttarget.append(arg)\n\treturn target\n\nstage = sys.argv[1]\ndir = sys.argv[2]\nexecargs = ExpandArgs(sys.argv[3:], [])\n\nsys.exit(bisect_driver.bisect_driver(stage, dir, execargs))\n",
90            "someBisectStage",
91            "someBisectDir",
92            "/usr/bin/ccache",
93            "../../usr/bin/clang",
94            "--sysroot=/usr/x86_64-cros-linux-gnu",
95            "-Qunused-arguments",
96            "-fno-addrsig",
97            "-fcommon",
98            "-Wno-tautological-constant-compare",
99            "-Wno-tautological-unsigned-enum-zero-compare",
100            "-Wno-unknown-warning-option",
101            "-Wno-section",
102            "-static-libgcc",
103            "-fuse-ld=lld",
104            "-Wno-final-dtor-non-final-class",
105            "-Werror=poison-system-directories",
106            "-fexperimental-new-pass-manager",
107            "-Wno-compound-token-split-by-macro",
108            "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics",
109            "-fstack-protector-strong",
110            "-fPIE",
111            "-pie",
112            "-D_FORTIFY_SOURCE=2",
113            "-fno-omit-frame-pointer",
114            "main.cc",
115            "-Wno-implicit-int-float-conversion",
116            "-Wno-compound-token-split-by-space",
117            "-Wno-string-concatenation",
118            "-mno-movbe",
119            "-B../../bin",
120            "-target",
121            "x86_64-cros-linux-gnu"
122          ],
123          "env_updates": [
124            "CCACHE_DIR=/var/cache/distfiles/ccache",
125            "CCACHE_UMASK=002",
126            "CCACHE_CPP2=yes",
127            "PYTHONPATH=/somepath/test_binary"
128          ]
129        }
130      }
131    ]
132  },
133  {
134    "wd": "/tmp/stable",
135    "env": [
136      "BISECT_STAGE=someBisectStage",
137      "BISECT_DIR=someBisectDir",
138      "HOME=/user/home"
139    ],
140    "wrapper": {
141      "cmd": {
142        "path": "./x86_64-cros-linux-gnu-clang",
143        "args": [
144          "main.cc"
145        ]
146      },
147      "stdout": "somemessage",
148      "stderr": "someerror",
149      "exitcode": 1
150    },
151    "cmds": [
152      {
153        "cmd": {
154          "path": "/usr/bin/env",
155          "args": [
156            "python3",
157            "-c",
158            "\nimport bisect_driver\nimport shlex\nimport sys\n\ndef ExpandArgs(args, target):\n\tfor arg in args:\n\t\tif arg[0] == '@':\n\t\t\twith open(arg[1:], 'r', encoding='utf-8') as f:\n\t\t\t\tExpandArgs(shlex.split(f.read()), target)\n\t\telse:\n\t\t\ttarget.append(arg)\n\treturn target\n\nstage = sys.argv[1]\ndir = sys.argv[2]\nexecargs = ExpandArgs(sys.argv[3:], [])\n\nsys.exit(bisect_driver.bisect_driver(stage, dir, execargs))\n",
159            "someBisectStage",
160            "someBisectDir",
161            "/usr/bin/ccache",
162            "../../usr/bin/clang",
163            "--sysroot=/usr/x86_64-cros-linux-gnu",
164            "-Qunused-arguments",
165            "-fno-addrsig",
166            "-fcommon",
167            "-Wno-tautological-constant-compare",
168            "-Wno-tautological-unsigned-enum-zero-compare",
169            "-Wno-unknown-warning-option",
170            "-Wno-section",
171            "-static-libgcc",
172            "-fuse-ld=lld",
173            "-Wno-final-dtor-non-final-class",
174            "-Werror=poison-system-directories",
175            "-fexperimental-new-pass-manager",
176            "-Wno-compound-token-split-by-macro",
177            "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics",
178            "-fstack-protector-strong",
179            "-fPIE",
180            "-pie",
181            "-D_FORTIFY_SOURCE=2",
182            "-fno-omit-frame-pointer",
183            "main.cc",
184            "-Wno-implicit-int-float-conversion",
185            "-Wno-compound-token-split-by-space",
186            "-Wno-string-concatenation",
187            "-mno-movbe",
188            "-B../../bin",
189            "-target",
190            "x86_64-cros-linux-gnu"
191          ],
192          "env_updates": [
193            "CCACHE_DIR=/var/cache/distfiles/ccache",
194            "CCACHE_UMASK=002",
195            "CCACHE_CPP2=yes",
196            "PYTHONPATH=/somepath/test_binary"
197          ]
198        },
199        "stdout": "somemessage",
200        "stderr": "someerror",
201        "exitcode": 1
202      }
203    ]
204  }
205]
206