aboutsummaryrefslogtreecommitdiff
path: root/tests/killall.test
blob: 100ac7ca875c21345af0b0858ad9fda9d1c162e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

[ -f testing.sh ] && . testing.sh

#testing "name" "command" "result" "infile" "stdin"

echo "#!/bin/sh
yes > /dev/null" > toybox.killall.test.script
chmod a+x toybox.killall.test.script

./toybox.killall.test.script &
testing "script" "killall toybox.killall.test.script && echo killed ; pgrep -l toybox.killall.test.script || echo really" "killed\nreally\n" "" ""

rm -f toybox.killall.test.script