2013-04-08 19:17:59 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2013-11-22 17:24:09 +00:00
|
|
|
P_ALL="vax freebsd solaris openbsd netbsd debian alpha aix redhat hpux ultrix qnx irix tru64 openindiana suse openstep mandriva ubuntu scosysv unixware dragonfly centos miros hurd raspberrypi"
|
2013-07-19 17:13:00 +00:00
|
|
|
P_NOTWORKING="vax alpha openstep"
|
2013-11-22 17:24:09 +00:00
|
|
|
P_NOTWORKING_YET="ultrix tru64 irix minix raspberrypi"
|
2013-07-19 17:13:00 +00:00
|
|
|
|
2013-11-22 17:24:09 +00:00
|
|
|
P_WORKING="freebsd solaris openbsd netbsd debian aix redhat hpux qnx openindiana suse mandriva ubuntu scosysv unixware dragonfly centos miros hurd"
|
2013-07-19 17:13:00 +00:00
|
|
|
|
|
|
|
P="$P_WORKING"
|
|
|
|
POLAR=`parallel -k echo {}.polarhome.com ::: $P`
|
|
|
|
# Avoid the stupid /etc/issue.net banner at Polarhome
|
2013-04-08 19:17:59 +00:00
|
|
|
|
|
|
|
echo '### Tests on polarhome machines'
|
2013-04-11 19:55:33 +00:00
|
|
|
echo 'Setup on polarhome machines'
|
2013-07-19 17:13:00 +00:00
|
|
|
stdout parallel -kj0 ssh -oLogLevel=quiet {} mkdir -p bin ::: $POLAR &
|
2013-12-19 01:19:19 +00:00
|
|
|
|
|
|
|
copy_and_test() {
|
2013-07-19 17:13:00 +00:00
|
|
|
H=$1
|
2013-12-19 01:19:19 +00:00
|
|
|
# scp to each polarhome machine do not work. Use cat
|
2013-07-19 17:13:00 +00:00
|
|
|
# Avoid the stupid /etc/issue.net banner with -oLogLevel=quiet
|
2013-12-19 01:19:19 +00:00
|
|
|
echo '### Run the test on '$H
|
|
|
|
cat `which parallel` | ssh -oLogLevel=quiet $H 'cat > bin/p.tmp && chmod 755 bin/p.tmp && mv bin/p.tmp bin/parallel; bin/perl bin/parallel echo Works on ::: '$H
|
2013-07-19 17:13:00 +00:00
|
|
|
}
|
2013-12-19 01:19:19 +00:00
|
|
|
export -f copy_and_test
|
|
|
|
stdout parallel -j0 -k --timeout 80 --delay 0.1 --tag -v copy_and_test {} ::: $POLAR
|
2013-04-08 19:17:59 +00:00
|
|
|
|