003 File Manager
Current Path:
/usr/src/bin/pkill/tests
usr
/
src
/
bin
/
pkill
/
tests
/
📁
..
📄
Makefile
(1.09 KB)
📄
Makefile.depend
(176 B)
📄
pgrep-F_test.sh
(367 B)
📄
pgrep-LF_test.sh
(638 B)
📄
pgrep-P_test.sh
(302 B)
📄
pgrep-U_test.sh
(569 B)
📄
pgrep-_g_test.sh
(570 B)
📄
pgrep-_s_test.sh
(345 B)
📄
pgrep-g_test.sh
(567 B)
📄
pgrep-i_test.sh
(348 B)
📄
pgrep-j_test.sh
(3.34 KB)
📄
pgrep-l_test.sh
(275 B)
📄
pgrep-n_test.sh
(318 B)
📄
pgrep-o_test.sh
(318 B)
📄
pgrep-q_test.sh
(585 B)
📄
pgrep-s_test.sh
(563 B)
📄
pgrep-t_test.sh
(629 B)
📄
pgrep-v_test.sh
(399 B)
📄
pgrep-x_test.sh
(656 B)
📄
pkill-F_test.sh
(333 B)
📄
pkill-LF_test.sh
(595 B)
📄
pkill-P_test.sh
(274 B)
📄
pkill-U_test.sh
(511 B)
📄
pkill-_g_test.sh
(512 B)
📄
pkill-g_test.sh
(509 B)
📄
pkill-i_test.sh
(319 B)
📄
pkill-j_test.sh
(3.04 KB)
📄
pkill-s_test.sh
(505 B)
📄
pkill-t_test.sh
(613 B)
📄
pkill-x_test.sh
(658 B)
Editing: pgrep-q_test.sh
#!/bin/sh # $FreeBSD$ base=`basename $0` echo "1..4" name="pgrep -q" sleep0=$(pwd)/sleep0.txt sleep1=$(pwd)/sleep1.txt ln -sf /bin/sleep $sleep0 $sleep0 5 & sleep 0.3 pid=$! out="`pgrep -q -f $sleep0 2>&1`" if [ $? -eq 0 ]; then echo "ok 1 - $name" else echo "not ok 1 - $name" fi if [ -z "${out}" ]; then echo "ok 2 - $name" else echo "not ok 2 - $name" fi out="`pgrep -q -f $sleep1 2>&1`" if [ $? -ne 0 ]; then echo "ok 3 - $name" else echo "not ok 3 - $name" fi if [ -z "${out}" ]; then echo "ok 4 - $name" else echo "not ok 4 - $name" fi kill $pid rm -f $sleep0 $sleep1
Upload File
Create Folder