-
Notifications
You must be signed in to change notification settings - Fork 8
DevelopmentTesting
Dave Evans edited this page Apr 13, 2018
·
2 revisions
To install and test changes, you can build a distribution from the repo including local changes and then pip install that into the cirrus venv to do live tests.
git clone git@github.com:evansde77/cirrus.git
cd cirrus
python setup.py sdist
LATEST_CIRRUS=`ls -a1tR $PWD/dist/*.tar.gz | head -1`
. ~/.cirrus/venv/bin/activate
pip install $LATEST_CIRRUS
The package contains several docker based test scripts in the containers subdirectory
To run all the tests:
cd containers
bash update_build.sh
bash run_tests.sh
If you just want to run a single test case, edit the run_tests script and cut down the list of tests to be run. Each test case has a subdir with a Dockerfile and sets up a test environment in a container for various common use cases, installs cirrus and then runs through a series of commands