parallel: Added test for --joblog

This commit is contained in:
Ole Tange 2011-06-12 01:43:34 +02:00
parent 780f000c92
commit be3dfd01de
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,15 @@
#!/bin/bash
echo '### Test --joblog with exitval'
parallel --joblog /tmp/parallel_test_joblog 'sleep {} && echo foo' ::: 100 2>/dev/null &
sleep 1
killall -6 sleep
grep -q 134 /tmp/parallel_test_joblog && echo OK
echo '### Test --joblog with signal'
parallel --joblog /tmp/parallel_test_joblog 'sleep {}' ::: 100 2>/dev/null &
sleep 1
killall -6 sleep
grep -q '[^0-9]6[^0-9]' /tmp/parallel_test_joblog && echo OK
rm /tmp/parallel_test_joblog

View file

@ -0,0 +1,4 @@
### Test --joblog with exitval
OK
### Test --joblog with signal
OK