2013-04-08 19:17:59 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2013-04-21 21:33:02 +00:00
|
|
|
P="scosysv centos dragonfly netbsd freebsd solaris openbsd debian aix hpux qnx irix suse minix openindiana mandriva unixware miros raspberrypi hurd ultrix ubuntu redhat"
|
2013-05-26 06:26:18 +00:00
|
|
|
P="scosysv centos dragonfly netbsd freebsd solaris openbsd debian aix hpux qnx irix suse minix openindiana mandriva unixware raspberrypi hurd ultrix ubuntu"
|
2013-04-08 19:17:59 +00:00
|
|
|
#P="scosysv hpux qnx irix openindiana ultrix"
|
|
|
|
POLAR=`parallel echo {}.polarhome.com ::: $P`
|
|
|
|
|
|
|
|
echo '### Tests on polarhome machines'
|
2013-04-11 19:55:33 +00:00
|
|
|
echo 'Setup on polarhome machines'
|
2013-05-21 22:29:41 +00:00
|
|
|
stdout parallel -kj0 ssh {} mkdir -p bin ::: $POLAR >/dev/null 2>/dev/null &
|
2013-04-08 19:17:59 +00:00
|
|
|
# scp to each polarhome machine do not work. From redhat it works.
|
2013-04-11 19:55:33 +00:00
|
|
|
stdout rsync -a `which parallel` redhat.polarhome.com:bin/
|
|
|
|
stdout ssh redhat.polarhome.com \
|
2013-04-08 19:17:59 +00:00
|
|
|
chmod 755 bin/parallel\; \
|
2013-05-21 22:29:41 +00:00
|
|
|
bin/parallel --tag -kj0 -v --delay 0.2 ssh {} rm -f bin/parallel\\\;scp bin/parallel {}:bin/ ::: $POLAR | sort
|
2013-04-08 19:17:59 +00:00
|
|
|
# Now test
|
2013-04-11 19:55:33 +00:00
|
|
|
echo 'Run the test on polarhome machines'
|
2013-05-21 22:29:41 +00:00
|
|
|
stdout parallel --argsep // -k --tag ssh {} bin/parallel -k echo Works on ::: {} // $POLAR | sort
|
2013-04-08 19:17:59 +00:00
|
|
|
|