https://github.com/fedora-modularity/module-tests
https://github.com/fedora-modularity/module-tests
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fedora-modularity/module-tests
- Owner: fedora-modularity
- License: gpl-3.0
- Created: 2016-11-22T01:37:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-02T11:21:50.000Z (almost 9 years ago)
- Last Synced: 2025-02-17T16:52:08.470Z (over 1 year ago)
- Language: Python
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# RPM Validator
This is a simple test to verify that the files output in the build-system are
valid RPM format files. Currently, this performs only two simple tests:
1. Verify that the file can be parsed as an RPM
2. Verify that the RPM header lists only files in locations permitted by the
Filesystem Hierarchy Standard (version 3.0):
http://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html
This package includes a sample RPM against which to test. It can be run with
```
avocado run rpmvalidation.py --mux-yaml ./samples/sampledata.yml
```
To run against real data, simply create a YAML file of the same format (e.g.):
```
rpms: !mux
fedora-release:
rpmpath: 'samples/fedora-release-25-1.noarch.rpm'
myfirstrpm:
rpmpath: '/home/myfirstrpm-0.1.fc25.x86_64.rpm'
```