parallel/unittest/tests-to-run/test20.sh
Ole Tange 59cb631264 Bugfix: --keeporder with -j100% mixed up order of first job
parallel: Unittest for --retries. Passes unittest.
2010-09-21 22:00:30 +02:00

16 lines
401 B
Bash

#!/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 | parallel --use-cpus-instead-of-cores -j100% sleep) && echo CPUs done &
(seq 1 4 | parallel -j100% sleep) && echo cores done &
echo 'Cores should complete first on machines with less than 4 physical CPUs'
wait