]> sourceware.org Git - systemtap.git/commit
pyexample.stp: split into py2example.stp and py3example.stp
authorJonathan Lebon <jlebon@redhat.com>
Tue, 29 Apr 2014 18:32:48 +0000 (14:32 -0400)
committerJonathan Lebon <jlebon@redhat.com>
Tue, 29 Apr 2014 20:25:57 +0000 (16:25 -0400)
commit13ccbb3a74e105a2e7df11103a32bfc3f91ae3df
tree5125975dcec101822726619df252904bdfcfecc4
parent89c6fdd62035f89ebf9973fa5360369f3ec263bc
pyexample.stp: split into py2example.stp and py3example.stp

In order to be compatible on systems with only python2 installed (or
only python3 installed), we split the pyexample.stp script into two
versions.

We also add a test_support line in the meta files so that check.exp
marks them as untested if either/both python versions are not present.

In the tapsets, we make py2/3 aliases that the scripts then use, but
also create general ones that refer to both the 2 and 3 variants.

The python3 version requires -g --suppress-time-limits, otherwise it's
very likely that a 'overhead exceeded' ERROR.

- py2example.stp: python 2 version of the script
- py2example.meta: meta file for python 2 version, with test_support
  check for python 2 specific SDT markers
- py3example.stp: python 3 version of the script
- py3example.meta: meta file for python 3 version, with test_support
  check for python 3 specific SDT markers
- tapset/python2.stp: make python2 specific aliases and alias the
  general ones to that
- tapset/python3.stp: make python3 specific aliases and alias the
  general ones to that
testsuite/systemtap.examples/general/py2example.meta [moved from testsuite/systemtap.examples/general/pyexample.meta with 59% similarity]
testsuite/systemtap.examples/general/py2example.stp [moved from testsuite/systemtap.examples/general/pyexample.stp with 56% similarity]
testsuite/systemtap.examples/general/py3example.meta [new file with mode: 0644]
testsuite/systemtap.examples/general/py3example.stp [new file with mode: 0644]
testsuite/systemtap.examples/general/tapset/python2.stp
testsuite/systemtap.examples/general/tapset/python3.stp
This page took 0.027094 seconds and 5 git commands to generate.