Bug 3757

Summary: dejagnu tests have hard wired paths
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Stan Cox <scox>
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 3548    

Description Andrew Cagney 2006-12-19 04:08:02 UTC
The dejagnu tests can't be run from the install tree - they contain hard-wired
build tree paths.
Comment 1 Stan Cox 2006-12-20 22:37:52 UTC
This patch works, assuming: 
1) srcdir and objdir are set properly in site.exp 
 e.g. if running runtest from frysk/install given frysk/bld and frysk/src:
# add to site.exp
set srcdir ../src/frysk-core
set objdir /tmp
2) fcore, fstack, hpd are on the PATH.  This is currently not true as hpd is not
being installed so state left as ASSIGNED pending fixing that.

+       * expr/CppParser.exp (hpd_path): New for install tree testing.
+       * util/fcore.exp (funit_path, fcore_path): Likewise.
+       * util/fstack.exp (funit_path, fstack_path): Likewise.

Comment 2 Stan Cox 2006-12-21 16:38:36 UTC
fhpd.java and fhpd.xml committed.

% make check-DEJAGNU
                ===  Summary ===
# of expected passes            32
% PATH=`pwd`/lib/frysk/:`pwd`/bin:$PATH runtest \
--srcdir../src/frysk-core/testsuite --objdir /tmp
                ===  Summary ===
# of expected passes            28  
(skip tests that rely on uninstalled test program)