• 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            "python",
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:], 'rb') 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            "-grecord-gcc-switches",
31            "-fno-addrsig",
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-reorder-init-list",
39            "-Wno-final-dtor-non-final-class",
40            "-Wno-return-stack-address",
41            "-Werror=poison-system-directories",
42            "-fstack-protector-strong",
43            "-fPIE",
44            "-pie",
45            "-D_FORTIFY_SOURCE=2",
46            "-fno-omit-frame-pointer",
47            "main.cc",
48            "-Wno-implicit-int-float-conversion",
49            "-B../../bin",
50            "-target",
51            "x86_64-cros-linux-gnu"
52          ],
53          "env_updates": [
54            "CCACHE_BASEDIR=/usr/x86_64-cros-linux-gnu",
55            "CCACHE_DIR=/var/cache/distfiles/ccache",
56            "CCACHE_UMASK=002",
57            "CCACHE_CPP2=yes",
58            "PYTHONPATH=/somepath/test_binary"
59          ]
60        }
61      }
62    ]
63  },
64  {
65    "wd": "/tmp/stable",
66    "env": [
67      "BISECT_STAGE=someBisectStage",
68      "BISECT_DIR=someBisectDir",
69      "HOME=/user/home"
70    ],
71    "wrapper": {
72      "cmd": {
73        "path": "./x86_64-cros-linux-gnu-clang",
74        "args": [
75          "main.cc"
76        ]
77      }
78    },
79    "cmds": [
80      {
81        "cmd": {
82          "path": "/usr/bin/env",
83          "args": [
84            "python",
85            "-c",
86            "\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:], 'rb') 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",
87            "someBisectStage",
88            "someBisectDir",
89            "/usr/bin/ccache",
90            "../../usr/bin/clang",
91            "--sysroot=/usr/x86_64-cros-linux-gnu",
92            "-Qunused-arguments",
93            "-grecord-gcc-switches",
94            "-fno-addrsig",
95            "-Wno-tautological-constant-compare",
96            "-Wno-tautological-unsigned-enum-zero-compare",
97            "-Wno-unknown-warning-option",
98            "-Wno-section",
99            "-static-libgcc",
100            "-fuse-ld=lld",
101            "-Wno-reorder-init-list",
102            "-Wno-final-dtor-non-final-class",
103            "-Wno-return-stack-address",
104            "-Werror=poison-system-directories",
105            "-fstack-protector-strong",
106            "-fPIE",
107            "-pie",
108            "-D_FORTIFY_SOURCE=2",
109            "-fno-omit-frame-pointer",
110            "main.cc",
111            "-Wno-implicit-int-float-conversion",
112            "-B../../bin",
113            "-target",
114            "x86_64-cros-linux-gnu"
115          ],
116          "env_updates": [
117            "CCACHE_BASEDIR=/usr/x86_64-cros-linux-gnu",
118            "CCACHE_DIR=/var/cache/distfiles/ccache",
119            "CCACHE_UMASK=002",
120            "CCACHE_CPP2=yes",
121            "PYTHONPATH=/somepath/test_binary"
122          ]
123        }
124      }
125    ]
126  },
127  {
128    "wd": "/tmp/stable",
129    "env": [
130      "BISECT_STAGE=someBisectStage",
131      "BISECT_DIR=someBisectDir",
132      "HOME=/user/home"
133    ],
134    "wrapper": {
135      "cmd": {
136        "path": "./x86_64-cros-linux-gnu-clang",
137        "args": [
138          "main.cc"
139        ]
140      },
141      "stdout": "somemessage",
142      "stderr": "someerror",
143      "exitcode": 1
144    },
145    "cmds": [
146      {
147        "cmd": {
148          "path": "/usr/bin/env",
149          "args": [
150            "python",
151            "-c",
152            "\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:], 'rb') 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",
153            "someBisectStage",
154            "someBisectDir",
155            "/usr/bin/ccache",
156            "../../usr/bin/clang",
157            "--sysroot=/usr/x86_64-cros-linux-gnu",
158            "-Qunused-arguments",
159            "-grecord-gcc-switches",
160            "-fno-addrsig",
161            "-Wno-tautological-constant-compare",
162            "-Wno-tautological-unsigned-enum-zero-compare",
163            "-Wno-unknown-warning-option",
164            "-Wno-section",
165            "-static-libgcc",
166            "-fuse-ld=lld",
167            "-Wno-reorder-init-list",
168            "-Wno-final-dtor-non-final-class",
169            "-Wno-return-stack-address",
170            "-Werror=poison-system-directories",
171            "-fstack-protector-strong",
172            "-fPIE",
173            "-pie",
174            "-D_FORTIFY_SOURCE=2",
175            "-fno-omit-frame-pointer",
176            "main.cc",
177            "-Wno-implicit-int-float-conversion",
178            "-B../../bin",
179            "-target",
180            "x86_64-cros-linux-gnu"
181          ],
182          "env_updates": [
183            "CCACHE_BASEDIR=/usr/x86_64-cros-linux-gnu",
184            "CCACHE_DIR=/var/cache/distfiles/ccache",
185            "CCACHE_UMASK=002",
186            "CCACHE_CPP2=yes",
187            "PYTHONPATH=/somepath/test_binary"
188          ]
189        },
190        "stdout": "somemessage",
191        "stderr": "someerror",
192        "exitcode": 1
193      }
194    ]
195  }
196]
197