Bug 11147 - server.exp testsuite fails to run
Summary: server.exp testsuite fails to run
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: testsuite (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-07 23:43 UTC by William Cohen
Modified: 2010-01-08 15:23 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description William Cohen 2010-01-07 23:43:16 UTC
The change in the following git checking is preventing the server.exp from running:

http://sources.redhat.com/git/gitweb.cgi?p=systemtap.git;a=commitdiff;h=2bdb71392526de784316f39c20a905425cba0607

Get the following error message

Running /usr/share/systemtap/testsuite/systemtap.server/server.exp ...
ERROR: tcl error sourcing
/usr/share/systemtap/testsuite/systemtap.server/server.exp.
ERROR: no such variable
    (read trace on "env(PKGLIBDIR)")
    invoked from within
"file exists $env(PKGLIBDIR)/stap-client-connect"
    (procedure "setup_server" line 6)
    invoked from within
"setup_server"
    invoked from within
"if {! [use_server_p]} then {
    if {! [setup_server]} then {
	untested "Server Tests"
	return
    }
}"
    (file "/usr/share/systemtap/testsuite/systemtap.server/server.exp" line 3)
    invoked from within
"source /usr/share/systemtap/testsuite/systemtap.server/server.exp"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 source /usr/share/systemtap/testsuite/systemtap.server/server.exp"
    invoked from within
"catch "uplevel #0 source $test_file_name""
Comment 1 William Cohen 2010-01-07 23:50:32 UTC
The environment for this was x86_64 F12 system. Running the following packages:

kernel-2.6.31.9-174.fc12.x86_64
gcc-4.4.2-20.fc12.x86_64
dejagnu-1.4.4-16.fc12.noarch
Comment 2 William Cohen 2010-01-07 23:54:39 UTC
Note this is running the test from the /usr/share/systemtap/testsuite directory
rather than the root of the build directory.
Comment 3 William Cohen 2010-01-08 15:23:17 UTC
The following git commit resolves the problem with running the testsuite from
the installed /usr/share/systemtap/testsuite directory:

http://sources.redhat.com/git/gitweb.cgi?p=systemtap.git;a=commit;h=a5b173656a9d942921d59a3e02bf2f285a46a3e9