From Fedora Project Wiki

(Add a note for Fedora packagers)
(Make it an rpkg test case as well, because fedpkg depends on rpkg)
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
## <code>fedpkg.spec</code>
## <code>fedpkg.spec</code>
## <code>sources</code>
## <code>sources</code>
# The second command should list the files in the cloned <code>rpkg</code> Git repository. There should be at least the following files:
# As for the second command:
## <code>rpkg.spec</code>
## If you are not a Fedora packager or your packaging environment is not set up, it must have failed.
## <code>sources</code>
## If you are a Fedora packager and your packaging environment is set up, it should list the files in the cloned <code>rpkg</code> git repository. There should be at least the following files:
### <code>rpkg.spec</code>
### <code>sources</code>
}}
}}


[[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 tests whether cloning a distgit repository works properly.

Setup

  1. Install the fedpkg package.
  2. If you are a Fedora packager, set up your packaging environment (SSH keys, SSL certs, ...)

How to test

  1. In your favourite terminal application, run the following commands:
    $ fedpkg clone -a fedpkg && cd fedpkg && ls && cd ..
    $ fedpkg clone rpkg && cd rpkg && ls && cd ..
  2. You can now remove the fedpkg and rpkg folders.

Expected Results

  1. The first command should list the files in the cloned fedpkg git repository. There should be at least the following files:
    1. fedpkg.spec
    2. sources
  2. As for the second command:
    1. If you are not a Fedora packager or your packaging environment is not set up, it must have failed.
    2. If you are a Fedora packager and your packaging environment is set up, it should list the files in the cloned rpkg git repository. There should be at least the following files:
      1. rpkg.spec
      2. sources