/coreutils/tests/rm/ |
D | interactive-once.sh | 27 rm -f out err || framework_failure_ 33 echo 'one file, no recursion' > err || framework_failure_ 34 rm -I file1-* < in-n >> out 2>> err || fail=1 35 echo . >> err || framework_failure_ 39 echo 'one file, read only, answer no' >> err || framework_failure_ 47 rm ---presume-input-tty -I file1-* < in-n >> out 2>> err || fail=1 48 echo . >> err || framework_failure_ 53 echo '.' >> err || framework_failure_ 56 echo 'three files, no recursion' >> err || framework_failure_ 57 rm -I file2-* < in-n >> out 2>> err || fail=1 [all …]
|
D | interactive-always.sh | 27 rm -f out err || framework_failure_ 33 echo 'no WHEN' > err || framework_failure_ 34 rm -R --interactive file1-* < in >> out 2>> err || fail=1 35 echo . >> err || framework_failure_ 39 echo 'WHEN=never' >> err || framework_failure_ 40 rm -R --interactive=never file2-* < in >> out 2>> err || fail=1 41 echo . >> err || framework_failure_ 45 echo 'WHEN=once' >> err || framework_failure_ 46 rm -R --interactive=once file3-* < in >> out 2>> err || fail=1 47 echo . >> err || framework_failure_ [all …]
|
D | r-root.sh | 153 rm < /dev/null > out 2> err.t 157 rm -rv --one-file-system $* < /dev/null > out 2> err.t 162 clean_rm_err_ < err.t > err || ret=$? 184 compare /dev/null err || skip=1 187 && { cat out; cat err; \ 223 compare exp err || fail=1 227 test $fail = 1 && { cat out; cat err; Exit $fail; } 236 compare exp_opt err || fail=1 267 compare exp err || fail=1 271 test $fail = 1 && { cat out; cat err; Exit $fail; } [all …]
|
D | d-3.sh | 25 echo "y" | rm -i -d --verbose d > out 2> out.err || fail=1 28 > exp.err || framework_failure_ 35 compare exp.err out.err || fail=1
|
/coreutils/tests/misc/ |
D | tee.sh | 37 tee - <sample >out 2>err || fail=1 40 compare /dev/null err || fail=1 44 yes | returns_ 1 timeout 10 tee /dev/full 2>err >/dev/full || fail=1 47 test $(wc -l < err) = 2 || { cat err; fail=1; } 53 returns_ 1 tee /dev/full out2 2>err >out1 <multi_read || fail=1 57 test $(wc -l < err) = 1 || { cat err; fail=1; } 59 returns_ 1 tee out1 out2 2>err >/dev/full <multi_read || fail=1 63 test $(wc -l < err) = 1 || { cat err; fail=1; } 76 { timeout 10 tee -p 2>err && touch tee.exited; } | : 77 test $(wc -l < err) = 0 || { cat err; fail=1; } [all …]
|
D | usage_vs_getopt.sh | 33 returns_ $rcexp $prg --$o >/dev/null 2> err || fail=1 34 grep -F "$o" err || framework_failure_ 35 sed -n "1s/--$o/OPT/p" < err > pat || framework_failure_ 38 returns_ $rcexp $prg -/ >/dev/null 2> err || fail=1 39 grep " '*/'*" err || framework_failure_ 42 sed -n "1s/'\/'/'OPT'/p" < err >> pat || framework_failure_
|
/coreutils/tests/du/ |
D | inodes.sh | 26 du --inodes d > out 2>err || fail=1 28 compare /dev/null err || fail=1 34 du --inodes d > out 2>err || fail=1 36 compare /dev/null err || fail=1 40 du --inodes d > out 2>err || fail=1 42 compare /dev/null err || fail=1 46 du --inodes -l d > out 2>err || fail=1 48 compare /dev/null err || fail=1 52 du --inodes -s d > out 2>err || fail=1 54 compare /dev/null err || fail=1 [all …]
|
D | files0-from-dir.sh | 31 $prog --files0-from=dir > /dev/null 2>err && fail=1 35 sed "s/dir:.*/dir:/" err > k; mv k err 36 compare exp err || fail=1
|
/coreutils/tests/dd/ |
D | skip-seek-past-file.sh | 33 dd bs=1 skip=5 count=0 status=noxfer < file 2> err || fail=1 34 compare skip_err err || fail=1 37 dd bs=3 skip=2 count=0 status=noxfer < file 2> err || fail=1 38 compare skip_err err || fail=1 41 cat file | dd bs=1 skip=5 count=0 status=noxfer 2> err || fail=1 42 compare skip_err err || fail=1 45 cat file | dd bs=3 skip=2 count=0 status=noxfer 2> err || fail=1 46 compare skip_err err || fail=1 51 dd bs=1 skip=4 status=noxfer 2> err) < file || fail=1 52 compare skip_err err || fail=1 [all …]
|
D | reblock.sh | 49 dd ibs=3 obs=3 if=dd.fifo > out 2> err& 52 sed 's/,.*//' err > k && mv k err 53 compare exp-reblock err 63 dd bs=3 ibs=1 obs=1 if=dd.fifo > out 2> err& 66 sed 's/,.*//' err > k && mv k err 67 compare exp-no-reblock err
|
D | stats.sh | 41 > err || framework_failure_ 45 dd iflag=fullblock if=/dev/zero of=fifo count=50 bs=5000000 2>err & pid=$! 65 grep '250000000 bytes (250 MB, 238 MiB) copied' err || { cat err; fail=1; } 70 { sleep $1; echo 1; } | dd bs=1 status=progress of=/dev/null 2>err 72 grep 'byte copied' err 74 retry_delay_ progress_output 1 4 || { cat err; fail=1; }
|
D | misc.sh | 35 dd status=none if=$tmp_in of=/dev/null 2> err || fail=1 36 compare /dev/null err || fail=1 37 dd status=none if=$tmp_in skip=2 of=/dev/null 2> err || fail=1 38 compare /dev/null err || fail=1 40 dd status=noxfer status=none if=$tmp_in of=/dev/null 2> err || fail=1 41 compare /dev/null err || fail=1 43 dd status=none status=noxfer if=$tmp_in of=/dev/null 2> err || fail=1 44 compare /dev/null err && fail=1 102 | dd bs=4 status=noxfer iflag=fullblock >out 2>err || fail=1 107 compare err_ok err || fail=1 [all …]
|
/coreutils/tests/sort/ |
D | sort-merge-fdlimit.sh | 23 mkdir in err || framework_failure_ 39 && sort -m --batch-size=16 in/* 2>err/merge-default-err \ 40 || ! grep "open failed" err/merge-default-err) || fail=1 48 && sort -mR $randsource --batch-size=16 in/* 2>err/merge-random-err \ 49 || ! grep "open failed" err/merge-random-err) || fail=1
|
/coreutils/tests/cp/ |
D | cp-mv-enotsup-xattr.sh | 70 cp -a xattr/a noxattr/ 2>err || fail=1 72 compare /dev/null err || fail=1 74 rm -f err noxattr/a 77 cp --preserve=all xattr/a noxattr/ 2>err || fail=1 79 compare /dev/null err || fail=1 82 cp --preserve=all xattr/a noxattr/ 2>err || fail=1 84 compare /dev/null err || fail=1 86 rm -f err noxattr/a 89 cp -a --preserve=xattr xattr/a noxattr/ 2>err && fail=1 100 compare exp err || fail=1 [all …]
|
D | thru-dangling.sh | 26 > exp-err || framework_failure_ 31 returns_ 1 cp $opt f dangle > err 2>&1 || fail=1 32 compare exp-err err || fail=1 46 cp -f f loop > err 2>&1 || fail=1 47 compare /dev/null err || fail=1
|
/coreutils/tests/rmdir/ |
D | symlink-errors.sh | 30 returns_ 1 rmdir fl/ 2> err || fail=1 33 compare exp err || fail=1 39 returns_ 1 rmdir -p sl/dir2 2> err || fail=1 42 compare exp err || fail=1 56 returns_ 1 rmdir sl/ 2> err || fail=1 58 compare exp err || fail=1 61 returns_ 1 rmdir dl/ 2> err || fail=1 63 compare exp err || fail=1
|
/coreutils/tests/csplit/ |
D | csplit.sh | 53 csplit in 1 1 > out 2> err || fail=1 63 compare experr err || fail=1 64 rm -f in out exp err experr 69 csplit -b '%0#6.3x' in 1 > out 2> err || fail=1 76 compare experr err || fail=1 79 rm -f in out exp err experr xx* 83 csplit in 0 > out 2> err && fail=1 84 csplit in 2 1 > out 2>> err && fail=1 85 csplit in 3 3 > out 2>> err && fail=1 92 compare experr err || fail=1 [all …]
|
/coreutils/tests/mv/ |
D | trailing-slash.sh | 56 > expected-err 58 cp b no-such/ 2> err 61 sed 's/No such file or directory/Not a directory/' err > k && mv k err 63 compare expected-err err || fail=1
|
/coreutils/tests/nice/ |
D | nice.sh | 75 nice -n -1 true 2> err || fail=1 76 compare /dev/null err && fail=1 77 mv err exp || framework_failure_ 78 nice --1 true 2> err || fail=1 79 compare exp err || fail=1 87 nice -n -1 nice 2> err || fail=1 88 compare /dev/null err || fail=1
|
/coreutils/src/ |
D | selinux.c | 92 int err = errno; in computecon() local 96 errno = err; in computecon() 158 int err = errno; in defaultcon() local 164 errno = err; in defaultcon() 199 int err = errno; in restorecon_private() local 201 errno = err; in restorecon_private() 261 int err = errno; in restorecon_private() local 268 errno = err; in restorecon_private() 304 int err = errno; in restorecon() local 306 errno = err; in restorecon() [all …]
|
D | force-link.c | 110 int err; in force_linkat() local 113 err = errno; in force_linkat() 116 err = renameat (dstdir, dsttmp, dstdir, dstname) == 0 ? -1 : errno; in force_linkat() 125 return err; in force_linkat() 165 int err; in force_symlinkat() local 168 err = errno; in force_symlinkat() 171 err = errno; in force_symlinkat() 178 err = -1; in force_symlinkat() 183 return err; in force_symlinkat()
|
/coreutils/tests/tail/ |
D | wait.sh | 44 returns_ 124 timeout .1 tail $fastpoll -f $mode here 2>tail.err || fail=1 48 returns_ 124 timeout .1 tail $fastpoll -F $mode here 2>>tail.err || fail=1 56 grep -Ev "$inotify_failed_re" tail.err > x 57 mv x tail.err 58 compare /dev/null tail.err || fail=1 59 >tail.err 69 > k && > tail.out && > tail.err || framework_failure_ 70 tail $fastpoll -F $mode k >tail.out 2>tail.err & pid=$! 83 && ! grep -E "$inotify_failed_re" tail.err >/dev/null
|
D | follow-stdin.sh | 44 tail $mode -f $fastpoll < in > out 2> err & pid=$! 51 compare /dev/null err || fail=1 66 sed 's/\(tail:.*\):.*/\1/' errt > err || framework_failure_ 67 compare exp err || fail=1 74 returns_ 124 timeout 0.1 tail -f $input 2>err || fail=1 75 compare /dev/null err || fail=1
|
/coreutils/tests/touch/ |
D | no-dereference.sh | 29 returns_ 1 touch -h no-file 2> err || fail=1 30 compare /dev/null err && fail=1 31 touch -h -c no-file 2> err || fail=1 32 compare /dev/null err || fail=1 49 touch -h dangling 2> err 52 compare /dev/null err || fail=1;; 53 1) grep 'Function not implemented' err \
|
/coreutils/tests/printf/ |
D | printf-mb.sh | 30 LC_ALL=$f $prog '%04x\n' '"á' >>out 2>>err 32 LC_ALL=$f $prog '%04x\n' "'$($prog '\xe1')" >>out 2>>err 34 LC_ALL=C $prog '%04x\n' "'$($prog '\xe1')" >>out 2>>err 36 LC_ALL=$f $prog '%04x\n' '"á=' >>out 2>>err 38 LC_ALL=$f $prog '%04x\n' "'$($prog '\xe1')=" >>out 2>>err 55 sed "s/printf:.*=.*/$C_WARNING/" < err > c_err || framework_failure_
|