mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-30 01:47:56 +00:00
20 lines
619 B
Bash
20 lines
619 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Simple jobs that never fails
|
||
|
# Each should be taking 30-100s and be possible to run in parallel
|
||
|
# I.e.: No race conditions, no logins
|
||
|
cat <<'EOF' | sed -e 's/;$/; /;s/$SERVER1/'$SERVER1'/;s/$SERVER2/'$SERVER2'/' | stdout parallel -k -j4 -L1
|
||
|
echo '### Test race condition on 8 CPU (my laptop)';
|
||
|
seq 1 5000000 > /tmp/parallel_test;
|
||
|
seq 1 10 | parallel -k "cat /tmp/parallel_test | parallel --pipe --recend '' -k gzip >/dev/null; echo {}"
|
||
|
|
||
|
echo '**'
|
||
|
|
||
|
echo "### Test --tmpdir running full. bug #40733 was caused by this"
|
||
|
stdout parallel -j1 --tmpdir /run/shm cat /dev/zero ::: dummy
|
||
|
|
||
|
echo '**'
|
||
|
|
||
|
|
||
|
EOF
|