Bug 432071 - Invalid source path for tests.
Summary: Invalid source path for tests.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: frysk
Version: 5.2
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Chris Moller
QA Contact: Len DiMaggio
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-02-08 18:09 UTC by Chris Moller
Modified: 2009-06-11 13:39 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-06-11 13:39:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
tarball containing two patches to fix this bug (1.44 KB, application/octet-stream)
2008-02-08 18:09 UTC, Chris Moller
no flags Details

Description Chris Moller 2008-02-08 18:09:18 UTC
Description of problem:

funit fails when frysk is installed from RPMs because it's looking in the
original source and build directory for test source files.

Version-Release number of selected component (if applicable):


How reproducible:

100%


Steps to Reproduce:
1.  Build the RPMs:  rpmbuild -bb frysk.spec
2.  Install the resultant RPMs
3.  Hide (by renaming) the frysk src dir used to build the RPMs.
4.  cd /tmp
5.  /usr/lib/frysk/funit frysk.stepping.TestSteppingEngine

  
Actual results:

Java.io.FileNotFoundException and failure.

Expected results:

All tests pass.

Additional info:

The fix is contained in two separate patch files, one for the frysk.spec file,
the other for files in the source tree.

Comment 1 Chris Moller 2008-02-08 18:09:18 UTC
Created attachment 294390 [details]
tarball containing two patches to fix this bug

Comment 2 Chris Moller 2008-02-08 23:02:26 UTC
The issue resolved by this patch is that the existing build process is
insufficiently flexible to allow some of the frysk tests to locate sample source
files in all the conditions under which the tests normally take place,
principally locally with TestRunner from within the build tree, and from the
directories into which the frysk RPMs install frysk.  (In the first instance, a
source path relative to the build tree is necessary; in the latter case an
absolute path to the destination of the frysk-debuginfo RPM.)

The patch included with this bug resolves this problem and affects both the
frysk spec file and files within the frysk source tree.  The patch allows the
specification, via configuration option, of the appropriate source path.

Without this patch, some funit tests in the RPM installation of frysk are
guaranteed to fail for reasons having nothing to do with the proper execution of
the code itself--the failures are due to a test environment different from that
expected.  With the patch, the affected tests will pass or fail on their own 
merits.  (At present, with the version of the frysk code against which this
patch was written (0.0.1.2008.01.18.rh1-1.fc8), all affected tests pass.)

Comment 3 Chris Moller 2009-06-11 13:39:55 UTC
frysk is dead


Note You need to log in before you can comment on or make changes to this bug.