[Pki-devel] [PATCH] 72 Continuous Integration Framework - Solutions for tickets #722, 723, 724

Abhishek Koneru akoneru at redhat.com
Tue Oct 8 00:42:05 UTC 2013


Please find the patch which adds all the tests to upstream git on 10.0
branch. It is present at pki/tests in the code tree. 

The junit tests source code and the extensions for Suite junit runner
and the junit.RunNotifier are present at
pki/tests/beaker/rhcs/dev_java_tests/src. The code is compiled to
pki/tests/beaker/rhcs/dev_java_tests/bin. (This has been setup in the
project). Once the project is opened in eclipse the code is compiled
there. Except for the junit4.jar, there are no other requirements for
building the java tests in eclipse. Though for making an rpm of all the
tests we need the following packages installed:

expect, beah, rhts-test-env, beakerlib, beakerlib-redhat, rhts-devel,
beaker-client.

The presence of these packages also provides all the beaker client
functionality.

A compose script, compose_pki_test_package, is added to pki/scripts.
This script when executed, creates a folder X/package.tests(X=pki/..)
and copies all the tests there and builds the rpm. Building a
personalized rpm is possible only when the build is made outside the git
tree. Executing the make-package.sh script inside at
pki/tests/beaker/rhcs is not possible if the tags of the current branch
are different from the master. (Similar problem faced in SVN v<1.7).
Hence the rpm is build outside the pki source tree.

 --- Abhishek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pki-akoneru-0072-Added-all-the-tests-to-upstream-git.patch
Type: text/x-patch
Size: 1464798 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20131007/24f3b5b1/attachment.bin>


More information about the Pki-devel mailing list