Lines Matching +full:stdout +full:- +full:path
1 # Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
31 OpenSSL::Test - a private extension of Test::More
44 ok(run(test(["sometest", "arg1"], stdout => "foo.txt")),
61 recipe C<$SRCTOP/test/recipes/99-foo.t>, there could be a directory
62 C<$SRCTOP/test/recipes/99-foo_data/>.
69 use File::Path 2.00 qw/rmtree mkpath/;
92 # is defined with a non-empty value.
128 variable if defined, otherwise C<$BLDTOP/test-runs> or C<$TOP/test-runs>,
154 unless -f srctop_file("Configure");
185 ok(run(app(["openssl", "version"]), stdout => "foo.txt"));
207 $codeblock->();
230 =item B<stdin =E<gt> PATH>
232 =item B<stdout =E<gt> PATH>
234 =item B<stderr =E<gt> PATH>
238 string PATH, I<or>, if the value is C<undef>, C</dev/null> or similar.
284 interpreter_args => [ "-I", srctop_dir("test") ])));
331 exe_shell => $ENV{EXE_SHELL}, %opts) -> (shift);
342 exe_shell => $ENV{EXE_SHELL}, %opts) -> (shift);
353 exe_shell => $ENV{EXE_SHELL}, %opts) -> (shift);
367 @prog, @cmdargs ], %opts) -> (shift);
381 @prog, @cmdargs ], %opts) -> (shift);
431 my ($cmd, $display_cmd) = shift->(0);
454 # In non-verbose, we want to shut up the command interpreter, in case
456 # on stdout and stderr
458 open $save_STDOUT, '>&', \*STDOUT or die "Can't dup STDOUT: $!";
460 open STDOUT, ">", devnull();
475 open($pipe, '-|', "$prefix$cmd") or die "Can't start command: $!";
481 print STDOUT $l;
491 $r = $hooks{exit_checker}->($e);
496 # Restore STDOUT / STDERR on VMS
499 close STDOUT;
501 open STDOUT, '>&', $save_STDOUT or die "Can't restore STDOUT: $!";
513 # non-zero.
524 my $tb = Test::More->builder;
525 my $failure = scalar(grep { $_ == 0; } $tb->summary);
549 LIST is a list of directories that make up a path from the top of the OpenSSL
568 LIST is a list of directories that make up a path from the top of the OpenSSL
570 C<$BLDTOP>) and FILENAME is the name of a file located in that directory path.
571 C<bldtop_file> returns the resulting file path as a string, adapted to the local
586 LIST is a list of directories that make up a path from the top of the OpenSSL
605 LIST is a list of directories that make up a path from the top of the OpenSSL
607 C<$SRCTOP>) and FILENAME is the name of a file located in that directory path.
608 C<srctop_file> returns the resulting file path as a string, adapted to the local
623 LIST is a list of directories that make up a path from the data directory
640 LIST is a list of directories that make up a path from the data directory
642 of a file located in that directory path. C<data_file> returns the resulting
643 file path as a string, adapted to the local operating system.
675 C<result_file> returns the path of the given file as a string,
676 prepending to the file name the path to the directory where test output files
712 my ($c, $dc, @el) = $_->(++$counter);
764 $codeblock->();
801 my ($cmd, $display_cmd) = shift->(0);
948 $directories{RESULTTOP} = $ENV{RESULT_D} || __bldtop_dir("test-runs");
957 delete $directories{SRCDATA} unless -d $directories{SRCDATA};
1016 # __test_file, __apps_file and __fuzz_file return the full path to a file
1031 $out = catfile($directories{SRCTEST},@_,$f) unless -f $out;
1041 $out = catfile($directories{SRCAPPS},@_,$f) unless -f $out;
1051 $out = catfile($directories{SRCFUZZ},@_,$f) unless -f $out;
1125 print STDERR "DEBUG: [dir $_] old path: $oldpath\n";
1127 print STDERR "DEBUG: [dir $_] resulting new path: $newpath\n";
1141 print STDERR "DEBUG: [env $_] old path: $oldpath\n";
1143 print STDERR "DEBUG: [env $_] resulting new path: $newpath\n";
1154 # will clear out any value that happens to be an absolute path
1228 # __fixup_prg returns a string with the possibly prefixed program path spec.
1256 my $stdout = "";
1259 $stdin = " < ".$fileornull->($opts{stdin}) if exists($opts{stdin});
1260 $stdout= " > ".$fileornull->($opts{stdout}) if exists($opts{stdout});
1261 $stderr=" 2> ".$fileornull->($opts{stderr}) if exists($opts{stderr});
1263 my $display_cmd = "$cmdstr$stdin$stdout$stderr";
1271 $cmdstr .= "$stdin$stdout$stderr";
1298 $level--;