#!/bin/bash # Runs the checklist of every playbook feature in the test VM, as root: # ADMIN_PASS=... tests/feature_check.sh -> test_report/feature_check.txt cd "$(dirname "$0")/.." mkdir -p test_report sshpass -p "${ADMIN_PASS:?set ADMIN_PASS}" scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \ -o LogLevel=ERROR -P 2222 tests/feature_check_vm.sh icpc@127.0.0.1:/tmp/feature_check_vm.sh tests/vssh.sh icpc "echo '$ADMIN_PASS' | sudo -S -p '' bash /tmp/feature_check_vm.sh" | tee test_report/feature_check.txt