parallel/testsuite/tests-to-run/test62.sh

14 lines
481 B
Bash
Raw Normal View History

2011-06-11 23:43:34 +00:00
#!/bin/bash
echo '### Test --joblog with exitval and Test --joblog with signal'
parallel --joblog /tmp/parallel_joblog_exitval 'sleep {} && echo foo' ::: 100 2>/dev/null &
parallel --joblog /tmp/parallel_joblog_signal 'sleep {}' ::: 100 2>/dev/null &
sleep 0.5
2011-06-11 23:43:34 +00:00
killall -6 sleep
sleep 0.1
grep -q 134 /tmp/parallel_joblog_exitval && echo exitval OK
grep -q '[^0-9]6[^0-9]' /tmp/parallel_joblog_signal && echo signal OK
2011-06-11 23:43:34 +00:00
rm /tmp/parallel_joblog_exitval /tmp/parallel_joblog_signal
2011-06-11 23:43:34 +00:00