Installation#
$ dnf install fedpkg standard-test-roles
Defining Tests#
Create tests/tests.yml:
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- simple:
dir: .
run: "<command> --help"
Running Tests#
Run the tests as root user:
$ cd tests
$ ansible-playbook --tags=classic tests.yml
Defining Package-specific Policies#
Create gating.yaml:
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_testing
rules:
- !PassingTestCaseRule {test_case_name: dist.depcheck}