#!/bin/bash # Installs xdotool in the throwaway test VM (not in the built image), for # mouse clicks with tests/click.sh. The firewall is turned off during the # installation and back on afterwards. ADMIN_PASS=... tests/add_test_tools.sh cd "$(dirname "$0")/.." tests/vssh.sh icpc "echo '${ADMIN_PASS:?set ADMIN_PASS}' | sudo -S -p '' bash -c ' command -v xdotool >/dev/null && exit 0 contest-restrictions off firewall >/dev/null apt-get install -y -qq xdotool >/dev/null 2>&1 contest-restrictions on firewall >/dev/null /refresh_rules.sh command -v xdotool'"