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

39 lines
1.1 KiB
Bash
Raw Normal View History

#!/bin/bash
# SPDX-FileCopyrightText: 2021 Ole Tange, http://ole.tange.dk and Free Software and Foundation, Inc.
#
# SPDX-License-Identifier: GPL-3.0-or-later
SERVER1=parallel-server1
SERVER2=parallel-server2
SERVER2=parallel-server3
SSHUSER1=vagrant
SSHUSER2=vagrant
SSHUSER3=vagrant
SSHLOGIN1=$SSHUSER1@$SERVER1
SSHLOGIN2=$SSHUSER2@$SERVER2
SSHLOGIN3=$SSHUSER3@$SERVER3
#SERVER1=parallel-server1
#SERVER2=parallel-server2
2010-11-13 13:57:39 +00:00
echo '### Test $PARALLEL - single line'
echo | PARALLEL=--number-of-cpus parallel
(echo 1; echo 1) | PARALLEL="-S$SSHLOGIN1 -Sssh\ -l\ $SSHUSER2\ $SERVER2 -j1" parallel -kv hostname\; echo | sort
2010-11-13 13:57:39 +00:00
echo '### Test $PARALLEL - multi line'
(echo 1; echo 1) | PARALLEL="-S$SSHLOGIN1
-Sssh\ -l\ $SSHUSER2\ $SERVER2
-j1" parallel -kv hostname\; echo | sort
2010-11-13 13:57:39 +00:00
echo '### Test ~/.parallel/config - single line'
echo "-S$SSHLOGIN1 -Sssh\ -l\ $SSHUSER2\ $SERVER2 -j1" > ~/.parallel/config
(echo 1; echo 1) | parallel -kv hostname\; echo | sort
2010-11-13 13:57:39 +00:00
echo '### Test ~/.parallel/config - multi line'
echo "-S$SSHLOGIN1
-Sssh\ -l\ $SSHUSER2\ $SERVER2
-j1" > ~/.parallel/config
(echo 1; echo 1) | parallel -kv hostname\; echo | sort
rm ~/.parallel/config