Files
Programming-Contests/tests/feature_check.sh
T
2026-10-15 20:44:05 -03:00

9 lines
534 B
Bash
Executable File

#!/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