| /external/rootdev/ |
| D | rootdev_test.sh | 3 # Use of this source code is governed by a BSD-style license that can be 9 set -u 34 WORKDIR= 36 if [ -n "$WORKDIR" ]; then 37 rm -rf "$WORKDIR" 39 trap - EXIT 43 WORKDIR=$(mktemp -d rootdev_test.XXXXXXX) 44 if [ ! -d "$WORKDIR" ]; then 56 if [ $ret -eq 0 ]; then 66 if [ $? -ne 0 ]; then [all …]
|
| /external/libdisplay-info/test/ |
| D | edid-decode-diff.sh | 1 #!/bin/sh -eu 3 REF_EDID_DECODE="${REF_EDID_DECODE:-edid-decode}" 5 BUILDDIR="${BUILDDIR:-./build}" 6 DI_EDID_DECODE="${DI_EDID_DECODE:-${BUILDDIR}/di-edid-decode/di-edid-decode}" 7 DI_EDID_PRINT="${DI_EDID_PRINT:-${BUILDDIR}/test/di-edid-print}" 9 workdir="$(mktemp -d)" 11 rm -rf "$workdir" 17 "$REF_EDID_DECODE" --skip-hex-dump --check --skip-sha <"$edid" >"$workdir/ref" || [ $? = 254 ] 18 "$DI_EDID_DECODE" <"$edid" >"$workdir/di" || [ $? = 254 ] 19 cp "$workdir/ref" "${edid%.edid}.ref" [all …]
|
| D | edid-decode-check.sh | 1 #!/bin/sh -eu 3 workdir="$(mktemp -d)" 5 rm -rf "$workdir" 13 cp "$ref" "$workdir/ref" 14 "$DI_EDID_DECODE" <"$edid" >"$workdir/di" || [ $? = 254 ] 16 if [ -f "$diff" ]; then 17 patch "$workdir/ref" "$diff" 20 diff -u "$workdir/ref" "$workdir/di"
|
| D | edid-print-check.sh | 1 #!/bin/sh -eu 3 workdir="$(mktemp -d)" 5 rm -rf "$workdir" 11 "$DI_EDID_PRINT" <"$edid" >"$workdir/printout" 13 diff -u "$ref" "$workdir/printout"
|
| /external/bazelbuild-rules_go/go/tools/builders/ |
| D | cgo2.go | 7 // http://www.apache.org/licenses/LICENSE-2.0 49 // might miss dependencies like -lstdc++ if they aren't referenced in 56 workDir, cleanup, err := goenv.workDir() 66 workDir = filepath.Join(workDir, "cgo", packagePath) 67 if err := os.MkdirAll(workDir, 0700); err != nil { 71 // Filter out -lstdc++ and -lc++ from ldflags if we don't have C++ sources, 90 if f != "-lc++" && f != "-lstdc++" { 99 // directory so we can use -srcdir. 114 srcDir = filepath.Join(workDir, "cgosrcs") 132 hdrIncludes = append(hdrIncludes, "-iquote", hdrDir) [all …]
|
| /external/cronet/stable/components/cronet/tools/ |
| D | link_dependencies.py | 4 # Use of this source code is governed by a BSD-style license that can be 12 $ link_dependencies.py out/Release-iphoneos \ 14 out/Release-iphoneos/crnet_standalone.a 31 Given 'ninja -t query' output for a target, extracts all the inputs of that 55 query_result: output from 'ninja -t query' 73 def query_ninja(target, workdir, prefix=''): argument 81 workdir: workdir for ninja 87 proc = subprocess.Popen(['ninja', '-C', workdir, '-t', 'query', target], 98 def library_deps(targets, workdir, query=query_ninja): argument 109 workdir: working directory to run ninja queries in [all …]
|
| /external/cronet/tot/components/cronet/tools/ |
| D | link_dependencies.py | 4 # Use of this source code is governed by a BSD-style license that can be 12 $ link_dependencies.py out/Release-iphoneos \ 14 out/Release-iphoneos/crnet_standalone.a 31 Given 'ninja -t query' output for a target, extracts all the inputs of that 55 query_result: output from 'ninja -t query' 73 def query_ninja(target, workdir, prefix=''): argument 81 workdir: workdir for ninja 87 proc = subprocess.Popen(['ninja', '-C', workdir, '-t', 'query', target], 98 def library_deps(targets, workdir, query=query_ninja): argument 109 workdir: working directory to run ninja queries in [all …]
|
| /external/crosvm/e2e_tests/benches/ |
| D | gimp.rs | 2 // Use of this source code is governed by a BSD-style license that can be 11 fn gimp() -> anyhow::Result<()> { in gimp() 13 … .with_kernel("https://storage.googleapis.com/crosvm/integration_tests/guest-bzimage-x86_64-r0009") in gimp() 14 …https://storage.googleapis.com/crosvm/integration_tests/benchmarks/custom-initramfs.cpio.gz-r0005") in gimp() 16 …ps://storage.googleapis.com/crosvm/integration_tests/benchmarks/gimp-rootfs.img.zst-r0001").rootfs… in gimp() 17 .with_stdout_hardware("serial").extra_args(vec!["--mem".to_owned(), "1024".to_owned()]); in gimp() 27 vm.exec_in_guest("cd /workdir")?; in gimp() 30 …-i -b '(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE "/workdir/test1.png" "/workdir/test1.… in gimp() 34 …-i -b '(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE "/workdir/test2.png" "/workdir/test2.… in gimp()
|
| /external/google-cloud-java/generation/new_client/ |
| D | new-client.py | 7 # https://www.apache.org/licenses/LICENSE-2.0 34 "--api_shortname", 41 "--name-pretty", 45 help="The human-friendly name that appears in README.md" 48 "--product-docs", 55 "--api-description", 63 "--release-level", 67 help="A label that appears in repo-metadata.json. The first library " 71 "--transport", 75 help="A label that appears in repo-metadata.json" [all …]
|
| /external/pytorch/.circleci/scripts/ |
| D | binary_macos_test.sh | 2 set -eux -o pipefail 5 export "PATH=$workdir/miniconda/bin:$PATH" 6 pkg="$workdir/final_pkgs/$(ls $workdir/final_pkgs)" 13 conda create -qyn test python="$DESIRED_PYTHON" 19 pkg="$(ls $workdir/final_pkgs/*-latest.zip)" 20 unzip "$pkg" -d /tmp 23 conda install -y "$pkg" 25 pip install "$pkg" -v 30 $workdir/builder/check_binary.sh 32 pushd "$workdir/pytorch" [all …]
|
| /external/ltp/testcases/kernel/syscalls/creat/ |
| D | creat09.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * CVE-2018-13405 17 * Author: Linus Torvalds <torvalds@linux-foundation.org> 18 * Date: Tue Jul 3 17:10:19 2018 -0700 20 * Fix up non-directory creation in SGID directories 28 * Date: Fri Jan 22 16:48:18 2021 -0800 30 * xfs: fix up non-directory creation in SGID directories 53 #define WORKDIR MNTPOINT "/testdir" macro 54 #define CREAT_FILE WORKDIR "/creat.tmp" 55 #define OPEN_FILE WORKDIR "/open.tmp" [all …]
|
| /external/cldr/tools/scripts/ansible/templates/ |
| D | deploy-sh.j2 | 2 # Note: this is managed by Ansible, as deploy-sh.j2 3 # Don't modify this file unless its name is deploy-sh.j2 4 if [[ ${1} = "--repo" ]]; 7 GITHUB_REPO=$(echo -n "${1}" | tr -c 'A-Za-z0-9_.-/' '-') 11 GITHUB_REPO=unicode-org/cldr 17 WORKDIR=${TMPDIR-/tmp} # keep all random files here 22 git config --global advice.detachedHead false 23 rm -f ${WORKDIR}/git-list.txt 34 git fetch -p "${GIT_PREFETCH}" "${GITHUB_SHA}" || exit 1 35 git clean -f -d || echo 'warning: err on cleanup' [all …]
|
| /external/toolchain-utils/llvm_tools/patch_sync/src/ |
| D | patch_parsing.rs | 2 // Use of this source code is governed by a BSD-style license that can be 32 pub fn get_from_version(&self) -> Option<u64> { in get_from_version() 38 pub fn get_until_version(&self) -> Option<u64> { in get_until_version() 47 pub workdir: PathBuf, field 53 pub fn parse_from_file(json_file: &Path) -> Result<Self> { in parse_from_file() 66 /// Create a `PatchCollection` from a string literal and a workdir. 67 pub fn parse_from_str(workdir: PathBuf, contents: &str) -> Result<Self> { in parse_from_str() 70 workdir, in parse_from_str() 76 pub fn filter_patches<F>(&self, mut f: F) -> Self in filter_patches() 78 F: FnMut(&PatchDictSchema) -> bool, in filter_patches() [all …]
|
| /external/ltp/testcases/kernel/syscalls/openat/ |
| D | openat04.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 40 #define WORKDIR MNTPOINT "/testdir" macro 44 static int tmpfile_fd = -1, dir_fd = -1, mount_flag; 53 if (TST_RET == -1 && TST_ERR == EINVAL) in do_mount() 56 if (TST_RET == -1) { in do_mount() 71 if (TST_RET == -1) { in open_tmpfile_supported() 90 do_mount(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, "noacl"); in setup() 92 tst_res(TINFO, "User nobody: uid = %d, gid = %d", (int)ltpuser->pw_uid, in setup() 93 (int)ltpuser->pw_gid); in setup() 94 free_gid = tst_get_free_gid(ltpuser->pw_gid); in setup() [all …]
|
| /external/perfetto/tools/ |
| D | run_test_like_ci | 8 # http://www.apache.org/licenses/LICENSE-2.0 77 '--runner', 82 '--build', 87 '--confirm', 92 '--no-confirm', 99 git_cmd = ['git', '-C', REPO_ROOT, 'status', '--porcelain'] 105 print('I suggest you stop, commit and then re-run this script') 113 check_call(('make', '-C', os.path.join(REPO_ROOT, 'infra', 'ci'), 114 'BUILDER=%s' % args.runner, 'build-sandbox')) 116 bundle_path = '/tmp/perfetto-ci.bundle' [all …]
|
| /external/toolchain-utils/llvm_tools/ |
| D | patch_utils_unittest.py | 3 # Use of this source code is governed by a BSD-style license that can be 24 def make_tempdir(self) -> Path: 81 workdir = TestPatchUtils._mock_dir() 82 e1 = pu.PatchEntry.from_dict(workdir, base_dict) 88 e2 = pu.PatchEntry.from_dict(workdir, base_dict) 93 e3 = pu.PatchEntry.from_dict(workdir, base_dict) 98 e4 = pu.PatchEntry.from_dict(workdir, base_dict) 103 e5 = pu.PatchEntry.from_dict(workdir, base_dict) 161 """Test that we error out when we try to apply a non-existent patch.""" 162 src_dir = TestPatchUtils._mock_dir("somewhere/llvm-project") [all …]
|
| /external/cronet/tot/build/android/ |
| D | list_class_verification_failures.py | 3 # Use of this source code is governed by a BSD-style license that can be 9 and accommodating API-level-specific details, such as file paths. 15 import dataclasses # pylint: disable=wrong-import-order 44 --device flag. 48 device_errors.NoDevicesError: Raised when no non-denylisted devices exist. 90 # Of the form "com.example.foo-\d", where \d is a digit (usually 1 or 2). 93 dalvik_prefix = '/data/dalvik-cache/{arch}'.format(arch=arch) 121 ['oatdump', '--oat-file=' + odex_file, '--output=' + device_file.name], 139 pattern = re.compile(r'^(\S+) -> (\S+):') 200 def RealMain(mapping, device_arg, package, status, hide_summary, workdir): argument [all …]
|
| /external/cronet/stable/build/android/ |
| D | list_class_verification_failures.py | 3 # Use of this source code is governed by a BSD-style license that can be 9 and accommodating API-level-specific details, such as file paths. 15 import dataclasses # pylint: disable=wrong-import-order 44 --device flag. 48 device_errors.NoDevicesError: Raised when no non-denylisted devices exist. 90 # Of the form "com.example.foo-\d", where \d is a digit (usually 1 or 2). 93 dalvik_prefix = '/data/dalvik-cache/{arch}'.format(arch=arch) 121 ['oatdump', '--oat-file=' + odex_file, '--output=' + device_file.name], 139 pattern = re.compile(r'^(\S+) -> (\S+):') 200 def RealMain(mapping, device_arg, package, status, hide_summary, workdir): argument [all …]
|
| /external/angle/build/android/ |
| D | list_class_verification_failures.py | 3 # Use of this source code is governed by a BSD-style license that can be 9 and accommodating API-level-specific details, such as file paths. 15 import dataclasses # pylint: disable=wrong-import-order 44 --device flag. 48 device_errors.NoDevicesError: Raised when no non-denylisted devices exist. 90 # Of the form "com.example.foo-\d", where \d is a digit (usually 1 or 2). 93 dalvik_prefix = '/data/dalvik-cache/{arch}'.format(arch=arch) 121 ['oatdump', '--oat-file=' + odex_file, '--output=' + device_file.name], 139 pattern = re.compile(r'^(\S+) -> (\S+):') 200 def RealMain(mapping, device_arg, package, status, hide_summary, workdir): argument [all …]
|
| /external/apache-commons-bcel/src/test/java/org/apache/bcel/util/ |
| D | BCELifierTestCase.java | 9 * http://www.apache.org/licenses/LICENSE-2.0 50 testClassOnPath("target/test-classes/Java8Example.class"); in testJavapCompare() 55 final String initial = exec(null, "javap", "-p", "-c", javaClass); in testClassOnPath() 57 final File workDir = new File("target"); in testClassOnPath() local 61 final File outfile = new File(workDir, infile.getName().replace(".class", "Creator.java")); in testClassOnPath() 66 exec(workDir, "javac", "-cp", "classes", outfile.getName()); in testClassOnPath() 67 …exec(workDir, "java", "-cp", "." + File.pathSeparator + "classes", outfile.getName().replace(".jav… in testClassOnPath() 68 final String output = exec(workDir, "javap", "-p", "-c", infile.getName()); in testClassOnPath() 80 private String exec(final File workDir, final String... args) throws Exception { in exec() argument 83 pb.directory(workDir); in exec() [all …]
|
| /external/libdrm/intel/ |
| D | meson.build | 1 # Copyright © 2017-2018 Intel Corporation 71 'gen4-3d.batch', 72 find_program('tests/gen4-3d.batch.sh'), 73 workdir : meson.current_build_dir(), 76 'gen45-3d.batch', 77 find_program('tests/gm45-3d.batch.sh'), 78 workdir : meson.current_build_dir(), 81 'gen5-3d.batch', 82 find_program('tests/gen5-3d.batch.sh'), 83 workdir : meson.current_build_dir(), [all …]
|
| /external/skia/infra/bots/task_drivers/canvaskit_gold/ |
| D | canvaskit_gold.go | 3 // Use of this source code is governed by a BSD-style license that can be 35 …workdir = flag.String("workdir", ".", "Working directory, the root directory of a full Skia chec… var 39 changelistID = flag.String("changelist_id", "", "Should be non-empty only when run on the CQ.") 40 patchsetOrderStr = flag.String("patchset_order", "", "Should be non-zero only when run on the CQ.") 41 tryjobID = flag.String("tryjob_id", "", "Should be non-zero only when run on the CQ.") 50 … "If provided, dump a JSON blob of step data to the given file. Prints to stdout if '-' is given.") 65 wd := td.MustGetAbsolutePathOfFlag(ctx, *workdir, "workdir") 72 fmt.Println("Non-integer value passed in to --patchset_order") 87 "--config=linux_rbe", "--test_output=streamed", "--jobs="+strconv.Itoa(rbeJobs)); err != nil { 125 "--config=" + config, // Should be defined in //bazel/buildrc [all …]
|
| /external/ltp/testcases/kernel/syscalls/chdir/ |
| D | chdir01.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 30 static char *workdir; variable 47 {&file_name, -1, ENOTDIR, -1, ENOTDIR}, 48 {&blocked_name, 0, 0, -1, EACCES}, 53 {&missing_name, -1, ENOENT, -1, ENOENT}, 54 {&link_name, -1, ELOOP, -1, ELOOP}, 66 workdir = SAFE_MALLOC(strlen(cwd) + strlen(MNTPOINT) + 2); in setup() 67 sprintf(workdir, "%s/%s", cwd, MNTPOINT); in setup() 69 SAFE_CHDIR(workdir); in setup() 82 else if (TST_RET == -1 && (TST_ERR == EPERM || TST_ERR == ENOSYS)) in setup() [all …]
|
| /external/skia/infra/bots/recipe_modules/flavor/ |
| D | default.py | 2 # Use of this source code is governed by a BSD-style license that can be 33 # FlavorUtils objects can do recipe module-like things, like run steps or 34 # access module-level resources. 48 lotties_dir=self.m.path.start_dir.joinpath('lottie-samples'), 108 """Run device-specific installation steps.""" 112 """Run any device-specific cleanup steps.""" 130 workdir = self.m.vars.workdir 131 clang_linux = workdir.joinpath('clang_linux') 137 dri_path = workdir.joinpath('mesa_intel_driver_linux') 139 dri_path = workdir.joinpath('mesa_intel_driver_linux_22') [all …]
|
| /external/python/cpython3/Mac/BuildScript/ |
| D | build-installer.py | 6 - support universal2 variant with arm64 and x86_64 archs 7 - enable clang optimizations when building on 10.15+ 10 - 2.7 end-of-life issues: 11 - Python 3 installs now update the Current version link 13 - fully support running under Python 3 as well as 2.7 14 - support building on newer macOS systems with SIP 15 - fully support building on macOS 10.9+ 16 - support 10.6+ on best effort 17 - support bypassing docs build by supplying a prebuilt 18 docs html tarball in the third-party source library, [all …]
|