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.

Looking for hackers with the skills:

Nothing? Add some keywords!

This project is part of:

Hack Week 11

Activity

  • over 9 years ago: dmuhamedagic originated this project.

  • Comments

    • ebischoff
      over 9 years ago by ebischoff | Reply

      What would be the difference with the %check section?

      • dmuhamedagic
        over 9 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!