Home
last modified time | relevance | path

Searched +full:local +full:- +full:dir (Results 1 – 25 of 1022) sorted by relevance

12345678910>>...41

/third_party/ltp/testcases/kernel/mce-test/stress/
Dhwpoison.sh17 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #set -x
33 local cmd=$@
35 if [ $DEBUG -eq 0 ]; then
45 local cmd=$@
47 if [ $DEBUG -eq 0 ]; then
62 [ $DEBUG -ne 1 ] && return
63 _print -en "\\033[0;33m" # set font color as yellow
66 _print -en "\\033[0;39m" # restore font color to normal
71 _print -en "\\033[0;33m" # set font color as yellow
[all …]
/third_party/node/src/
Dnode_dir.cc3 #include "node_file-inl.h"
4 #include "node_process-inl.h"
5 #include "memory_tracker-inl.h"
37 using v8::Local;
97 DirHandle::DirHandle(Environment* env, Local<Object> obj, uv_dir_t* dir) in DirHandle() argument
99 dir_(dir) { in DirHandle()
102 dir_->nentries = 0; in DirHandle()
103 dir_->dirents = nullptr; in DirHandle()
106 DirHandle* DirHandle::New(Environment* env, uv_dir_t* dir) { in New() argument
107 Local<Object> obj; in New()
[all …]
/third_party/ltp/testcases/lib/
Dtst_security.sh2 # SPDX-License-Identifier: GPL-2.0-or-later
5 if [ -z "$TST_LIB_LOADED" ]; then
10 [ -n "$TST_SECURITY_LOADED" ] && return 0
15 local cmd
16 local profiles
26 [ -z "$profiles" ] && profiles="none"
39 [ -z "$profiles" ] && profiles="none"
48 local f="/sys/module/apparmor/parameters/enabled"
49 [ -f "$f" ] && [ "$(cat $f)" = "Y" ]
58 [ $# -eq 1 ] || tst_brk TCONF "usage tst_apparmor_used_profile CMD"
[all …]
/third_party/ltp/testcases/kernel/mce-test/stress/tools/fs-metadata/
Dfs-metadata.sh17 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 export K_TREE_GEN=$K_CWD/k-tree-gen
25 export K_TREE_TRAV=$K_CWD/k-tree-trav
31 local total_nr=$(egrep "pass|fail" $K_RESULT | wc -l )
32 local pass_nr=$(grep pass $K_RESULT| wc -l )
33 local fail_nr=$(grep fail $K_RESULT| wc -l )
34 local end_ts=$(date +%s)
35 local run_time=$(expr $end_ts - $K_START_TS)
37 k_result "Finish fs-metadata testing within $run_time secs, $total_nr metadata "
47 k_log "killing k-thread $pid"
[all …]
Dk-thread.sh17 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 local cmd=$*
32 echo [$(date "+%m-%d %H:%M:%S")] $* | tee -a $K_LOG
37 echo [$(date "+%m-%d %H:%M:%S")] $* | tee -a $K_LOG
40 if [ -f $K_FLAG ] ;then
41 echo [$(date "+%m-%d %H:%M:%S")] $* >> $K_RESULT
44 if [ ! -f $K_FLAG ] && [ $ret_val -ne 0 ] ;then
45 echo [$(date "+%m-%d %H:%M:%S")] $* >> $K_RESULT
59 local ta=$1 # tree a
60 local tb=$2 # tree b
[all …]
/third_party/ltp/testcases/commands/cp/
Dcp_tests.sh2 # SPDX-License-Identifier: GPL-2.0-or-later
17 local dirname=$1
18 local dircnt=$2
19 local filecnt=$3
22 tst_res TINFO "Filling each dir with $filecnt files".
23 while [ $dircnt -gt 0 ]; do
24 dirname=$dirname/dir$dircnt
25 ROD mkdir -p $dirname
27 local fcnt=0
28 while [ $fcnt -lt $filecnt ]; do
[all …]
/third_party/ltp/testcases/network/stress/ipsec/
Dipsec_lib.sh2 # SPDX-License-Identifier: GPL-2.0-or-later
31 echo "r x Num of requests, PING_MAX or netstress' '-r' opt"
79 SPI=${SPI:-1000}
80 VTI_KEY=${VTI_KEY:-10}
85 if [ -n "$IPSEC_MODE" ]; then
86 tst_net_run -q "tst_check_drivers xfrm_user" || \
94 TST_SETUP=${TST_SETUP:-ipsec_lib_setup}
100 local bits=$1
101 local bytes=$(( $bits / 8))
102 echo "0x$(hexdump -vn $bytes -e '1/1 "%02x"' /dev/urandom)"
[all …]
/third_party/ltp/testcases/kernel/security/integrity/ima/tests/
Dima_setup.sh2 # SPDX-License-Identifier: GPL-2.0-or-later
4 # Copyright (c) 2018-2020 Petr Vorel <pvorel@suse.cz>
26 local algorithm="$1"
27 local file="$2"
28 local digest
30 digest="$(${algorithm}sum $file 2>/dev/null | cut -f1 -d ' ')"
31 if [ -n "$digest" ]; then
36 digest="$(openssl $algorithm $file 2>/dev/null | cut -f2 -d ' ')"
37 if [ -n "$digest" ]; then
43 local arg="$algorithm"
[all …]
Dima_measurements.sh2 # SPDX-License-Identifier: GPL-2.0-or-later
4 # Copyright (c) 2018-2021 Petr Vorel <pvorel@suse.cz>
21 [ -f "$IMA_POLICY" ] || tst_res TINFO "not using default policy"
26 local device mount fs
28 tst_kvcmp -ge "4.16" && return 0
30 device="$(df . | sed -e 1d | cut -f1 -d ' ')"
31 mount="$(grep $device /proc/mounts | head -1)"
35 ext[2-4])
36 if ! echo "$mount" | grep -q -w "i_version"; then
37 …e '$device' is not mounted with iversion, please mount it with 'mount $device -o remount,iversion'"
[all …]
/third_party/ltp/testcases/open_posix_testsuite/scripts/
Dgenerate-makefiles.sh7 # but as long as you follow the criterion set in locate-test, then the
8 # end-result for modifying and/or adding tests can be achieved by merely
19 readonly buildonly_compiler_args="-c"
23 local maketype=$1; shift
27 locate-test --$maketype | sed -e 's,^./,,g' | sort > make-gen.$maketype
29 generate_makefiles make-gen.$maketype $*
31 rm -f make-gen.$maketype
36 local link_libs=
37 local make_rule_prereq_cache=
38 local make_copy_prereq_cache=
[all …]
/third_party/mesa3d/android/
Dmesa3d_cross.mk1 # Mesa 3-D graphics library
24 MY_PATH := $(call my-dir)
27 define relative-to-absolute
34 m_dummy := $(local-generated-sources-dir)/dummy.c
36 mkdir -p $(dir $@)
66 MESA3D_GALLIUM_DRI_DIR := $(MESON_OUT_DIR)/install/usr/local/lib/dri
67 $(M_TARGET_PREFIX)MESA3D_GALLIUM_DRI_BIN := $(MESON_OUT_DIR)/install/usr/local/lib/libgallium_dri.so
68 $(M_TARGET_PREFIX)MESA3D_LIBEGL_BIN := $(MESON_OUT_DIR)/install/usr/local/lib/libEGL.so.1.0.0
69 $(M_TARGET_PREFIX)MESA3D_LIBGLESV1_BIN := $(MESON_OUT_DIR)/install/usr/local/lib/libGLESv1_CM.so.…
70 $(M_TARGET_PREFIX)MESA3D_LIBGLESV2_BIN := $(MESON_OUT_DIR)/install/usr/local/lib/libGLESv2.so.2.0…
[all …]
/third_party/icu/icu4c/source/test/testdata/
DMakefile.in5 # Copyright (C) 1998-2015, International Business Machines
9 ## Top-level Makefile.in for ICU
28 -include Makefile.local
31 .PHONY : all all-local all-recursive install install-local \
32 install-recursive clean clean-local clean-recursive distclean \
33 distclean-local distclean-recursive doc dist dist-local dist-recursive \
34 check check-local check-recursive build-dir testdata.jar xcheck check-exhaustive
36 xcheck: all-local
38 .NOTPARALLEL: build-dir
44 all: all-local
[all …]
/third_party/ltp/lib/newlib_tests/
Druntest.sh4 LTP_C_API_TESTS="${LTP_C_API_TESTS:-test05 test07 test09 test12 test15 test18
9 LTP_SHELL_API_TESTS="${LTP_SHELL_API_TESTS:-shell/tst_check_driver.sh
10 shell/tst_check_kconfig0[1-5].sh shell/net/*.sh}"
20 Usage: $0 [-b DIR ] [-c|-s]
21 -b DIR build directory (required for out-of-tree build)
22 -c run C API tests only
23 -s run shell API tests only
24 -h print this help
42 if [ $# -eq 0 ]; then
47 local res="$1"
[all …]
/third_party/ltp/testcases/commands/sysctl/
Dsysctl01.sh2 # SPDX-License-Identifier: GPL-2.0-or-later
21 local dir="/proc/sys/kernel/"
22 [ -e "$dir""sched_time_avg_ms" ] && local name="sched_time_avg_ms"
23 [ -e "$dir""sched_time_avg" ] && local name="sched_time_avg"
24 [ -z "$name" ] && tst_brk TCONF \
27 local orig_value=$(cat "$dir""$name")
29 sysctl -w "kernel.""$name"=0 >/dev/null 2>&1
31 local test_value=$(cat "$dir""$name")
33 if [ ${test_value} -eq ${orig_value} ]; then
37 sysctl -w "kernel.""$name"=${orig_value} >/dev/null 2>&1
/third_party/ltp/testcases/commands/ln/
Dln_tests.sh2 # SPDX-License-Identifier: GPL-2.0-or-later
17 ROD mkdir -p dir/subdir
19 ROD touch dir/file
24 local dname="$1"
25 local lname="$2"
42 local fname="$1"
43 local lname="$2"
54 local args="$1"
55 local src="$2"
56 local link="$3"
[all …]
/third_party/ltp/
Dbuild.sh2 # Copyright (c) 2017-2021 Petr Vorel <pvorel@suse.cz>
5 set -e
7 CFLAGS="${CFLAGS:--Wformat -Werror=format-security -Werror=implicit-function-declaration -Werror=re…
8 CC="${CC:-gcc}"
10 DEFAULT_PREFIX="$HOME/ltp-install"
14 CONFIGURE_OPTS_IN_TREE="--with-open-posix-testsuite --with-realtime-testsuite $CONFIGURE_OPT_EXTRA"
15 # TODO: open posix testsuite is currently broken in out-tree-build. Enable it once it's fixed.
16 CONFIGURE_OPTS_OUT_TREE="--with-realtime-testsuite $CONFIGURE_OPT_EXTRA"
19 BUILD_DIR="$SRC_DIR/../ltp-build"
21 MAKE_OPTS="-j$(getconf _NPROCESSORS_ONLN)"
[all …]
/third_party/openssl/util/
Dmkdir-p.pl2 # Copyright 1999-2021 The OpenSSL Project Authors. All Rights Reserved.
9 # On some systems, the -p option to mkdir (= also create any missing parent
21 local($dir) = @_;
23 $dir =~ s|/*\Z(?!\n)||s;
25 if (-d $dir) {
29 if ($dir =~ m|[^/]/|s) {
30 local($parent) = $dir;
36 unless (mkdir($dir, 0777)) {
37 local($err) = $!;
38 if (-d $dir) {
[all …]
/third_party/node/deps/openssl/openssl/util/
Dmkdir-p.pl2 # Copyright 1999-2021 The OpenSSL Project Authors. All Rights Reserved.
9 # On some systems, the -p option to mkdir (= also create any missing parent
21 local($dir) = @_;
23 $dir =~ s|/*\Z(?!\n)||s;
25 if (-d $dir) {
29 if ($dir =~ m|[^/]/|s) {
30 local($parent) = $dir;
36 unless (mkdir($dir, 0777)) {
37 local($err) = $!;
38 if (-d $dir) {
[all …]
/third_party/icu/tools/currency/
Dbuild.xml1 <!--
5 * Copyright (C) 2012-2013, International Business Machines Corporation and *
8 -->
9 <project name="currency-numeric" default="build" basedir=".">
10 <property name="out.dir" value="${basedir}/out"/>
11 <property name="src.dir" value="${basedir}/src"/>
12 <property name="classes.dir" value="${out.dir}/bin"/>
13 <property name="res.dir" value="${out.dir}/res"/>
14 <property name="xml.dir" value="${out.dir}/xml"/>
16 …operty name="base.url" value="https://www.six-group.com/dam/download/financial-information/data-ce…
[all …]
/third_party/mksh/
Dcheck.pl3 #-
10 # is granted to deal in this work without restriction, including un-
22 #-
24 # name: a-test
27 # arguments: !-x!-f!
29 # echo -n *
31 # expected-stdout: !
33 # expected-stderr:
34 # + echo -n *
36 # expected-exit: 1
[all …]
/third_party/ltp/testcases/kernel/fs/fs_bind/
Dfs_bind_lib.sh2 # SPDX-License-Identifier: GPL-2.0-or-later
4 # Copyright (c) 2021 Joerg Vehlow <joerg.vehlow@aox-tech.de>
17 [ -z "$FS_BIND_TESTFUNC" ] && tst_brk TBROK "Please set FS_BIND_TESTFUNC before sourcing fs_bind_li…
33 # Creates a directory and bind-mounts it to itself.
36 # share_mode is one of the --make-{shared,priv,...}
42 local bind_type dir
45 dir="$2"
52 if [ -e "$dir" ]; then
53 tst_brk TBROK "An entry by the name \"$dir\" exists already"
56 ROD mkdir -p "$dir"
[all …]
/third_party/ltp/testcases/kernel/fs/fs_readonly/
Dtest_robind.sh17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
28 # it by -z option when running runltp.
30 # b) mount --bind dir2
31 # c) mount -o remount,ro
34 # into dir.
39 # 09/06/2008 Veerendra Chandrappa For Container, testing of RO-Bind mount
47 DIRS="dir1 dir2-bound dir3-ro"
57 usage: $0 -c command [ext3,ext2,jfs,xfs,reiserfs,ramfs]
59 This script verifies ReadOnly-filesystem, by mounting block device and
63 -h display this message and exit
[all …]
/third_party/icu/icu4j/main/shared/build/
Dlocations.properties4 #* Copyright (C) 2009-2014, International Business Machines Corporation and *
8 icu4j.collate.dir = ${shared.dir}/../classes/collate
9 icu4j.core.dir = ${shared.dir}/../classes/core
10 icu4j.charset.dir = ${shared.dir}/../classes/charset
11 icu4j.currdata.dir = ${shared.dir}/../classes/currdata
12 icu4j.langdata.dir = ${shared.dir}/../classes/langdata
13 icu4j.localespi.dir = ${shared.dir}/../classes/localespi
14 icu4j.regiondata.dir = ${shared.dir}/../classes/regiondata
15 icu4j.translit.dir = ${shared.dir}/../classes/translit
17 icu4j.test-framework.dir = ${shared.dir}/../tests/framework
[all …]
/third_party/node/deps/npm/test/lib/
Dnpm.js4 const { load: loadMockNpm } = require('../fixtures/mock-npm.js')
5 const mockGlobals = require('@npmcli/mock-globals')
6 const { commands } = require('../../lib/utils/cmd-list.js')
50 const { npm, logs, prefix: dir, cache, other } = await loadMockNpm(t, {
66 ['npm:load', /Completed in [0-9.]+ms/],
75 t.equal(npm.prefix, npm.localPrefix, 'prefix is local prefix')
79 npm.localPrefix = dir + '/extra/prefix'
80 t.equal(npm.prefix, npm.localPrefix, 'prefix is local prefix after localPrefix setter')
83 npm.prefix = dir + '/some/prefix'
84 t.equal(npm.prefix, npm.localPrefix, 'prefix is local prefix after prefix setter')
[all …]
/third_party/icu/icu4c/source/extra/uconv/
DMakefile.in5 ## * Copyright (C) 1999-2014, International Business Machines
9 ## Makefile.in for ICU - uconv
47 CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil
48 CPPFLAGS += -DUNISTR_FROM_CHAR_EXPLICIT=explicit -DUNISTR_FROM_STRING_EXPLICIT=explicit
52 PKGDATA_OPTS = -O pkgdata.inc
55 ## generic settings for data - common.
58 UCONVMSG_LIB=package-resfiles
62 DEFS += -DUCONVMSG_LINK=$(MSGNAME)
71 DEFS += -DUCONVMSG_LINK=$(MSGNAME)
72 LIBS += -L$(RESDIR) -l$(MSGNAME)
[all …]

12345678910>>...41