• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3[ -f testing.sh ] && . testing.sh
4
5#testing "name" "command" "result" "infile" "stdin"
6
7echo "#!/bin/sh
8yes > /dev/null" > toybox.killall.test.script
9chmod a+x toybox.killall.test.script
10
11./toybox.killall.test.script &
12testing "script" "killall toybox.killall.test.script && echo killed ; pgrep -l toybox.killall.test.script || echo really" "killed\nreally\n" "" ""
13
14rm -f toybox.killall.test.script
15