urchin/cross-os-tests/.run

15 lines
455 B
Plaintext
Raw Permalink Normal View History

2016-04-06 19:14:25 -04:00
params="$(basename "${0}")"
2016-04-06 19:18:38 -04:00
hostname="$(echo "${params}" | cut -d\ -f1)"
2016-04-06 19:14:25 -04:00
if echo "${params}" | grep -q \ ; then
2016-04-06 19:21:04 -04:00
flags="$(echo "${params}" | cut -d\ -f2-)"
2016-04-06 19:14:25 -04:00
fi
urchin_dir=.urchin-cross-shell-test
2016-04-04 16:54:22 -04:00
2016-04-06 20:24:06 -04:00
rsync --archive -e "ssh ${flags}" $RSYNC_FLAGS \
2016-04-06 23:41:33 -04:00
../urchin ../tests "${hostname}":"${urchin_dir}" ||
scp -r ${flags} ../urchin ../tests "${hostname}":"${urchin_dir}"
2016-04-06 19:18:38 -04:00
ssh "${hostname}" ${flags} \
2016-04-06 23:17:08 -04:00
"cd ${urchin_dir} && ./urchin --run-in-series tests"