https://github.com/fedora-modularity/check_compose
check validity of module composition
https://github.com/fedora-modularity/check_compose
Last synced: about 1 year ago
JSON representation
check validity of module composition
- Host: GitHub
- URL: https://github.com/fedora-modularity/check_compose
- Owner: fedora-modularity
- License: gpl-3.0
- Created: 2017-02-22T17:37:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-02T11:14:19.000Z (about 9 years ago)
- Last Synced: 2025-02-17T16:52:08.199Z (over 1 year ago)
- Language: Python
- Size: 18.6 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# check_compose
This contains [avocado testing framework](http://avocado-framework.github.io/)
based tests to conduct various module checks.
* check_compose.py - check validity of module composition (_work in progress_)
## Setup
Install prerequisite RPMs if necessary:
* python2-aexpect - dependency for python-avocado
* python2-avocado - avocado testing framework
* python2-modulemd - Module metadata manipulation library
* python2-dnf - Python 2 interface to DNF
## Running check_compose.py
Call avocado to run check_compose.py, providing the path to the composed
repository and the modulemd file using
[avocado's parameter passing mechanism](http://avocado-framework.readthedocs.io/en/latest/WritingTests.html#accessing-test-parameters):
avocado run ./check_compose.py --mux-inject 'run:repo:/path/to/repository' 'run:modulemd:/path/to/modulemd.yaml'
For convenience during development of the test script, a wrapper script is
provided that simplifies passing the required parameters:
./run-checkcomp.sh [--debug] /path/to/repository /path/to/modulemd.yaml
### Taskotron
This check should eventually be called by [Taskotron](https://fedoraproject.org/wiki/Taskotron). A *non-working* start of a task definition has been included:
runtask -i "modules/testmodule#aaca87a82c35c1f0eb85556191f09f8a842abd9f" -t dist_git_commit -a noarch ./runtask.yml