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

26 lines
826 B
Bash
Raw Normal View History

#!/bin/bash
echo '### Test --number-of-cpus'
parallel --number-of-cpus
echo '### Test --number-of-cores'
parallel --number-of-cores
echo '### Test --use-cpus-instead-of-cores'
(seq 1 4 | stdout parallel --use-cpus-instead-of-cores -j100% sleep) && echo CPUs done &
(seq 1 4 | stdout parallel -j100% sleep) && echo cores done &
echo 'Cores should complete first on machines with less than 4 physical CPUs'
wait
2011-09-24 00:16:06 +00:00
echo '### Test --tag ::: a ::: b'
stdout parallel -k --tag -j1 echo stderr-{.} ">&2;" echo stdout-{} ::: a ::: b
2011-09-24 00:16:06 +00:00
echo '### Test --tag ::: a b'
stdout parallel -k --tag -j1 echo stderr-{.} ">&2;" echo stdout-{} ::: a b
echo '### Test --tag -X ::: a b'
stdout parallel -k --tag -X -j1 echo stderr-{.} ">&2;" echo stdout-{} ::: a b
echo '### Test bash redirection <()'
parallel 'cat <(echo {}); echo b' ::: a