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            "-Wno-tautological-constant-compare",
31            "-Wno-tautological-unsigned-enum-zero-compare",
32            "-Wno-unknown-warning-option",
33            "-Wno-section",
34            "-static-libgcc",
35            "-Wno-final-dtor-non-final-class",
36            "-Werror=poison-system-directories",
37            "-fexperimental-new-pass-manager",
38            "-Wno-compound-token-split-by-macro",
39            "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics",
40            "main.cc",
41            "-Wno-implicit-int-float-conversion",
42            "-Wno-compound-token-split-by-space",
43            "-Wno-string-concatenation",
44            "-mno-movbe",
45            "-B../../bin",
46            "-target",
47            "x86_64-cros-linux-gnu"
48          ],
49          "env_updates": [
50            "CCACHE_DIR=/var/cache/distfiles/ccache",
51            "CCACHE_UMASK=002",
52            "CCACHE_CPP2=yes",
53            "PYTHONPATH=/somepath/test_binary"
54          ]
55        }
56      }
57    ]
58  },
59  {
60    "wd": "/tmp/stable",
61    "env": [
62      "BISECT_STAGE=someBisectStage",
63      "BISECT_DIR=someBisectDir",
64      "HOME=/user/home"
65    ],
66    "wrapper": {
67      "cmd": {
68        "path": "./x86_64-cros-linux-gnu-clang",
69        "args": [
70          "main.cc"
71        ]
72      }
73    },
74    "cmds": [
75      {
76        "cmd": {
77          "path": "/usr/bin/env",
78          "args": [
79            "python3",
80            "-c",
81            "\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",
82            "someBisectStage",
83            "someBisectDir",
84            "/usr/bin/ccache",
85            "../../usr/bin/clang",
86            "--sysroot=/usr/x86_64-cros-linux-gnu",
87            "-Qunused-arguments",
88            "-Wno-tautological-constant-compare",
89            "-Wno-tautological-unsigned-enum-zero-compare",
90            "-Wno-unknown-warning-option",
91            "-Wno-section",
92            "-static-libgcc",
93            "-Wno-final-dtor-non-final-class",
94            "-Werror=poison-system-directories",
95            "-fexperimental-new-pass-manager",
96            "-Wno-compound-token-split-by-macro",
97            "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics",
98            "main.cc",
99            "-Wno-implicit-int-float-conversion",
100            "-Wno-compound-token-split-by-space",
101            "-Wno-string-concatenation",
102            "-mno-movbe",
103            "-B../../bin",
104            "-target",
105            "x86_64-cros-linux-gnu"
106          ],
107          "env_updates": [
108            "CCACHE_DIR=/var/cache/distfiles/ccache",
109            "CCACHE_UMASK=002",
110            "CCACHE_CPP2=yes",
111            "PYTHONPATH=/somepath/test_binary"
112          ]
113        }
114      }
115    ]
116  },
117  {
118    "wd": "/tmp/stable",
119    "env": [
120      "BISECT_STAGE=someBisectStage",
121      "BISECT_DIR=someBisectDir",
122      "HOME=/user/home"
123    ],
124    "wrapper": {
125      "cmd": {
126        "path": "./x86_64-cros-linux-gnu-clang",
127        "args": [
128          "main.cc"
129        ]
130      },
131      "stdout": "somemessage",
132      "stderr": "someerror",
133      "exitcode": 1
134    },
135    "cmds": [
136      {
137        "cmd": {
138          "path": "/usr/bin/env",
139          "args": [
140            "python3",
141            "-c",
142            "\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",
143            "someBisectStage",
144            "someBisectDir",
145            "/usr/bin/ccache",
146            "../../usr/bin/clang",
147            "--sysroot=/usr/x86_64-cros-linux-gnu",
148            "-Qunused-arguments",
149            "-Wno-tautological-constant-compare",
150            "-Wno-tautological-unsigned-enum-zero-compare",
151            "-Wno-unknown-warning-option",
152            "-Wno-section",
153            "-static-libgcc",
154            "-Wno-final-dtor-non-final-class",
155            "-Werror=poison-system-directories",
156            "-fexperimental-new-pass-manager",
157            "-Wno-compound-token-split-by-macro",
158            "-fcrash-diagnostics-dir=/tmp/stable/clang_crash_diagnostics",
159            "main.cc",
160            "-Wno-implicit-int-float-conversion",
161            "-Wno-compound-token-split-by-space",
162            "-Wno-string-concatenation",
163            "-mno-movbe",
164            "-B../../bin",
165            "-target",
166            "x86_64-cros-linux-gnu"
167          ],
168          "env_updates": [
169            "CCACHE_DIR=/var/cache/distfiles/ccache",
170            "CCACHE_UMASK=002",
171            "CCACHE_CPP2=yes",
172            "PYTHONPATH=/somepath/test_binary"
173          ]
174        },
175        "stdout": "somemessage",
176        "stderr": "someerror",
177        "exitcode": 1
178      }
179    ]
180  }
181]
182