Home
last modified time | relevance | path

Searched refs:d (Results 1 – 25 of 138) sorted by relevance

123456

/coreutils/tests/touch/
Dempty-file.sh37 for d in $TOUCH_DIR_LIST; do
38 rm -rf $d/a $d/b $d/c
39 > $d/a || framework_failure_
40 test -f $d/a || framework_failure_
41 > $d/b || framework_failure_
42 test -f $d/b || framework_failure_
43 > $d/c || framework_failure_
44 test -f $d/c || framework_failure_
49 for d in $TOUCH_DIR_LIST; do
50 touch $d/a || fail=1
[all …]
/coreutils/tests/ln/
Dmisc.sh23 d=tln-subdir
37 rm -rf $d || framework_failure_
38 mkdir $d || framework_failure_
39 ln -s ../$f $d/$t || fail=1
40 test -f $d/$t || fail=1
41 rm -rf $d $f
45 rm -rf $d || framework_failure_
46 mkdir $d || framework_failure_
47 ln -s ../$f $d || fail=1
48 test -f $d/$f || fail=1
[all …]
/coreutils/tests/rm/
Dunreadable.pl26 my $d = "dir-$$";
27 my $mkdir = {PRE => sub {mkdir $d,0100 or die "$d: $!\n"}};
36 ['unreadable-1', '-rf', $d, {EXIT => 0}, $mkdir],
38 ['unreadable-2', '-rf', $d,
41 : "$prog: cannot remove '$d': Permission denied\n"},
42 {PRE => sub { (mkdir $d,0700 and mkdir "$d/x",0700 and chmod 0100,$d)
43 or die "$d: $!\n"}} ],
Dno-give-up.sh24 mkdir d || framework_failure_
25 touch d/f || framework_failure_
26 chown -R $NON_ROOT_USERNAME d || framework_failure_
34 rm -rf d 2>/dev/null || fail=1
37 test -d d || fail=1
40 test -f d/f && fail=1
/coreutils/tests/du/
Dinodes.sh23 mkdir d || framework_failure_
26 du --inodes d > out 2>err || fail=1
31 touch d/f || framework_failure_
34 du --inodes d > out 2>err || fail=1
39 ln -v d/f d/h || framework_failure_
40 du --inodes d > out 2>err || fail=1
46 du --inodes -l d > out 2>err || fail=1
51 mkdir d/d || framework_failure_
52 du --inodes -s d > out 2>err || fail=1
58 du --inodes -S d > out 2>err || fail=1
[all …]
Dbasic.sh22 mkdir -p a/b d d/sub || framework_failure_
28 printf %4096s x > d/1
29 cp d/1 d/sub/2
66 du --block-size=$B -a d | sort -r -k2,2 > out || fail=1
68 du --block-size=$B -S d | sort -r -k2,2 >> out || fail=1
70 t2=$(stat --format=%b d/sub/2)
71 ts=$(stat --format=%b d/sub)
72 t1=$(stat --format=%b d/1)
79 $t2 d/sub/2
80 $s2 d/sub
[all …]
/coreutils/tests/readlink/
Dreadlink-fp-loop.sh29 ln -s d s || framework_failure_
30 mkdir d || framework_failure_
31 echo 2 > d/2 || framework_failure_
32 ln -s ../s/2 d/1 || framework_failure_
41 ln -sf ../s/1 d/2 || framework_failure_
51 ln -nsf ../s/3 d/2 || framework_failure_
52 ln -nsf ../p/4 d/3 || framework_failure_
53 ln -nsf ../p/5 d/4 || framework_failure_
54 ln -nsf ../p/6 d/5 || framework_failure_
55 ln -nsf ../p/7 d/6 || framework_failure_
[all …]
/coreutils/tests/
Dother-fs-tmpdir27 dot_mount_point=$(stat -c %d .)
28 for d in $CANDIDATE_TMP_DIRS; do
31 test -d "$d" || continue
33 d_mount_point=$(stat -L -c %d "$d")
39 if mkdir "$d/tmp$$" > /dev/null 2>&1; then
40 other_partition_tmpdir="$d/tmp$$"
/coreutils/tests/chmod/
Dsetgid.sh25 mkdir -m 755 d || framework_failure_
28 chmod g+s d 2> /dev/null && env -- test -g d ||
37 chgrp "$id_g" d && chmod g+s d && env -- test -g d && break
47 chmod $mode d || fail=1
60 chmod =2755 d || fail=1
Dinaccessible.sh22 mkdir -p d/e || framework_failure_
23 chmod 0 d/e d || framework_failure_
26 chmod u+rwx d d/e || fail=1
/coreutils/tests/rmdir/
Dfail-perm.sh23 mkdir d d/e d/e/f || framework_failure_
24 chmod a-w d || framework_failure_
30 returns_ 1 rmdir -p d d/e/f 2> /dev/null || fail=1
/coreutils/gl/lib/
Drand-isaac.c145 #define mix(a, b, c, d, e, f, g, h) \ argument
147 a ^= b << 11; d += a; \
149 c += d; c ^= d << 8; f += c; \
150 d += e; d ^= just (e) >> 16; g += d; \
158 #define mix(a, b, c, d, e, f, g, h) \ argument
163 d -= h; a ^= c << 15; c += d; \
164 e -= a; b ^= just (d) >> 14; d += e; \
166 g -= c; d ^= just (f) >> 17; f += g; \
167 h -= d; e ^= g << 14; g += h; \
173 #define ISAAC_MIX(s, a, b, c, d, e, f, g, h, seed) \ argument
[all …]
/coreutils/tests/cp/
Dlink-preserve.sh48 rm -rf a b c d; mkdir d; (cd d; touch a; ln -s a b)
49 cp --preserve=links -R -L d c || fail=1
56 rm -rf a b c d; mkdir d; (cd d; touch a; ln a b)
57 cp --preserve=links -R -L d c || fail=1
64 rm -rf a b c d; mkdir d; (cd d; touch a; ln a b)
65 cp -dR --no-preserve=links d c || fail=1
72 rm -rf a b c d
82 rm -rf a b c d
Dparent-perm-race.sh26 mkdir mode ownership d || framework_failure_
27 chmod g+s d 2>/dev/null # The cp test is valid either way.
39 timeout 10 cp --preserve=$attr -R --copy-contents --parents $attr d & pid=$!
48 ls_output=$(cat d/$attr/fifo) || fail=1
50 ownership,d???--[-S]--[-S]* | \
51 mode,d????-??-?* | \
52 mode,d??[-x]?w[-x]?-[-x]* )
Dcp-parents.sh28 mkdir -p a/b/c d e g
29 ln -s d/a sym
39 cp --verbose -a --parents a/b/c d > /dev/null 2>&1 || fail=1
40 test -d d/a/b/c || fail=1
44 returns_ 1 cp --parents f/g d 2>/dev/null || fail=1
45 test -d d/f && fail=1
48 chmod go=w d/a || framework_failure_
49 cp -a --parents d/a/b/c e || fail=1
51 p=$(ls -ld e/d|cut -b-10); case $p in drwxr-xr-x);; *) fail=1;; esac
52 p=$(ls -ld e/d/a|cut -b-10); case $p in drwx-w--w-);; *) fail=1;; esac
[all …]
Dcp-i.sh30 touch c d || framework_failure_
36 echo n | returns_ 1 cp -vi c d 2>/dev/null > out1 || fail=1
40 echo y | cp -vi c d 2>/dev/null > out2 || fail=1
44 echo y | cp -vni c d 2>/dev/null > out3 || fail=1
48 echo y | returns_ 1 cp -vin c d 2>/dev/null > out4 || fail=1
52 echo y | returns_ 1 cp -in c d 2>err4 > out4 || fail=1
57 echo y | cp -vfi c d 2>/dev/null > out5 || fail=1
61 echo n | returns_ 1 cp -vfn c d 2>/dev/null > out6 || fail=1
65 echo n | returns_ 1 cp -vnf c d 2>/dev/null > out7 || fail=1
69 returns_ 1 cp -bn c d 2>/dev/null || fail=1
/coreutils/tests/date/
Ddate-next-dow.pl31 my @d = localtime ($now);
33 my $wday = $d[6];
44 ['dow2', "-d $wday_str +%Y-%m-%d", {OUT => strftime("%Y-%m-%d", @d)}],
46 ['next-dow', "-d 'next $wday_str' +%Y-%m-%d",
47 {OUT => strftime("%Y-%m-%d", @d_week)}],
75 $d_post[7] == $d[7]
/coreutils/tests/ls/
Dstat-free-color.sh64 mkdir d || framework_failure_
67 strace -q -o log1 -e $stats ls -a --color=always d || fail=1
74 mkdir d/subdir \
75 && touch d/regf \
76 && ln d/regf d/hlink \
77 && ln -s regf d/slink \
78 && ln -s nowhere d/dangle \
82 strace -q -o log2 -e $stats ls --color=always d || fail=1
Dstat-dtype.sh30 mkdir -p c/d || framework_failure_
36 mkdir d || framework_failure_
37 ln -s / d/s || framework_failure_
38 chmod 600 d || framework_failure_
44 ls --file-type d > out || fail=1
Dstat-failed.sh26 mkdir d || framework_failure_
27 ln -s / d/s || framework_failure_
28 chmod 600 d || framework_failure_
31 returns_ 1 ls -Log d > out || fail=1
46 returns_ $LS_MINOR_PROBLEM ls --dired -l d > out || fail=1
/coreutils/tests/chgrp/
Drecurse.sh30 mkdir d e
31 touch d/dd e/ee
32 ln -s ../e d/s
35 chgrp -R $g2 d
39 chgrp -L -R $g2 d
43 chgrp -H -R $g1 d
46 ln -s d link
52 set _ $(ls -ln d/dd); g=$5; test "$g" = $g1 || fail=1
/coreutils/tests/mkdir/
Dp-acl.sh24 mkdir d || framework_failure_
25 setfacl -d -m group::rwx d || framework_failure_
28 mkdir --parents d/e || fail=1
29 ls_l=$(ls -ld d/e) || fail=1
31 d???rw[sx]*) ;;
/coreutils/tests/mv/
Ddup-source.sh27 reset_files() { rm -fr a b d; touch a; mkdir b d; }
33 $i a a d/ 2> out || fail=1
35 $i ./a a d/ 2>> out || fail=1
40 $i -a ./b b d/ 2>> out || fail=1
46 $i --backup=numbered a a d/ 2>> out || fail=1
50 returns_ 1 $i --backup a a d/ 2>> out || fail=1
66 returns_ 1 $i a a d/ 2> out || fail=1
69 returns_ 1 $i ./a a d/ 2>> out || fail=1
75 returns_ 1 $i ./b b d/ 2>> out || fail=1
Dtrailing-slash.sh33 rm -rf d e || framework_failure_
34 mkdir d || framework_failure_
36 $cmd $opt d e/ || fail=1
38 test -d d && fail=1
40 test -d d || fail=1
/coreutils/tests/misc/
Dselinux.sh28 mkdir d s1 s2 || framework_failure_
36 chcon $ctx f d p || skip_ "Failed to set context: $ctx"
39 for i in d f p; do
54 cp -r --preserve=all d f p s1 || fail=1
55 for i in d f p; do
60 mv d f p s2 || fail=1
61 for i in d f p; do

123456