Home
last modified time | relevance | path

Searched +full:stdout +full:- +full:path (Results 1 – 25 of 1100) sorted by relevance

12345678910>>...44

/freebsd/tools/regression/usr.bin/env/
H A Dregress-env.rgdata1 #-
2 # Copyright (c) 2005 - Garance Alistair Drosehn <gad@FreeBSD.org>.
29 gblenv=PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
30 gblenv=TESTVAR=Global-TV-Value
33 # These first two tests are testing how well the regression-script itself is
34 # handling environment-variables, as much as testing the `env' program.
38 script:/bin/echo A-${TESTVAR}-Z
39 stdout:A-a1a-Z
42 sb_args:-S /bin/sh
43 script:/bin/echo A-${TESTVAR}-Z
[all …]
/freebsd/sys/contrib/device-tree/Bindings/
H A Dchosen.txt2 ---------------
11 kaslr-seed
12 -----------
22 kaslr-seed = <0xfeedbeef 0xc0def00d>;
31 stdout-path
32 -----------
35 with a stdout-path property under /chosen, as described in the Devicetree
40 stdout-path = "/serial@f00:115200";
44 compatible = "vendor,some-uart";
49 If the character ":" is present in the value, this terminates the path.
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dxattrtest.c1 // SPDX-License-Identifier: CDDL-1.0
10 * or https://opensource.org/licenses/CDDL-1.0.
62 { "path", required_argument, 0, 'p' },
95 static const char *path = "/tmp/xattrtest"; variable
103 "usage: %s [-hvycdrRk] [-n <nth>] [-f <files>] [-x <xattrs>]\n" in usage()
104 " [-s <bytes>] [-p <path>] [-t <script> ] [-o <phase>]\n", in usage()
108 " --help -h This help\n" in usage()
109 " --verbose -v Increase verbosity\n" in usage()
110 " --verify -y Verify xattr contents\n" in usage()
111 " --nth -n <nth> Print every nth file\n" in usage()
[all …]
/freebsd/contrib/kyua/utils/process/
H A Dchild_test.cpp48 #include <atf-c++.hpp>
54 #include "utils/fs/path.hpp"
89 std::cout << "To stdout: " << Message << "\n"; in child_simple_function()
100 /// The message to print on stdout and stderr.
107 /// \param message The message to print on stdout and stderr.
118 std::cout << "To stdout: " << _message << "\n"; in operator ()()
125 /// Body for a process that prints many messages to stdout and exits.
133 std::cout << "This is a message to stdout, sequence " << i << "\n"; in child_printer_function()
200 /// Calculates the path to the test helpers binary.
205 /// \return The path to the helpers binary.
[all …]
H A Dchild.cpp46 #include "utils/fs/path.hpp"
67 /// The input stream for the process' stdout and stderr. May be NULL.
91 /// Exception-based version of dup(2).
101 if (process::detail::syscall_dup2(old_fd, new_fd) == -1) { in safe_dup()
109 /// Exception-based version of open(2) to open (or create) a file for append.
117 open_for_append(const fs::path& filename) in open_for_append()
122 if (fd == -1) { in open_for_append()
136 log_exec(const fs::path& program, const process::args_vector& args) in log_exec()
171 /// \param implptr A dynamically-allocated impl object with the contents of the
191 /// dynamically-allocated object because children classes are unique and thus
[all …]
H A Doperations_test.cpp42 #include <atf-c++.hpp>
46 #include "utils/fs/path.hpp"
61 typedef void (*exec_function)(const fs::path&, const process::args_vector&);
64 /// Calculates the path to the test helpers binary.
69 /// \return The path to the helpers binary.
70 static fs::path
73 return fs::path(tc->get_config_var("srcdir")) / "helpers"; in get_helpers()
82 /// Path to the binary to exec.
83 const fs::path& _program;
92 /// \param program Path to the binary to exec.
[all …]
H A Dexecutor.cpp54 #include "utils/fs/path.hpp"
95 /// Basename of the file containing the stdout of the subprocess.
96 const char* utils::process::executor::detail::stdout_name = "stdout.txt";
111 /// Prepares a subprocess to run a user-provided hook in a controlled manner.
114 /// \param control_directory Path to the subprocess-specific control directory.
115 /// \param work_directory Path to the subprocess-specific work directory.
119 const fs::path& control_directory, in setup_child()
120 const fs::path& work_directory) in setup_child()
133 /// Path to the subprocess-specific work directory.
134 fs::path control_directory;
[all …]
/freebsd/usr.bin/locate/code/
H A Dlocate.code.c2 * SPDX-License-Identifier: BSD-3-Clause
4 * Copyright (c) 1995-2022 Wolfram Schneider <wosch@FreeBSD.org>
46 * offset differential count byte followed by a partially bigram-
47 * encoded ascii residue. A bigram is a two-character sequence,
60 * 0-28 likeliest differential counts + offset to make nonnegative
61 * 30 switch code for out-of-range count to follow in next word
63 * 128-255 bigram codes (128 most common, as determined by 'updatedb')
64 * 32-127 single character (printable) ascii residue (ie, literal)
67 * and NUL ('\0'). The 8-bit character support don't wast extra
76 * 8-bit file names characters:
[all …]
/freebsd/bin/cat/
H A Dcat.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
77 static int udom_open(const char *path, int flags);
86 /* Maximum buffer size in bytes - do not allow it to grow larger than this. */
98 * disable all flags except -l and -u to avoid non-portable function calls.
164 while ((ch = getopt(argc, argv, SUPPORTED_FLAGS)) != -1) in main()
167 bflag = nflag = 1; /* -b implies -n */ in main()
170 eflag = vflag = 1; /* -e implies -v */ in main()
182 tflag = vflag = 1; /* -t implies -v */ in main()
185 setbuf(stdout, NULL); in main()
[all …]
/freebsd/contrib/kyua/doc/
H A Dkyua-debug.1.in36 .Op Fl -build-root Ar path
37 .Op Fl -kyuafile Ar file
38 .Op Fl -pause-before-cleanup-upon-fail
39 .Op Fl -pause-before-cleanup
40 .Op Fl -stdout Ar path
41 .Op Fl -stderr Ar path
65 .Bl -bullet
67 Redirection of the test case's stdout and stderr to the console (the
70 .Fl -stdout
72 .Fl -stderr
[all …]
/freebsd/contrib/atf/atf-sh/
H A Datf-check.129 .Nm atf-check
41 exit code, stdout and stderr.
45 .Xr atf-sh 3 Ns ' Ns s
70 .Bl -tag -width XqualXvalueXX
74 .Bl -tag -width signal:<value> -compact
91 .Sq not-
96 .Bl -tag -width inline:<value> -compact
98 checks that stdout is empty
100 ignores stdout
101 .It Ar file:<path>
[all …]
/freebsd/contrib/libarchive/unzip/
H A Dbsdunzip.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
5 * Copyright (c) 2007-2008 Dag-Erling Smørgrav
59 /* command-line options */
61 static int C_opt; /* match case-insensitively */
62 static int c_opt; /* extract to stdout */
70 static int p_opt; /* extract to stdout, quiet */
120 fprintf(stdout, "\n"); in error()
121 fflush(stdout); in error()
137 fprintf(stdout, "\n"); in errorx()
[all …]
/freebsd/sys/contrib/openzfs/tests/test-runner/bin/
H A Dtest-runner.py.in2 # SPDX-License-Identifier: CDDL-1.0
39 from os.path import exists
70 return t.tv_sec + t.tv_nsec * 1e-9
81 self.stdout = []
91 m, s = divmod(monotonic_time() - self.starttime, 60)
169 The timeout for tests is measured in wall-clock time
196 signal = '-TERM'
209 If this is not a user-initiated kill and the test has not been
215 runtime = monotonic_time() - self.result.starttime
231 if os.path.isfile(cmd+'.ksh') and os.access(cmd+'.ksh', os.X_OK):
[all …]
/freebsd/usr.bin/env/tests/
H A Denv_test.sh4 # SPDX-License-Identifier: BSD-2-Clause
16 atf_check -o match:"^magic_words=${magic_words}\$" \
19 atf_check -o match:"^MAGIC_WORDS=${magic_words}\$" \
32 atf_check -o not-match:"^MAGIC_WORDS=" \
33 env -u MAGIC_WORDS
44 atf_check env -i
64 atf_check -s exit:1 env false
74 atf_check -s exit:1 env false
80 atf_set "descr" "Use alternate path"
86 atf_check -s exit:125 -e match:"must specify command" \
[all …]
/freebsd/contrib/atf/atf-c++/
H A Dcheck_test.cpp26 #include "atf-c++/check.hpp"
42 #include <atf-c++.hpp>
44 #include "atf-c++/detail/fs.hpp"
45 #include "atf-c++/detail/process.hpp"
46 #include "atf-c++/detail/test_helpers.hpp"
47 #include "atf-c++/detail/text.hpp"
48 #include "atf-c++/utils.hpp"
50 // ------------------------------------------------------------------------
52 // ------------------------------------------------------------------------
82 // ------------------------------------------------------------------------
[all …]
/freebsd/sys/contrib/device-tree/Bindings/arm/
H A Dsecure.txt15 can be supported by prefixing the property name with "secure-". So for
16 instance "secure-foo" would override "foo". For property names with
18 "vendor,secure-foo". If there is no "secure-" property then the Secure
20 non-prefixed property. However, only the properties listed below may
21 validly have "secure-" versions; this list will be enlarged on a
22 case-by-case basis.
25 been annotated to indicate the presence of Secure-only devices can
26 still be processed unmodified by existing Non-secure software (and in
32 secure- bindings only need to be used where both the Secure and Normal
36 -----------------------------
[all …]
/freebsd/tools/build/
H A Dmake.py3 # -
4 # SPDX-License-Identifier: BSD-2-Clause
31 # This script makes it easier to build on non-FreeBSD systems by bootstrapping
35 # `MAKEOBJDIRPREFIX=~/obj ./tools/build/make.py buildworld -DWITH_FOO`
39 # - setting XCC/XCXX/XLD/XCPP to the paths of each tool
40 # - using --cross-bindir to specify the path to the cross-compiler bindir:
42 # --cross-bindir=/path/to/cross/compiler buildworld -DWITH_FOO TARGET=foo
44 # - using --cross-toolchain to specify the package containing the cross-compiler
47 # --cross-toolchain=llvm@NN buildworld -DWITH_FOO TARGET=foo
60 from pathlib import Path
[all …]
/freebsd/crypto/krb5/src/util/
H A Dk5test.py28 check-pytests::
70 (path may be specified relative to the current working dir)
79 - $realm: The realm name
80 - $testdir: The realm storage directory (absolute path)
81 - $buildtop: The root of the build directory
82 - $srctop: The root of the source directory
83 - $plugins: The plugin directory in the build tree
84 - $certs: The PKINIT certificate directory in the source tree
85 - $hostname: The FQDN of the host
86 - $port0: The first listener port (portbase)
[all …]
H A Dcstyle.py34 u = ['Usage: cstyle [-w] [rev|rev1..rev2]',
38 'changes in rev or the series rev1..rev2. With the -w option,',
47 p = Popen(args, stdout=PIPE, stderr=PIPE, universal_newlines=True)
64 if os.path.exists(os.path.join(dir, '.git')):
66 parent = os.path.dirname(dir)
79 root, ext = os.path.splitext(filename)
85 p1 = Popen(['cat', filename], stdout=PIPE)
87 p1 = Popen(['git', 'show', rev + ':' + filename], stdout=PIPE)
88 p2 = Popen([sys.executable, 'src/util/cstyle-file.py'], stdin=p1.stdout,
89 stdout=PIPE, universal_newlines=True)
[all …]
/freebsd/contrib/kyua/utils/
H A Dstream.cpp37 #include "utils/fs/path.hpp"
46 /// Constant that represents the path to stdout.
47 static const fs::path stdout_path("/dev/stdout");
50 /// Constant that represents the path to stderr.
51 static const fs::path stderr_path("/dev/stderr");
57 /// Opens a new file for output, respecting the stdout and stderr streams.
59 /// \param path The path to the output file to be created.
63 utils::open_ostream(const fs::path& path) in open_ostream() argument
66 if (path == stdout_path) { in open_ostream()
68 out->copyfmt(std::cout); in open_ostream()
[all …]
/freebsd/crypto/openssl/util/perl/OpenSSL/
H A DTest.pm1 # Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
32 OpenSSL::Test - a private extension of Test::More
45 ok(run(test(["sometest", "arg1"], stdout => "foo.txt")),
62 recipe C<$SRCTOP/test/recipes/99-foo.t>, there could be a directory
63 C<$SRCTOP/test/recipes/99-foo_data/>.
70 use File::Path 2.00 qw/rmtree mkpath/;
93 # is defined with a non-empty value.
129 variable if defined, otherwise C<$BLDTOP/test-runs> or C<$TOP/test-runs>,
155 unless -f srctop_file("Configure");
186 ok(run(app(["openssl", "version"]), stdout => "foo.txt"));
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/Unix/
H A DProgram.inc1 //===- llvm/Support/Unix/Program.inc ----------------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
13 //===----------------------------------------------------------------------===//
16 //===----------------------------------------------------------------------===//
27 #include "llvm/Support/Path.h"
74 // Use the given path verbatim if it contains any slashes; this matches
81 if (const char *PathEnv = std::getenv("PATH")) {
86 for (auto Path : Paths) {
[all …]
/freebsd/contrib/llvm-project/lldb/bindings/python/
H A Dlldb-python8 lldb = os.path.join(os.path.dirname(__file__), 'lldb')
10 info_json = subprocess.run([lldb, "-l", "python", "-print-script-interpreter-info"],
11 check=True, stdout=subprocess.PIPE, encoding='utf8').stdout
15 info["lldb-pythonpath"] + os.path.pathsep + os.environ.get("PYTHONPATH", ""))
/freebsd/contrib/atf/atf-c/
H A Dcheck_test.c26 #include "atf-c/check.h"
35 #include <atf-c.h>
37 #include "atf-c/detail/fs.h"
38 #include "atf-c/detail/map.h"
39 #include "atf-c/detail/process.h"
40 #include "atf-c/detail/test_helpers.h"
42 /* ---------------------------------------------------------------------
44 * --------------------------------------------------------------------- */
94 /* ---------------------------------------------------------------------
96 * --------------------------------------------------------------------- */
[all …]
/freebsd/crypto/krb5/src/
H A Dwconfig.c31 * ##DOS!include win-pre.in to become: !include win-pre.in
47 static int copy_file (char *path, char *fname);
58 char *ignore_str = "--ignore="; in main()
74 argc--; argv++; in main()
75 while (*argv && *argv[0] == '-') { in main()
77 if (wlen + 1 + alen > sizeof (wflags) - 1) { in main()
88 if (!strcmp(*argv, "--mit")) { in main()
90 argc--; argv++; in main()
93 if (!strcmp(*argv, "--win16")) { in main()
95 argc--; argv++; in main()
[all …]

12345678910>>...44