2016-09-14 17:06:49 -07:00
|
|
|
#!/bin/bash
|
2016-11-16 12:23:59 -08:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
2016-09-14 17:06:49 -07:00
|
|
|
|
2016-10-14 13:47:54 -07:00
|
|
|
cd $(dirname "${BASH_SOURCE[0]}")
|
|
|
|
|
2017-03-27 12:15:49 -07:00
|
|
|
vagrant up
|
|
|
|
|
2016-09-14 17:06:49 -07:00
|
|
|
echo service status:
|
|
|
|
vagrant ssh -- 'status warcprox ;
|
|
|
|
status Xvnc ;
|
|
|
|
status brozzler-worker ;
|
2016-11-04 17:46:23 -07:00
|
|
|
status brozzler-dashboard ;
|
2016-09-14 17:06:49 -07:00
|
|
|
status vnc-websock'
|
|
|
|
echo
|
|
|
|
|
2017-05-23 11:33:04 -07:00
|
|
|
vagrant ssh -- 'set -x ; source /opt/brozzler-ve34/bin/activate && pip install pytest && pip install --upgrade --pre "warcprox>=2.1b1.dev86"'
|
2017-03-15 14:59:51 -07:00
|
|
|
vagrant ssh -- "source /opt/brozzler-ve34/bin/activate && DISPLAY=:1 py.test -v /brozzler/tests $@"
|