Lines Matching refs:stdin

12 pub fn run_wasmtime_for_output(args: &[&str], stdin: Option<&Path>) -> Result<Output> {  in run_wasmtime_for_output()
15 if let Some(file) = stdin { in run_wasmtime_for_output()
16 cmd.stdin(File::open(file)?); in run_wasmtime_for_output()
532 .stdin(File::open(&cwasm)?) in run_cwasm_from_stdin()
540 .stdin(Stdio::piped()) in run_cwasm_from_stdin()
544 let mut stdin = child.stdin.take().unwrap(); in run_cwasm_from_stdin() localVariable
546 let _ = stdin.write_all(&input); in run_cwasm_from_stdin()
705 .stdin(File::open("tests/all/cli_tests/simple.wat")?) in run_just_stdin_argument()
988 let output = cmd()?.stdin(File::open(test)?).output()?; in preview2_stdin()
994 .stdin(Stdio::piped()) in preview2_stdin()
998 let mut stdin = child.stdin.take().unwrap(); in preview2_stdin() localVariable
1000 stdin.write_all(b"hello").unwrap(); in preview2_stdin()
1012 .stdin(Stdio::piped()) in preview2_stdin()
1016 let mut stdin = child.stdin.take().unwrap(); in preview2_stdin() localVariable
1021 written += match stdin.write(&bytes) { in preview2_stdin()
1155 .stdin(Stdio::piped()) in p2_cli_stdin_empty()
1158 .stdin in p2_cli_stdin_empty()
1176 .stdin(Stdio::piped()) in p2_cli_stdin()
1179 .stdin in p2_cli_stdin()
1197 .stdin(Stdio::piped()) in p2_cli_splice_stdin()
1201 .stdin in p2_cli_splice_stdin()
1407 .stdin(Stdio::piped()) in p2_cli_stdio_write_flushes()
1417 drop(child.stdin.take().unwrap()); in p2_cli_stdio_write_flushes()
1536 cmd.stdin(Stdio::null()); in spawn()
2868 .stdin(std::process::Stdio::piped()) in p3_cli_read_stdin()
2873 child.stdin.take().unwrap().write_all(b"hello!").unwrap(); in p3_cli_read_stdin()
3229 cmd.stdin(Stdio::piped()) in wizen()
3233 let mut stdin = child.stdin.take().unwrap(); in wizen() localVariable
3234 stdin.write_all(wat.as_bytes())?; in wizen()
3235 drop(stdin); in wizen()