From Fedora Project Wiki

(Add the category)
(Make)
 
Line 17: Line 17:


[[Category:Package_fedpkg_test_cases]]
[[Category:Package_fedpkg_test_cases]]
[[Category:Package_rpkg_test_cases]]

Latest revision as of 16:27, 2 June 2015

Description

This test case ensures that Fedora packagers can make scratch builds.

Setup

  1. You must be a Fedora packager and have your packaging environment set up. If you can't satisfy this requirement, please skip this test case.
  2. Install the fedpkg package.

How to test

  1. In your favourite terminal application, run the following commands:
    $ fedpkg clone fedpkg && cd fedpkg
    $ fedpkg scratch-build
    $ fedpkg scratch-build --srpm
  2. You can now remove the fedpkg folder.

Expected Results

  1. The first command should have cloned the fedpkg git repository and entered it.
  2. The second command should have sent the request for Koji to make a scratch build of the fedpkg package. It should have succeeded. The build options should show that the build was made from git, displaying the exact commit hash used as the build source.
  3. The third command should have sent the request for Koji to make a scratch build of the fedpkg package. It should have succeeded. The build options should show that the build was made from a srpm.