Home
last modified time | relevance | path

Searched refs:fail (Results 1 – 25 of 629) sorted by relevance

12345678910>>...26

/coreutils/tests/readlink/
Dcan-f.sh42 v=$(returns_ 1 readlink -e .) || fail=1
43 test -z "$v" || fail=1
46 cd "$pwd/$tmp" || fail=1
50 v=$(readlink -f "${p}regfile") || fail=1
51 test "$v" = "$my_pwd/$tmp/regfile" || fail=1
53 v=$(returns_ 1 readlink -f "${p}./regfile/") || fail=1
54 test -z "$v" || fail=1
56 v=$(returns_ 1 readlink -f "${p}regfile/more") || fail=1
57 test -z "$v" || fail=1
59 v=$(returns_ 1 readlink -f "${p}./regfile/more/") || fail=1
[all …]
Dcan-m.sh41 v=$(returns_ 1 readlink -e .) || fail=1
42 test -z "$v" || fail=1
45 cd "$pwd/$tmp" || fail=1
49 v=$(readlink -m "${p}regfile") || fail=1
50 test "$v" = "$my_pwd/$tmp/regfile" || fail=1
52 v=$(readlink -m "${p}./regfile/") || fail=1
53 test "$v" = "$my_pwd/$tmp/regfile" || fail=1
55 v=$(readlink -m "${p}regfile/more") || fail=1
56 test "$v" = "$my_pwd/$tmp/regfile/more" || fail=1
58 v=$(readlink -m "${p}./regfile/more/") || fail=1
[all …]
Dcan-e.sh41 v=$(returns_ 1 readlink -e .) || fail=1
42 test -z "$v" || fail=1
45 cd "$pwd/$tmp" || fail=1
49 v=$(readlink -e "${p}regfile") || fail=1
50 test "$v" = "$my_pwd/$tmp/regfile" || fail=1
52 v=$(returns_ 1 readlink -e "${p}./regfile/") || fail=1
53 test -z "$v" || fail=1
55 v=$(readlink -e "${p}subdir") || fail=1
56 test "$v" = "$my_pwd/$tmp/subdir" || fail=1
58 v=$(readlink -e "${p}./subdir/") || fail=1
[all …]
/coreutils/tests/du/
Dthreshold.sh72 du --threshold=SIZE a > out 2>&1 && fail=1
73 compare exp out || fail=1
78 du -t SIZE a > out 2>&1 && fail=1
79 compare exp out || fail=1
85 du --threshold=-0 a > out 2>&1 && fail=1
86 compare exp out || fail=1
88 du -t -0 a > out 2>&1 && fail=1
89 compare exp out || fail=1
91 du -t-0 a > out 2>&1 && fail=1
92 compare exp out || fail=1
[all …]
Dinodes.sh26 du --inodes d > out 2>err || fail=1
27 compare exp out || fail=1
28 compare /dev/null err || fail=1
34 du --inodes d > out 2>err || fail=1
35 compare exp out || fail=1
36 compare /dev/null err || fail=1
40 du --inodes d > out 2>err || fail=1
41 compare exp out || fail=1
42 compare /dev/null err || fail=1
46 du --inodes -l d > out 2>err || fail=1
[all …]
/coreutils/tests/tr/
Dtr-case-class.sh25 tr '[:lower:]' '0-9' > out || fail=1
26 compare exp out || fail=1
28 tr '[:lower:][:lower:]' '[:upper:]0-9' > out || fail=1
29 compare exp out || fail=1
32 returns_ 1 tr 'A-Z[:lower:]' 'a-y[:upper:]' </dev/null || fail=1
33 returns_ 1 tr '[:upper:][:lower:]' 'a-y[:upper:]' </dev/null || fail=1
34 returns_ 1 tr 'A-Y[:lower:]' 'a-z[:upper:]' </dev/null || fail=1
35 returns_ 1 tr 'A-Z[:lower:]' '[:lower:][:upper:]' </dev/null || fail=1
36 returns_ 1 tr 'A-Z[:lower:]' '[:lower:]A-Z' </dev/null || fail=1
37 tr '[:upper:][:lower:]' 'a-z[:upper:]' < /dev/null || fail=1
[all …]
/coreutils/tests/misc/
Dkill.sh23 returns_ 1 env kill || fail=1
24 returns_ 1 env kill -TERM || fail=1
27 returns_ 1 env kill -l -l || fail=1
28 returns_ 1 env kill -l -t || fail=1
29 returns_ 1 env kill -l -s 1 || fail=1
30 returns_ 1 env kill -t -s 1 || fail=1
33 returns_ 1 env kill -0 no_pid || fail=1
34 env kill -0 $$ || fail=1
35 env kill -s0 $$ || fail=1
36 env kill -n0 $$ || fail=1 # bash compat
[all …]
Drealpath.sh43 realpath -Pqz . >/dev/null || fail=1
45 returns_ 1 realpath >/dev/null || fail=1
46 returns_ 1 realpath --relative-base . --relative-to . || fail=1
47 returns_ 1 realpath --relative-base . || fail=1
50 returns_ 1 realpath -e --relative-to=dir1/f --relative-base=. . || fail=1
51 realpath -e --relative-to=dir1/ --relative-base=. . || fail=1
54 returns_ 1 realpath -m '' || fail=1
55 returns_ 1 realpath --relative-base= --relative-to=. . || fail=1
59 test "$(realpath ldir2/..)" = "$this/dir1" || fail=1
60 test "$(realpath -L ldir2/..)" = "$this" || fail=1
[all …]
Dclose-stdout.sh29 cp a b >&- || fail=1
30 test -f b || fail=1
31 chmod o-w . >&- || fail=1
32 ln a c >&- || fail=1
33 rm c >&- || fail=1
34 mkdir d >&- || fail=1
35 mv d e >&- || fail=1
36 rmdir e >&- || fail=1
37 touch e >&- || fail=1
38 sleep 0 >&- || fail=1
[all …]
/coreutils/tests/tail/
Dretry.sh48 tail --retry file > out 2>&1 || fail=1
49 [ "$(countlines_)" = 1 ] || { cat out; fail=1; }
50 grep -F 'tail: warning: --retry ignored' out || { cat out; fail=1; }
54 returns_ 1 tail --retry missing > out 2>&1 || fail=1
55 [ "$(countlines_)" = 2 ] || { cat out; fail=1; }
56 grep -F 'tail: warning: --retry ignored' out || { cat out; fail=1; }
67 retry_delay_ wait4lines_ .1 6 1 || { cat out; fail=1; }
70 retry_delay_ wait4lines_ .1 6 3 || { cat out; fail=1; }
73 [ "$(countlines_)" = 3 ] || { fail=1; cat out; }
74 grep -F 'cannot open' out || { fail=1; cat out; }
[all …]
/coreutils/tests/env/
Denv.sh35 env - > out || fail=1
36 compare /dev/null out || fail=1
37 env -i > out || fail=1
38 compare /dev/null out || fail=1
39 env -u a -i -u a -- > out || fail=1
40 compare /dev/null out || fail=1
41 env -i -- a=b > out || fail=1
43 compare exp out || fail=1
46 returns_ 125 env --- || fail=1 # unknown option
47 returns_ 125 env -u || fail=1 # missing option argument
[all …]
/coreutils/tests/install/
Dbasic-1.sh30 ginstall $file $dir || fail=1
32 test -f $file || fail=1
34 test -f $dir/$file || fail=1
46 cp "$just_built_dd" . || fail=1
47 cp $dd $dd2 || fail=1
59 ginstall $strip -c -m 555 $dd $dir || fail=1
61 test -f $dd || fail=1
65 test "$mode" = -r-xr-xr-x || fail=1
68 ginstall -d . || fail=1
69 ginstall -d newdir || fail=1
[all …]
Dinstall-C-root.sh38 ginstall -Cv -o$u1 -g$g1 a b > out || fail=1
39 compare out out_installed_first || fail=1
42 ginstall -Cv -o$u1 -g$g1 a b > out || fail=1
43 compare out out_empty || fail=1
46 ginstall -v -o$u1 -g$g1 a b > out || fail=1
47 compare out out_installed_second || fail=1
50 ginstall -Cv -o$u2 -g$g1 a b > out || fail=1
51 compare out out_installed_second || fail=1
52 ginstall -Cv -o$u2 -g$g1 a b > out || fail=1
53 compare out out_empty || fail=1
[all …]
Dinstall-C.sh60 ginstall -Cv -m$mode1 a b > out || fail=1
61 compare out out_installed_first || fail=1
64 ginstall -Cv -m$mode1 a b > out || fail=1
65 compare out out_empty || fail=1
68 ginstall -v --compare -m$mode1 a b > out || fail=1
69 compare out out_empty || fail=1
72 ginstall -v -m$mode1 a b > out || fail=1
73 compare out out_installed_second || fail=1
76 ginstall -Cv -m$mode3 a b > out || fail=1
77 compare out out_installed_second || fail=1
[all …]
/coreutils/tests/split/
Db-chunk.sh24 split -n 10 /dev/null || fail=1
25 test "$(stat -c %s x* | uniq -c | sed 's/^ *//; s/ /x/')" = "10x0" || fail=1
33 split -n 4 abc || fail=1
34 compare exp-a xaa || fail=1
35 compare exp-b xab || fail=1
36 compare exp-c xac || fail=1
37 compare /dev/null xad || fail=1
38 test ! -f xae || fail=1
40 split -n 2 abc || fail=1
41 compare exp-ab xaa || fail=1
[all …]
Dfail.sh26 split -a 0 in 2> /dev/null || fail=1
27 returns_ 1 split -b 0 in 2> /dev/null || fail=1
28 returns_ 1 split -C 0 in 2> /dev/null || fail=1
29 returns_ 1 split -l 0 in 2> /dev/null || fail=1
30 returns_ 1 split -n 0 in 2> /dev/null || fail=1
31 returns_ 1 split -n 1/0 in 2> /dev/null || fail=1
32 returns_ 1 split -n 0/1 in 2> /dev/null || fail=1
33 returns_ 1 split -n 2/1 in 2> /dev/null || fail=1
36 rm -f x?? || fail=1
37 echo x | split -C 1 || fail=1
[all …]
Dr-chunk.sh24 split -n r/10 /dev/null || fail=1
25 test "$(stat -c %s x* | uniq -c | sed 's/^ *//; s/ /x/')" = "10x0" || fail=1
29 split -e -n r/10 /dev/null || fail=1
30 stat x?? 2>/dev/null && fail=1
34 split -n r/3 in > out || fail=1
35 compare /dev/null out || fail=1
37 split -n r/1/3 in > r1 || fail=1
38 split -n r/2/3 in > r2 || fail=1
39 split -n r/3/3 in > r3 || fail=1
45 compare exp-1 xaa || fail=1
[all …]
/coreutils/tests/shuf/
Dshuf.sh25 shuf in >out || fail=1
30 compare in out > /dev/null && { fail=1; echo "not random?" 1>&2; }
34 compare in out1 || { fail=1; echo "not a permutation" 1>&2; }
37 shuf -i 1-100 > out || fail=1
38 compare in out > /dev/null && { fail=1; echo "not random?" 1>&2; }
40 compare in out1 || { fail=1; echo "not a permutation" 1>&2; }
43 shuf -r -n 0 in <&- >out || fail=1
44 compare /dev/null out || fail=1
48 test "$t" = 'a b c d e' || { fail=1; echo "not a permutation" 1>&2; }
52 test $? -eq 1 || fail=1
[all …]
/coreutils/tests/chroot/
Dchroot-credentials.sh37 chroot --userspec=$NON_ROOT_UID: / true || fail=1
41 returns_ $EXIT_CANCELED chroot --groups="$g" / id -G >invalid || fail=1
42 compare /dev/null invalid || fail=1
46 test $(chroot / whoami) = "$root" || fail=1
47 test "$(groups)" = "$(chroot / groups)" || fail=1
53 test "$whoami_after_chroot" != "$root" || fail=1
58 "$NON_ROOT_GID $(id -G)" || fail=1
61 Exit $fail
73 test "$id_G_after_chroot" = $NON_ROOT_GID || fail=1
77 "$(id -G $NON_ROOT_USERNAME | num_sort)" || fail=1
[all …]
/coreutils/tests/chgrp/
Dbasic.sh29 chgrp $g1 f || fail=1
30 chgrp $g2 f || fail=1
31 chgrp $g2 f2 || fail=1
32 chgrp -R $g1 d || fail=1
36 chgrp $g1 f || fail=1 ; test $(stat --p=%g f) = $g1 || fail=1
37 chgrp $g2 f || fail=1 ; test $(stat --p=%g f) = $g2 || fail=1
38 chgrp $g2 f || fail=1 ; test $(stat --p=%g f) = $g2 || fail=1
39 chgrp '' f || fail=1 ; test $(stat --p=%g f) = $g2 || fail=1
40 chgrp $g1 f || fail=1 ; test $(stat --p=%g f) = $g1 || fail=1
41 chgrp $g1 f || fail=1 ; test $(stat --p=%g f) = $g1 || fail=1
[all …]
/coreutils/tests/stat/
Dstat-nanoseconds.sh32 test "$(stat -c %X k)" = 67413 || fail=1
33 test "$(stat -c %.X k)" = 67413.023456789 || fail=1
34 test "$(stat -c %.1X k)" = 67413.0 || fail=1
35 test "$(stat -c %.3X k)" = 67413.023 || fail=1
36 test "$(stat -c %.6X k)" = 67413.023456 || fail=1
37 test "$(stat -c %.9X k)" = 67413.023456789 || fail=1
38 test "$(stat -c %13.6X k)" = ' 67413.023456' || fail=1
39 test "$(stat -c %013.6X k)" = 067413.023456 || fail=1
40 test "$(stat -c %-13.6X k)" = '67413.023456 ' || fail=1
41 test "$(stat -c %18.10X k)" = ' 67413.0234567890' || fail=1
[all …]
/coreutils/tests/mv/
Dchildproof.sh31 returns_ 1 cp a/f b/f c 2> /dev/null || fail=1
32 test -f a/f || fail=1
33 test -f b/f || fail=1
34 test -f c/f || fail=1
35 test "$(cat c/f)" = a || fail=1
39 cp --backup=numbered a/f b/f c || fail=1
40 test -f a/f || fail=1
41 test -f b/f || fail=1
42 test -f c/f || fail=1
43 test -f c/f.~1~ || fail=1
[all …]
/coreutils/tests/seq/
Dseq-precision.sh25 seq 999999 inf | head -n2 > out || fail=1
27 compare exp out || fail=1
34 seq $n1 $n2 > out || fail=1
36 compare exp out || fail=1
39 seq 0xF423F 0xF4240 > out || fail=1
41 compare exp out || fail=1
44 seq 1 .1 inf | head -n2 > out || fail=1
46 compare exp out || fail=1
49 seq inf inf | head -n2 | uniq > out || fail=1
50 test "$(wc -l < out)" = 1 || fail=1
[all …]
/coreutils/tests/touch/
Dtrailing-slash.sh32 returns_ 1 touch no-file/ || fail=1
33 returns_ 1 touch file/ || fail=1
34 returns_ 1 touch dangling/ || fail=1
35 returns_ 1 touch loop/ || fail=1
37 returns_ 1 touch link1/ || fail=1
39 touch dir/ || fail=1
42 touch -c no-file/ || fail=1
43 returns_ 1 touch -c file/ || fail=1
44 touch -c dangling/ || fail=1
45 returns_ 1 touch -c loop/ || fail=1
[all …]
/coreutils/tests/rm/
Dinteractive-once.sh34 rm -I file1-* < in-n >> out 2>> err || fail=1
36 test -f file1-1 && fail=1
47 rm ---presume-input-tty -I file1-* < in-n >> out 2>> err || fail=1
50 test -f file1-1 || fail=1
57 rm -I file2-* < in-n >> out 2>> err || fail=1
59 test -f file2-1 && fail=1
60 test -f file2-2 && fail=1
61 test -f file2-3 && fail=1
64 rm -I file3-* < in-n >> out 2>> err || fail=1
66 test -f file3-1 || fail=1
[all …]

12345678910>>...26