diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2009-08-24 10:34:45 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-08-24 10:37:38 -0400 |
commit | 1392896dcda33324d43392f8e99fed240cf5fb9b (patch) | |
tree | c3546b8e377aa31fbf49a45b00940e017c425812 /testsuite | |
parent | 5a77d0116da4bc1d5b41df3172ad78c537eff51a (diff) | |
download | systemtap-steved-1392896dcda33324d43392f8e99fed240cf5fb9b.tar.gz systemtap-steved-1392896dcda33324d43392f8e99fed240cf5fb9b.tar.xz systemtap-steved-1392896dcda33324d43392f8e99fed240cf5fb9b.zip |
PR4186: cross-architecture probe building
* main.cxx (main): Add 'a:' and 'B:' options.
* session.h (kbuildflags): New place to store -B args.
* testsuite/systemtap.base/cmd_parse.exp: Test them lightly.
* buildrun.cxx (run_make_cmd): Use "--no-print-directory"
rather than ">/dev/null" in kbuild invocations. Pass
'-a' and '-B' flags along.
* hash.cxx (find_script_hash): Add them.
* NEWS, stap.1.in: Mention this.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/systemtap.base/cmd_parse.exp | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/testsuite/systemtap.base/cmd_parse.exp b/testsuite/systemtap.base/cmd_parse.exp index 7f5f70d9..8824e6c4 100644 --- a/testsuite/systemtap.base/cmd_parse.exp +++ b/testsuite/systemtap.base/cmd_parse.exp @@ -1,5 +1,5 @@ if {![installtest_p]} { - for {set i 0} { $i < 8} {incr i} { + for {set i 0} { $i < 16} {incr i} { untested cmd_parse$i } return @@ -129,3 +129,29 @@ expect { eof { fail "cmd_parse14: eof" } } wait;catch {close} + +set uname [exec uname -r] +spawn sh -c "stap -m do_not_cache_me -B kernelrelease -p4 -e 'probe begin {exit()}'" +# the \r below is meant to match the "kernelrelease" output, as distinct from +# any possible auxiliary make verbosity. +expect { + -re "$uname\r" { pass "cmd_parse15" } + timeout { fail "cmd_parse15: timeout" } + eof { fail "cmd_parse15: eof" } +} +wait;catch {close} + +set uname [exec uname -m] +spawn sh -c "stap -m do_not_cache_me -a $uname -p4 -e 'probe begin {exit()}'" +# the \r below is meant to match the "kernelrelease" output, as distinct from +# any possible auxiliary make verbosity. +expect { + -re "do_not_cache_me.ko\r" { pass "cmd_parse16" } + timeout { fail "cmd_parse16: timeout" } + eof { fail "cmd_parse16: eof" } +} +wait;catch {close} + + +# NB: when adding extra tests here, increment the ![installtest_p] +# loop count too at the top. |