Files
docker-cli/components/engine/hack/infrastructure/docker-ci/functionaltests/test_registry.sh
Daniel Mizyrycki 029a9420f7 testing infrastructure, issue #1766: Dockerize deployment of docker-ci
Upstream-commit: d542318d63b847e4494a2688b091baeb5dbde1e1
Component: engine
2013-10-10 18:29:10 -07:00

27 lines
559 B
Bash
Executable File

#!/bin/sh
set -x
# Cleanup
rm -rf docker-registry
# Setup the environment
export SETTINGS_FLAVOR=test
export DOCKER_REGISTRY_CONFIG=config_test.yml
# Get latest docker registry
git clone -q https://github.com/dotcloud/docker-registry.git
cd docker-registry
# Get dependencies
pip install -q -r requirements.txt
pip install -q -r test-requirements.txt
pip install -q tox
# Run registry tests
tox || exit 1
export PYTHONPATH=$(pwd)/docker-registry
python -m unittest discover -p s3.py -s test || exit 1
python -m unittest discover -p workflow.py -s test