This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Build Pass from file name hyphen->underscore
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: naresh kamboju <naresh dot kernel at gmail dot com>
- Cc: Goeusse Francois <f-goeusse at ti dot com>, systemtap at sources dot redhat dot com
- Date: Mon, 29 Mar 2010 14:41:13 -0400
- Subject: Re: Build Pass from file name hyphen->underscore
- References: <f5a7b3810912020511o7f1caf5dld70e650b2721e3cc@mail.gmail.com> <4B16C1DE.4080005@redhat.com> <f5a7b3810912030718r32540adn4c130e8a179bce1e@mail.gmail.com> <y0mk4wzisit.fsf@fche.csb> <f5a7b3811003291057q6ad8a5abqeaf3c71fb94b89ec@mail.gmail.com>
Hi -
On Mon, Mar 29, 2010 at 11:27:59PM +0530, naresh kamboju wrote:
> [...]
> Reason to prepare this patch.
>
> I am executing Systemtap on ARM arch, here i would not use 'make
> check' so i have to build each test case module with -m options with
> cross compilation and it wont allow module name with hypen, because of
> this reason i have to change the test case name from hypend to
> underscore.
> BUILD_FAIL BUILD_PASS
> aux_syscalls-embedded.stp -> aux_syscalls_embedded.stp
> [...]
Please let's think of another way to do this. It seems as though the
chain of issues leading to this underscore problem could have been
snipped earlier.
For example #1, you could teach stap to tolerate "-m FOO-BAR" names
(and map them internally to FOO_BAR).
For example #2, in your hand-made testing script, instead of using -m
FOO for test case FOO.stp, you could use any old synthetic identifier,
such as a serial number, or a "-" to "_" converted form.
For example #3, we outlined two more general cross-compilation testing
approaches in a previous email. Neither requires hand-built 'stap -m
FOO'.
- FChE