* HACKING file: proposed addition
@ 2008-06-10 16:55 Jim Keniston
2008-06-10 20:23 ` David Smith
0 siblings, 1 reply; 3+ messages in thread
From: Jim Keniston @ 2008-06-10 16:55 UTC (permalink / raw)
To: systemtap
I propose appending the following text to the "test suites" section of
src/HACKING.
To run a particular test or set of tests, do:
cd testsuite
make check RUNTESTFLAGS=subdir/test.exp
or
make installcheck RUNTESTFLAGS=subdir/test.exp
For example:
make installcheck RUNTESTFLAGS=systemtap.string/strtol.exp
The last paragraph of HACKING says:
Proposed changes to these guidelines should be discussed on the
mailing list.
so please discuss away.
Thanks.
Jim
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: HACKING file: proposed addition
2008-06-10 16:55 HACKING file: proposed addition Jim Keniston
@ 2008-06-10 20:23 ` David Smith
2008-06-10 21:10 ` Frank Ch. Eigler
0 siblings, 1 reply; 3+ messages in thread
From: David Smith @ 2008-06-10 20:23 UTC (permalink / raw)
To: Jim Keniston; +Cc: systemtap
Jim Keniston wrote:
> I propose appending the following text to the "test suites" section of
> src/HACKING.
>
> To run a particular test or set of tests, do:
> cd testsuite
> make check RUNTESTFLAGS=subdir/test.exp
> or
> make installcheck RUNTESTFLAGS=subdir/test.exp
> For example:
> make installcheck RUNTESTFLAGS=systemtap.string/strtol.exp
>
> The last paragraph of HACKING says:
> Proposed changes to these guidelines should be discussed on the
> mailing list.
> so please discuss away.
I'm fine with adding the above.
One additional note here is that those paths are relative to the
testsuite source directory. If you've configured in a directory other
than the source directory, you still use the paths as above.
That's probably confusing, so let me illustrate with an example. Let's
say you do a build not in the source directory, like this:
# mkdir build
# cd build
# ../src/configure
# make
When you go to run a single test, you'd do the following:
# cd testsuite
# make installcheck RUNTESTFLAGS=systemtap.string/strtol.exp
You would *not* do this:
# cd testsuite
# make installcheck
RUNTESTFLAGS=../../src/testsuite/systemtap.string/strtol.exp
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: HACKING file: proposed addition
2008-06-10 20:23 ` David Smith
@ 2008-06-10 21:10 ` Frank Ch. Eigler
0 siblings, 0 replies; 3+ messages in thread
From: Frank Ch. Eigler @ 2008-06-10 21:10 UTC (permalink / raw)
To: David Smith; +Cc: Jim Keniston, systemtap
dwmith wrote:
> [...] When you go to run a single test, you'd do the following:
> # cd testsuite
> # make installcheck RUNTESTFLAGS=systemtap.string/strtol.exp
> [...]
FWIW, you don't need the subdirectory name at all. Just say
RUNTESTFLAGS=strtol.exp, and rely on the latter's uniqueness.
- FChE
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-06-10 14:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-10 16:55 HACKING file: proposed addition Jim Keniston
2008-06-10 20:23 ` David Smith
2008-06-10 21:10 ` Frank Ch. Eigler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).