Add test directives to the spec file which would instruct rpmbuild to run regression and unit tests for the package. rpmbuild should probably also get an option to run these tests. The interface could be exposed in the build service with the possibility to consider a package not passing its tests as failed to build.
No Hackers yet
Looking for hackers with the skills:
Nothing? Add some keywords!
This project is part of:
Hack Week 11
Comments
-
about 10 years ago by ebischoff | Reply
What would be the difference with the %check section?
-
about 10 years ago by dmuhamedagic | Reply
This would effectively be a post installation task, i.e. after the package got built, so it should better support testing integration. The test may also require installing extra packages. I used to have a postinst script for this, look for withregressiontests in https://build.opensuse.org/package/view_file/network:ha-clustering:Factory/crmsh/crmsh.spec This would add support for cases like that.
-
Similar Projects
This project is one of its kind!