urchin/cross-os-tests/.run
2016-04-06 23:14:25 +00:00

23 lines
536 B
Plaintext
Executable File

params="$(basename "${0}")"
fullhost="$(echo "${params}" | cut -d\ -f1)"
if echo "${params}" | grep -q \ ; then
flags="$(echo "${params}" | cut -d\ -f2)"
fi
hostname="$(echo "${fullhost}" | cut -d: -f1)"
if echo "${fullhost}" | grep -q : ; then
port="$(echo "${fullhost}" | cut -d: -f2)"
else
port=22
fi
echo $port
exit
urchin_dir=.urchin-cross-shell-test
rsync --archive -e "ssh ${params}" \
../urchin ../tests "${host}":"${urchin_dir}"
ssh -p "${port}" "${host}" \
"cd ${urchin_dir} && ./urchin --run-in-series tests"