Lines Matching refs:stderr

61     print({repr(libclang_stderr)}, file=sys.stderr)
71 def generate_bindgen_libclang(cls, stderr):
72 return cls.generate_bindgen(cls.bindgen_default_bindgen_version_stdout, stderr)
118 # and it should not output anything to `stderr`.
120 self.assertEqual(result.stderr, b"")
124 # should output at least something to `stderr` (the output should
127 self.assertNotEqual(result.stderr, b"")
130 # and it should output at least the instructions to `stderr`.
132 self.assertIn(b"Please see Documentation/rust/quick-start.rst for details", result.stderr)
135 # and it should output at least the instructions to `stderr`.
137 self.assertIn(b"Please see Documentation/rust/quick-start.rst for details", result.stderr)
141 result.stderr = result.stderr.decode()
147 self.assertIn("Environment variable 'RUSTC' is not set.", result.stderr)
148 self.assertIn("This script is intended to be called from Kbuild.", result.stderr)
152 self.assertIn("Environment variable 'BINDGEN' is not set.", result.stderr)
153 self.assertIn("This script is intended to be called from Kbuild.", result.stderr)
157 self.assertIn("Environment variable 'CC' is not set.", result.stderr)
158 self.assertIn("This script is intended to be called from Kbuild.", result.stderr)
162 self.assertIn(f"Rust compiler '{self.missing}' could not be found.", result.stderr)
166 self.assertIn(f"Rust bindings generator '{self.missing}' could not be found.", result.stderr)
170 self.assertIn(f"Running '{self.nonexecutable}' to check the Rust compiler version failed with", result.stderr)
174 self.assertIn(f"Running '{self.unexpected_binary}' to check the Rust compiler version did not return", result.stderr)
179 self.assertIn(f"Running '{rustc}' to check the Rust compiler version did not return", result.stderr)
184 self.assertIn(f"Running '{rustc}' to check the Rust compiler version did not return", result.stderr)
189 self.assertIn(f"Running '{rustc}' to check the Rust compiler version did not return", result.stderr)
194 self.assertIn(f"Rust compiler '{rustc}' is too old.", result.stderr)
199 self.assertIn(f"Rust compiler '{rustc}' is too new. This may or may not work.", result.stderr)
203 self.assertIn(f"Running '{self.nonexecutable}' to check the Rust bindings generator version failed with", result.stderr)
207 self.assertIn(f"Running '{self.unexpected_binary}' to check the bindings generator version did not return", result.stderr)
212 self.assertIn(f"Running '{bindgen}' to check the bindings generator version did not return", result.stderr)
217 self.assertIn(f"Running '{bindgen}' to check the bindings generator version did not return", result.stderr)
222 self.assertIn(f"Running '{bindgen}' to check the bindings generator version did not return", result.stderr)
227 self.assertIn(f"Rust bindings generator '{bindgen}' is too old.", result.stderr)
232 self.assertIn(f"Rust bindings generator '{bindgen}' is too new. This may or may not work.", result.stderr)
242 self.assertIn("Running 'bindgen' to check the libclang version (used by the Rust", result.stderr)
243 self.assertIn("bindings generator) failed with code ", result.stderr)
248 self.assertIn(f"Running '{bindgen}' to check the libclang version (used by the Rust", result.stderr)
249 self.assertIn("bindings generator) did not return an expected output. See output", result.stderr)
254 self.assertIn(f"libclang (used by the Rust bindings generator '{bindgen}') is too old.", result.stderr)
259 self.assertIn("version does not match Clang's. This may be a problem.", result.stderr)
264 self.assertIn("version does not match Clang's. This may be a problem.", result.stderr)
268 self.assertIn("Source code for the 'core' standard library could not be found", result.stderr)
272 self.assertIn("Source code for the 'core' standard library could not be found", result.stderr)
276 self.assertIn("unknown C compiler", result.stderr)
307 for stderr in (
320 with self.subTest(stderr=stderr):
321 bindgen = self.generate_bindgen_libclang(stderr)