README.rst

This a Taskotron task to check package dependencies satisfiability in Fedora using an rpmdeplint tool. See recent results and task documentation.

Running locally

You can run the same task locally by running the ansible playbook. Execute the following command as root (don't do this on a production machine!):

$ ansible-playbook tests.yml -e taskotron_item=<koji_tag> -e taskotron_arch=<arch>

and replace <koji_tag> and <arch> with actual values.

For example:

$ ansible-playbook tests.yml -e taskotron_item=f27-updates-pending -e taskotron_arch=x86_64

You can see the results in ./artifacts/ directory.

Alternatively you can run the task through Taskotron runner:

$ runtask --item <koji_tag> --type koji_tag --arch <arch> task-rpmdeplint/

Don't forget to use --ssh or --libvirt, otherwise you need to run this as root (not recommended). See Taskotron documentation.

Running the test suite

Install dependepcies:

sudo dnf install python-virtualenv python2-rpmfluff createrepo_c

Create virtualenv:

virtualenv --system-site-packages env_rpmdeplint
source env_rpmdeplint/bin/activate
pip install -r requirements.txt

If you don't have libtaskotron installed in the system, but use it from a checkout, you also need to install it and its deps into the virtualenv:

pip install -e /path/to/libtaskotron/checkout
pip install -r /path/to/libtaskotron/checkout/requirements.txt

Run the test suite:

py.test

Read tests/scenarios/README.md for more details about writing the tests.