Home
last modified time | relevance | path

Searched full:subprocess (Results 1 – 25 of 164) sorted by relevance

1234567

/freebsd/contrib/kyua/utils/process/
H A Dexecutor.cpp88 /// Mapping of active subprocess PIDs to their execution data.
95 /// Basename of the file containing the stdout of the subprocess.
99 /// Basename of the file containing the stderr of the subprocess.
103 /// Basename of the subdirectory in which the subprocess is actually executed.
106 /// subprocess so that our code can create control files on disk and not
107 /// get them clobbered by the subprocess's activity.
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.
133 /// Path to the subprocess-specific work directory.
[all …]
H A Dexecutor.ipp59 /// Directory to enter when running the subprocess.
62 /// subprocess operations do not inadvertently affect our files.
65 /// User to switch to when running the subprocess.
67 /// If not none, the subprocess will be executed as the provided user and
76 /// \param work_directory Directory to enter when running the subprocess.
89 /// Body of the subprocess.
103 /// Forks and executes a subprocess asynchronously.
106 /// \param hook Function or functor to run in the subprocess.
107 /// \param timeout Maximum amount of time the subprocess can run for.
144 /// Forks and executes a subprocess asynchronously in the context of another.
[all …]
H A Disolation_test.cpp69 /// Runs the given hook in a subprocess.
71 /// \param hook The code to run in the subprocess.
73 /// \return The status of the subprocess for further validation.
75 /// \post The subprocess.stdout and subprocess.stderr files, created in the
76 /// current directory, contain the output of the subprocess.
82 hook, fs::path("subprocess.stdout"), fs::path("subprocess.stderr")); in fork_and_run()
85 atf::utils::cat_file("subprocess.stdout", "isolated child stdout: "); in fork_and_run()
86 atf::utils::cat_file("subprocess.stderr", "isolated child stderr: "); in fork_and_run()
92 /// Subprocess that validates the cleanliness of the environment.
139 /// Subprocess that checks if user privileges are dropped.
[all …]
H A Dchild.ipp40 /// Spawns a new subprocess and redirects its stdout and stderr to files.
42 /// If the subprocess cannot be completely set up for any reason, it attempts to
45 /// \param hook The function to execute in the subprocess. Must not return.
75 /// Spawns a new subprocess and multiplexes and captures its stdout and stderr.
77 /// If the subprocess cannot be completely set up for any reason, it attempts to
80 /// \param hook The function to execute in the subprocess. Must not return.
H A Dexecutor_test.cpp86 /// Terminates a subprocess without invoking destructors.
89 /// on exit from a subprocess. The reason is that we do not want to invoke any
105 /// Subprocess that creates a cookie file in its work directory.
119 /// Runs the subprocess.
135 /// Subprocess that deletes all files in the current directory.
161 /// Subprocess that dumps user configuration.
171 /// Subprocess that returns a specific exit code.
184 /// Runs the subprocess.
197 /// Subprocess that just blocks.
213 /// Subprocess that writes to stdout and stderr.
[all …]
H A Doperations.cpp116 /// of the subprocess is not "polluted" by our own messages.
143 /// of the subprocess is not "polluted" by our own messages.
199 /// process group is racy: if the subprocess has not yet had a chance to prepare
240 /// Blocks to wait for completion of a subprocess.
259 /// Blocks to wait for completion of any subprocess.
H A Dexecutor.hpp58 /// that acts as the subprocess' work directory; the second is the "control
101 /// Maintenance data held while a subprocess is being executed.
103 /// This data structure exists from the moment a subprocess is executed via
107 /// subprocess. However, the PID contained in here can be used to match
/freebsd/sys/contrib/openzfs/.github/workflows/scripts/
H A Dgenerate-ci-type.py16 import subprocess
67 last_commit_message_raw = subprocess.run([
69 ], check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
76 all_commit_message_raw = subprocess.run([
79 ], check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
90 changed_files_raw = subprocess.run([
92 ], check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
/freebsd/contrib/googletest/googlemock/test/
H A Dgmock_leak_test.py57 gmock_test_utils.Subprocess(
62 0, gmock_test_utils.Subprocess(TEST_WITH_ON_CALL, env=environ).exit_code
68 gmock_test_utils.Subprocess(
75 gmock_test_utils.Subprocess(
83 gmock_test_utils.Subprocess(
89 gmock_test_utils.Subprocess(
97 gmock_test_utils.Subprocess(
106 gmock_test_utils.Subprocess(
/freebsd/contrib/bc/scripts/
H A Dkaratsuba.py32 import subprocess
44 return subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env)
182 p = subprocess.run(cmd + sys.argv[args_idx:], stderr=subprocess.PIPE)
197 p = subprocess.run(cmd + sys.argv[args_idx:], stderr=subprocess.PIPE)
217 p = subprocess.run(cmd, input=indata, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
/freebsd/sbin/ping/tests/
H A Dinjection.py6 import subprocess
29 create_proc = subprocess.run(
38 subprocess.run(["ifconfig", tun.iface, "up"])
39 subprocess.run(["ifconfig", tun.iface, SRC_ADDR, DST_ADDR])
41 ping = subprocess.Popen(
/freebsd/tools/build/
H A Dmake.py58 import subprocess
84 subprocess.check_call(cmd, **kwargs)
95 bmake_source_version = subprocess.run([
97 stdout=subprocess.PIPE, stderr=subprocess.PIPE).stdout.strip()
105 bmake_installed_version = subprocess.run([
107 stdout=subprocess.PIPE, stderr=subprocess.PIPE).stdout.strip()
204 path = subprocess.run(["brew", "--prefix", package], stdout=subprocess.PIPE,
205 stderr=subprocess.PIPE).stdout.strip()
/freebsd/contrib/googletest/googletest/test/
H A Dgtest_test_utils.py35 import subprocess
197 class Subprocess: class
209 env: Dictionary with environment to pass to the subprocess.
224 stderr = subprocess.STDOUT
226 stderr = subprocess.PIPE
228 p = subprocess.Popen(
230 stdout=subprocess.PIPE,
H A Dgoogletest-catch-exceptions-test.py68 TEST_LIST = gtest_test_utils.Subprocess(
75 BINARY_OUTPUT = gtest_test_utils.Subprocess([EXE_PATH], env=environ).output
77 EX_BINARY_OUTPUT = gtest_test_utils.Subprocess(
302 uncaught_exceptions_ex_binary_output = gtest_test_utils.Subprocess(
H A Dgoogletest-filter-unittest.py57 # script in a subprocess to print whether the variable is STILL in
63 child = gtest_test_utils.Subprocess(
71 # a python script in a subprocess to print whether the variable
79 child = gtest_test_utils.Subprocess(
128 in gtest_test_utils.Subprocess([COMMAND, LIST_TESTS_FLAG]).output
195 return gtest_test_utils.Subprocess(
203 p = gtest_test_utils.Subprocess([COMMAND] + (args or []), env=environ)
221 p = gtest_test_utils.Subprocess([COMMAND] + (args or []), env=environ)
/freebsd/contrib/llvm-project/lldb/bindings/python/
H A Dlldb-python3 import subprocess
10 info_json = subprocess.run([lldb, "-l", "python", "-print-script-interpreter-info"],
11 check=True, stdout=subprocess.PIPE, encoding='utf8').stdout
/freebsd/crypto/openssh/regress/
H A Dagent-subprocess.sh1 # $OpenBSD: agent-subprocess.sh,v 1.1 2020/06/19 05:07:09 dtucker Exp $
4 tid="agent subprocess"
6 trace "ensure agent exits when run as subprocess"
/freebsd/tools/test/hwpmc/
H A Dpmctest.py52 import subprocess
53 from subprocess import PIPE
79 p = subprocess.Popen(["pmccontrol", "-L"], stdout=PIPE)
89 p = subprocess.Popen(["pmcstat", "-p", counter, options.program],
/freebsd/release/scripts/
H A Dlist-new-changesets.py48 import subprocess
85 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
/freebsd/tests/examples/
H A Dtest_examples.py10 import subprocess
131 assert subprocess.run("ping -c1 192.0.2.1".split()).returncode == 0
132 assert subprocess.run("ping -c1 2001:db8::1".split()).returncode == 0
197 assert subprocess.run("ping -c5 2001:db8:a::2".split()).returncode == 0
205 assert subprocess.run("ping -c5 2001:db8:b::2".split()).returncode == 0
/freebsd/contrib/kyua/engine/
H A Dscheduler.hpp93 /// This method is intended to be called within a subprocess and is expected
105 /// \param status The termination status of the subprocess used to execute
118 /// This method is intended to be called within a subprocess and is expected
135 /// This method is intended to be called within a subprocess and is expected
152 /// \param status The termination status of the subprocess used to execute
186 /// Base type containing the results of the execution of a subprocess.
H A Datf.cpp85 /// This method is intended to be called within a subprocess and is expected
120 /// \param status The termination status of the subprocess used to execute
170 /// This method is intended to be called within a subprocess and is expected
205 /// This method is intended to be called within a subprocess and is expected
237 /// \param status The termination status of the subprocess used to execute
H A Dplain.cpp60 /// This method is intended to be called within a subprocess and is expected
87 /// This method is intended to be called within a subprocess and is expected
119 /// \param status The termination status of the subprocess used to execute
/freebsd/tests/atf_python/sys/net/
H A Dtools.py4 import subprocess
27 ps = subprocess.Popen("/sbin/pfctl -g -f -", shell=True,
28 stdin=subprocess.PIPE)
/freebsd/crypto/openssl/fuzz/
H A Dhelper.py16 import subprocess
49 subprocess.call(cmd)

1234567