parallel/unittest/tests-to-run/test13.sh
Ole Tange 3fa2a4a8d4 Implemented automake
Prepared for name change to 'par'
2010-04-18 16:18:31 +02:00

12 lines
241 B
Bash

#!/bin/bash
PAR=parallel
# Test -k
ulimit -n 50
(echo "sleep 3; echo begin"; seq 1 30 | $PAR -kq echo "sleep 1; echo {}"; echo "echo end") \
| $PAR -k -j0
# Test SIGTERM
(sleep 5; killall $PAR -TERM) & seq 1 100 | $PAR -k sleep 3';' echo