blob: 40f6cb351a90c7c2c690ad4adca6ec069909edb3 (
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 "#!$(which 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
|