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

25 lines
722 B
Bash
Raw Normal View History

#!/bin/bash
SERVER1=parallel-server3
SERVER2=parallel-server2
2010-11-13 13:57:39 +00:00
echo '### Test $PARALLEL - single line'
echo | PARALLEL=--number-of-cpus parallel
2012-02-20 00:48:28 +00:00
seq 1 2 | PARALLEL="-Sparallel\@$SERVER1 -Sssh\ -l\ parallel\ $SERVER2 -j1" parallel -kvv echo
2010-11-13 13:57:39 +00:00
echo '### Test $PARALLEL - multi line'
2012-02-20 00:48:28 +00:00
seq 1 2 | PARALLEL="-Sparallel\@$SERVER1
2010-11-13 13:57:39 +00:00
-Sssh\ -l\ parallel\ $SERVER2
-j1" parallel -kvv echo
2010-11-13 13:57:39 +00:00
echo '### Test ~/.parallel/config - single line'
2012-02-20 00:48:28 +00:00
echo "-Sparallel\@$SERVER1 -Sssh\ -l\ parallel\ $SERVER2 -j1" > ~/.parallel/config
2010-11-13 13:57:39 +00:00
seq 1 2 | parallel -kvv echo
echo '### Test ~/.parallel/config - multi line'
2012-02-20 00:48:28 +00:00
echo "-Sparallel\@$SERVER1
2010-11-13 13:57:39 +00:00
-Sssh\ -l\ parallel\ $SERVER2
-j1" > ~/.parallel/config
seq 1 2 | parallel -kvv echo
rm ~/.parallel/config