brozzler/vagrant/run-tests.sh
2019-04-02 12:05:08 -07:00

22 lines
751 B
Bash
Executable File

#!/bin/bash
#
# any arguments are passed on to py.test
# so for example to run only "test_obey_robots" you could run
# ./run-tests.sh -k test_obey_robots
#
cd $(dirname "${BASH_SOURCE[0]}")
vagrant up
echo service status:
vagrant ssh -- 'sudo svcstat /etc/service/warcprox ;
sudo svcstat /etc/service/Xvnc ;
sudo svcstat /etc/service/brozzler-worker ;
sudo svcstat /etc/service/brozzler-dashboard ;
sudo svcstat /etc/service/vnc-websock'
echo
vagrant ssh -- 'set -x ; source /opt/brozzler-ve3/bin/activate && pip install pytest && pip install --upgrade --pre "warcprox>=2.1b1.dev86"'
vagrant ssh -- "source /opt/brozzler-ve3/bin/activate && DISPLAY=:1 py.test -v /brozzler/tests $@"