* [ANNOUNCE] Open POSIX Test Suite
@ 2002-11-04 22:48 Geoff Gustafson
2002-11-04 22:58 ` Larry McVoy
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: Geoff Gustafson @ 2002-11-04 22:48 UTC (permalink / raw)
To: linux-kernel
I would like to announce a new project to develop and/or assemble a GPL test
suite for POSIX APIs. The tests will focus on conformance to the IEEE Std
1003.1-2001, but will also include separate functional and stress tests.
The project's current approach to conformance testing is to record
assertions
from a close reading of the POSIX specifications, and write minimal test
cases
that prove or disprove these assertions. The test suite will be independent
of
specific API implementations, and will eventually be easily configurable to
work with different implementations. The project aims for OS independence,
using only POSIX APIs, the autoconf suite, and simple shell support.
However,
it is currently only being tested on Linux.
Ultimately, the plan is to use the test suite to evaluate current support in
Linux, as well as new implementations being considered in the open source
community, and then contribute patches or at least bug reports (with a
minimal
test case) to the appropriate places, like LKML.
Contributions of any test cases, review of the work, discussion of the
approach, etc. are very welcome. Join the development mailing list,
posixtest-discuss. The initial focus is on Signals, Message Queues, Threads,
Semaphores, and Clocks & Timers, based on current interests and resources.
You can help in these areas, or start work on another area of the spec.
There
will need to be some uniformity across the suite, but many details have yet
to
be worked out, so your involvement in those decisions help a lot.
For more information, see the project website at
http://posixtest.sourceforge.net
Thanks,
-- Geoff Gustafson
These are my views and not necessarily those of my employer.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ANNOUNCE] Open POSIX Test Suite
2002-11-04 22:48 [ANNOUNCE] Open POSIX Test Suite Geoff Gustafson
@ 2002-11-04 22:58 ` Larry McVoy
2002-11-04 23:17 ` Geoff Gustafson
2002-11-04 23:14 ` RFC: A POSIX Linux project? Jeff Garzik
2002-11-04 23:57 ` [ANNOUNCE] Open POSIX Test Suite Christopher Yeoh
2 siblings, 1 reply; 14+ messages in thread
From: Larry McVoy @ 2002-11-04 22:58 UTC (permalink / raw)
To: Geoff Gustafson; +Cc: linux-kernel
On Mon, Nov 04, 2002 at 02:48:47PM -0800, Geoff Gustafson wrote:
> I would like to announce a new project to develop and/or assemble a GPL test
> suite for POSIX APIs.
Great idea. We can help in the following way: BitKeeper has an extremely
simple test harness used for regressions. It's well thought out in that
it is trivial to write simple tests and run them in isolation or to
run the whole suite. If you want the harness, we'll give it to you
under whatever license you want, I assume GPL, but we don't care.
You can see what the tests look like in BK, if you have it installed, we
ship all the tests, they are in `bk bin`/t
A simple test might be
#!/bin/sh
# test that touch creates a file
touch foo
test -f foo || {
echo failed to create foo
exit 1
}
The harness takes care of putting you in a clean isolated environment.
--
---
Larry McVoy lm at bitmover.com http://www.bitmover.com/lm
^ permalink raw reply [flat|nested] 14+ messages in thread
* RFC: A POSIX Linux project?
2002-11-04 22:48 [ANNOUNCE] Open POSIX Test Suite Geoff Gustafson
2002-11-04 22:58 ` Larry McVoy
@ 2002-11-04 23:14 ` Jeff Garzik
2002-11-04 23:31 ` Andreas Dilger
` (2 more replies)
2002-11-04 23:57 ` [ANNOUNCE] Open POSIX Test Suite Christopher Yeoh
2 siblings, 3 replies; 14+ messages in thread
From: Jeff Garzik @ 2002-11-04 23:14 UTC (permalink / raw)
To: linux-kernel
I wonder if any vendors, or independent groups, would be interested in
maintaining a POSIX compliancy patchkit for the Linux kernel?
IMO such a "POSIX Linux" project would be useful for several reasons.
Overall, I think there is pressure from several directions to get all
sorts of POSIX APIs into the kernel. On occasion, kernel hackers are
confronted with a situation where complete POSIX compliancy may mean a
compromise in some area, be it performance, security, API issues, code
cleanliness issues, etc. Or simply that the POSIX-related code just
isn't ready to be merged into the mainline kernel yet.
The vendors also benefit by this, because the barrier to entry in
POSIX-related cases would be lowered, which would in turn satisfy the
demands of customers. Which would in turn give the mainline kernel all
the software engineering benefits that come from a more reasoned and
gradual review and merge of new features.
Does something like this already exist? This would need to be an open,
vendor-neutral project...
Jeff
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ANNOUNCE] Open POSIX Test Suite
2002-11-04 22:58 ` Larry McVoy
@ 2002-11-04 23:17 ` Geoff Gustafson
0 siblings, 0 replies; 14+ messages in thread
From: Geoff Gustafson @ 2002-11-04 23:17 UTC (permalink / raw)
To: Larry McVoy, linux-kernel
Larry McVoy wrote:
> Great idea. We can help in the following way: BitKeeper has an extremely
> simple test harness used for regressions. It's well thought out in that
> it is trivial to write simple tests and run them in isolation or to
> run the whole suite. If you want the harness, we'll give it to you
> under whatever license you want, I assume GPL, but we don't care.
Yeah, that would be great. GPL would be correct.
> You can see what the tests look like in BK, if you have it installed, we
> ship all the tests, they are in `bk bin`/t
I haven't used BK yet, but I'll go try to do that.
Thanks,
-- Geoff Gustafson
These are my views and not necessarily those of my employer.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: RFC: A POSIX Linux project?
2002-11-04 23:14 ` RFC: A POSIX Linux project? Jeff Garzik
@ 2002-11-04 23:31 ` Andreas Dilger
2002-11-04 23:51 ` Jim Freeman
2002-11-05 2:01 ` Geoff Gustafson
2002-11-04 23:37 ` Rik van Riel
2002-11-05 1:14 ` Geoff Gustafson
2 siblings, 2 replies; 14+ messages in thread
From: Andreas Dilger @ 2002-11-04 23:31 UTC (permalink / raw)
To: Jeff Garzik; +Cc: linux-kernel
On Nov 04, 2002 18:14 -0500, Jeff Garzik wrote:
> I wonder if any vendors, or independent groups, would be interested in
> maintaining a POSIX compliancy patchkit for the Linux kernel?
>
> IMO such a "POSIX Linux" project would be useful for several reasons.
> Overall, I think there is pressure from several directions to get all
> sorts of POSIX APIs into the kernel. On occasion, kernel hackers are
> confronted with a situation where complete POSIX compliancy may mean a
> compromise in some area, be it performance, security, API issues, code
> cleanliness issues, etc. Or simply that the POSIX-related code just
> isn't ready to be merged into the mainline kernel yet.
>
> The vendors also benefit by this, because the barrier to entry in
> POSIX-related cases would be lowered, which would in turn satisfy the
> demands of customers. Which would in turn give the mainline kernel all
> the software engineering benefits that come from a more reasoned and
> gradual review and merge of new features.
>
> Does something like this already exist? This would need to be an open,
> vendor-neutral project...
What about the existing POSIX test suite from X/Open? I don't know what
the current license is, but it is certainly freely downloadable from
their website. However, it is a pain in the a** to set up and run, so
a new version would definitely be welcome.
I would give you a URL, but I don't have access to my mail archives now.
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: RFC: A POSIX Linux project?
2002-11-04 23:14 ` RFC: A POSIX Linux project? Jeff Garzik
2002-11-04 23:31 ` Andreas Dilger
@ 2002-11-04 23:37 ` Rik van Riel
2002-11-05 1:14 ` Geoff Gustafson
2 siblings, 0 replies; 14+ messages in thread
From: Rik van Riel @ 2002-11-04 23:37 UTC (permalink / raw)
To: Jeff Garzik; +Cc: linux-kernel
On Mon, 4 Nov 2002, Jeff Garzik wrote:
> I wonder if any vendors, or independent groups, would be interested in
> maintaining a POSIX compliancy patchkit for the Linux kernel?
I'd be interested in helping. There must be some POSIXisms
that are not in the kernel yet but still useful enough to keep
alive.
regards,
Rik
--
Bravely reimplemented by the knights who say "NIH".
http://www.surriel.com/ http://distro.conectiva.com/
Current spamtrap: <a href=mailto:"october@surriel.com">october@surriel.com</a>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: RFC: A POSIX Linux project?
2002-11-04 23:31 ` Andreas Dilger
@ 2002-11-04 23:51 ` Jim Freeman
2002-11-05 0:14 ` Geoff Gustafson
2002-11-05 2:01 ` Geoff Gustafson
1 sibling, 1 reply; 14+ messages in thread
From: Jim Freeman @ 2002-11-04 23:51 UTC (permalink / raw)
To: Jeff Garzik, linux-kernel
On Mon, Nov 04, 2002 at 04:31:13PM -0700, Andreas Dilger wrote:
...
> What about the existing POSIX test suite from X/Open? I don't know what
> the current license is, but it is certainly freely downloadable from
> their website. However, it is a pain in the a** to set up and run, so
> a new version would definitely be welcome.
>
> I would give you a URL, but I don't have access to my mail archives now.
Howzabout the NIST one ?
http://www.itl.nist.gov/div897/ctg/posix_form.htm
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ANNOUNCE] Open POSIX Test Suite
2002-11-04 22:48 [ANNOUNCE] Open POSIX Test Suite Geoff Gustafson
2002-11-04 22:58 ` Larry McVoy
2002-11-04 23:14 ` RFC: A POSIX Linux project? Jeff Garzik
@ 2002-11-04 23:57 ` Christopher Yeoh
2002-11-05 0:44 ` Geoff Gustafson
2 siblings, 1 reply; 14+ messages in thread
From: Christopher Yeoh @ 2002-11-04 23:57 UTC (permalink / raw)
To: Geoff Gustafson; +Cc: linux-kernel
Hi Geoff,
At 2002/11/4 14:48-0800 Geoff Gustafson writes:
>
> Contributions of any test cases, review of the work, discussion of the
> approach, etc. are very welcome. Join the development mailing list,
> posixtest-discuss. The initial focus is on Signals, Message Queues, Threads,
> Semaphores, and Clocks & Timers, based on current interests and resources.
> You can help in these areas, or start work on another area of the spec.
> There
> will need to be some uniformity across the suite, but many details have yet
> to
> be worked out, so your involvement in those decisions help a lot.
Have you looked at the LSB test suites yet? They already cover much of
what you plan on writing tests for, though we would welcome any
volunteers who would like to increase the coverage. Most of the tests
suites are released under the Artistic License, with quite a bit of
the code donated by the Open Group (originally from the Unix
certification tests).
You can find more information about them here:
http://www.linuxbase.org/test
The CVS repository is on SourceForge in the LSB project.
Chris
--
cyeoh@au.ibm.com
IBM OzLabs Linux Development Group
Canberra, Australia
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: RFC: A POSIX Linux project?
2002-11-04 23:51 ` Jim Freeman
@ 2002-11-05 0:14 ` Geoff Gustafson
0 siblings, 0 replies; 14+ messages in thread
From: Geoff Gustafson @ 2002-11-05 0:14 UTC (permalink / raw)
To: Jim Freeman, linux-kernel
Jim Freeman wrote:
> Howzabout the NIST one ?
>
> http://www.itl.nist.gov/div897/ctg/posix_form.htm
I think this is based on the 1990 POSIX spec. The things the new suite is
starting with have been added since then, up to and including the 2001 spec.
It is public domain I believe, so I would like to merge that in at some point,
but I would want to review the test cases individually to make sure they still
apply to the latest spec, etc. A lot of the work is just checking things in the
latest specification and adding/updating references in the code.
-- Geoff Gustafson
These are my views and not necessarily those of my employer.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ANNOUNCE] Open POSIX Test Suite
2002-11-04 23:57 ` [ANNOUNCE] Open POSIX Test Suite Christopher Yeoh
@ 2002-11-05 0:44 ` Geoff Gustafson
2002-11-05 2:26 ` Andreas Dilger
2002-11-05 3:35 ` Christopher Yeoh
0 siblings, 2 replies; 14+ messages in thread
From: Geoff Gustafson @ 2002-11-05 0:44 UTC (permalink / raw)
To: Christopher Yeoh, linux-kernel
Christopher Yeoh writes:
> Have you looked at the LSB test suites yet? They already cover much of
> what you plan on writing tests for, though we would welcome any
> volunteers who would like to increase the coverage. Most of the tests
> suites are released under the Artistic License, with quite a bit of
> the code donated by the Open Group (originally from the Unix
> certification tests).
One issue is that this new project is primarily concerned with testing parts of
the spec that have not been fully supported in Linux so far. These are the kind
of things that are not included in LSB yet, so they wouldn't be appropriate in
LSB's test suite.
Another problem is the overhead of the TET framework. One of the goals of this
the new test suite is to have test cases which are utterly minimal. So far, each
test case has its own main() function and a bare minimum of surrounding code.
The idea is that when a bug is found, this one .c file can be sent to the
appropriate developer, and without any learning curve, they have the ability to
find their bug. I don't think LKML wants to see TET code posted here. :)
-- Geoff Gustafson
These are my views and not necessarily those of my employer.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: RFC: A POSIX Linux project?
2002-11-04 23:14 ` RFC: A POSIX Linux project? Jeff Garzik
2002-11-04 23:31 ` Andreas Dilger
2002-11-04 23:37 ` Rik van Riel
@ 2002-11-05 1:14 ` Geoff Gustafson
2 siblings, 0 replies; 14+ messages in thread
From: Geoff Gustafson @ 2002-11-05 1:14 UTC (permalink / raw)
To: Jeff Garzik, linux-kernel
> I wonder if any vendors, or independent groups, would be interested in
> maintaining a POSIX compliancy patchkit for the Linux kernel?
I agree this sounds very useful. I could do something like this as part of the
test suite project; this would expand the scope to include testing and reporting
the status of the latest patches.
-- Geoff Gustafson
These are my views and not necessarily those of my employer.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: RFC: A POSIX Linux project?
2002-11-04 23:31 ` Andreas Dilger
2002-11-04 23:51 ` Jim Freeman
@ 2002-11-05 2:01 ` Geoff Gustafson
1 sibling, 0 replies; 14+ messages in thread
From: Geoff Gustafson @ 2002-11-05 2:01 UTC (permalink / raw)
To: Andreas Dilger, linux-kernel
Andreas Dilger wrote:
> What about the existing POSIX test suite from X/Open? I don't know what
> the current license is, but it is certainly freely downloadable from
> their website. However, it is a pain in the a** to set up and run, so
> a new version would definitely be welcome.
If I understand correctly, the test suites that cover POSIX extensions more
recent than 1990 are not free. Also, these use the TET framework, whereas this
project hopes to keep tests very simple and standalone, so the code can be
immediately sent to and warmly received by developers if bugs are found.
http://www.opengroup.org/testing/sales+support/prices.htm#VSTRC
-- Geoff Gustafson
These are my views and not necessarily those of my employer.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ANNOUNCE] Open POSIX Test Suite
2002-11-05 0:44 ` Geoff Gustafson
@ 2002-11-05 2:26 ` Andreas Dilger
2002-11-05 3:35 ` Christopher Yeoh
1 sibling, 0 replies; 14+ messages in thread
From: Andreas Dilger @ 2002-11-05 2:26 UTC (permalink / raw)
To: Geoff Gustafson; +Cc: Christopher Yeoh, linux-kernel
On Nov 04, 2002 16:44 -0800, Geoff Gustafson wrote:
> Another problem is the overhead of the TET framework. One of the goals of
> this the new test suite is to have test cases which are utterly minimal.
> So far, each test case has its own main() function and a bare minimum of
> surrounding code. The idea is that when a bug is found, this one .c file
> can be sent to the appropriate developer, and without any learning curve,
> they have the ability to find their bug. I don't think LKML wants to see
> TET code posted here. :)
Having suffered through using the TET framework for the Open Group POSIX
test suite, I would agree that using TET sucks. The code is so convoluted
as to be useless, and it is nearly impossible to see from the output what
it is actually doing.
I agree that having a simple C or shell or perl script which is the entire
test, and the rest of the framework is external to it is very desirable.
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ANNOUNCE] Open POSIX Test Suite
2002-11-05 0:44 ` Geoff Gustafson
2002-11-05 2:26 ` Andreas Dilger
@ 2002-11-05 3:35 ` Christopher Yeoh
1 sibling, 0 replies; 14+ messages in thread
From: Christopher Yeoh @ 2002-11-05 3:35 UTC (permalink / raw)
To: Geoff Gustafson; +Cc: linux-kernel
At 2002/11/4 16:44-0800 Geoff Gustafson writes:
> One issue is that this new project is primarily concerned with
> testing parts of the spec that have not been fully supported in
> Linux so far. These are the kind of things that are not included in
> LSB yet, so they wouldn't be appropriate in LSB's test suite.
Actually we do include some areas that aren't yet in the LSB spec or
fully supported by Linux (eg aio) in the LSB test suites we release -
they just aren't run by default - but it is easy to enable them.
> utterly minimal. So far, each test case has its own main() function
> and a bare minimum of surrounding code. The idea is that when a bug
> is found, this one .c file can be sent to the appropriate developer,
> and without any learning curve, they have the ability to find their
> bug. I don't think LKML wants to see TET code posted here. :)
Yes, I agree TET does have a significant learning curve, and I do end
up writing small test programs that don't include the TET stuff before
sending off bug reports.
I have however seen some advantages - It is nice when you get a test
failure the report tells you exactly which part of the specification
you're violating. Once you do understand the TET/vsxgen library calls
testcases look much simpler - and if you're aiming for complete
functionality coverage including all the tricky corner cases for
various interfaces which can require quite a bit of setup code to get
into the right situation I think you'll end up having to write helper
libraries anyway.
Chris
--
cyeoh@au.ibm.com
IBM OzLabs Linux Development Group
Canberra, Australia
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2002-11-05 3:32 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-04 22:48 [ANNOUNCE] Open POSIX Test Suite Geoff Gustafson
2002-11-04 22:58 ` Larry McVoy
2002-11-04 23:17 ` Geoff Gustafson
2002-11-04 23:14 ` RFC: A POSIX Linux project? Jeff Garzik
2002-11-04 23:31 ` Andreas Dilger
2002-11-04 23:51 ` Jim Freeman
2002-11-05 0:14 ` Geoff Gustafson
2002-11-05 2:01 ` Geoff Gustafson
2002-11-04 23:37 ` Rik van Riel
2002-11-05 1:14 ` Geoff Gustafson
2002-11-04 23:57 ` [ANNOUNCE] Open POSIX Test Suite Christopher Yeoh
2002-11-05 0:44 ` Geoff Gustafson
2002-11-05 2:26 ` Andreas Dilger
2002-11-05 3:35 ` Christopher Yeoh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox