Topic: Test-Suite for STL


Author: comeau@panix.com (Greg Comeau)
Date: 1997/03/03
Raw View
In article <darin-ya02408000R2502971131220001@news> darin@goonsquad.spies.com (Darin Adler) writes:
>James Kanze <james-albert.kanze@vx.cit.alcatel.fr> wrote:
>> Werner@RUS.Uni-Stuttgart.DE (Andreas Werner) writes:
>> > Is there a test-suite for STL?
>>
>> There's not even a complete definition, so how could you implement a
>> test suite.

This is true, however, suite vendors have always released something
with moving targets.

>Check out http://www.plumhall.com/suites.html.

There's also DinkumWare, Modena, and probably some other suites
for STL too, if not released, at least in progress.

- Greg
--
       Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418-3214
               Producers of Comeau C++ 4.0 front-end pre-release
****WEB: http://www.comeaucomputing.com / Voice:718-945-0009 / Fax:718-441-2310
 Here:comeau@comeaucomputing.com / BIX:comeau or comeau@bix.com / CIS:72331,3421
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu
]





Author: darin@goonsquad.spies.com (Darin Adler)
Date: 1997/02/26
Raw View
James Kanze <james-albert.kanze@vx.cit.alcatel.fr> wrote:
> Werner@RUS.Uni-Stuttgart.DE (Andreas Werner) writes:
> > Is there a test-suite for STL?
>
> There's not even a complete definition, so how could you implement a
> test suite.

Check out http://www.plumhall.com/suites.html.

Here's a quote from that page:

"LibSuite++TM: The Plum Hall Validation Suite for The Draft Standard C++
Library tests the more traditional components of your C++ library, like
language support and iostreams classes, as well as the more recent
additions, like Hewlett Packard's Standard Template Library (STL)."

Darin
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]





Author: ivor@netbox.com (Ivor O'Connor)
Date: 1997/02/26
Raw View
On 18 Feb 1997 10:09:39 PST, Werner@RUS.Uni-Stuttgart.DE (Andreas Werner) wrote:

>Hi there,
>
>it may be a FAQ, but I haven't found one:
>
>Is there a test-suite for STL? I would like to REALLY test
>the compatibility of some C++-Compilers HP/SGI/IBM/Sun/Cray
>to STL before I really start using it.

Try Dinkum software. They may have something like this. The
way I read their home page they have one. No idea if it is for
common useage though...

>
>If not, is there a public-domain code that makes extensive
>use of STL, so one could try to compile it in order to find
>problems ?
>
>Andreas
>---
>Andreas Werner              | Computer Center, University of Stuttgart
>werner@rus.uni-stuttgart.de | Dept. Computer Simulation and Visualization
>Tel.: ++49-(0)711-685-5789  | Allmandring 30a
>Fax.: ++49-(0)711-678-7626  | D-70550 Stuttgart, Germany
>---
>[ comp.std.c++ is moderated.  To submit articles: Try just posting with your
>                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
>  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
>  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
>  Comments? mailto:std-c++-request@ncar.ucar.edu
>]
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu
]





Author: James Kanze <james-albert.kanze@vx.cit.alcatel.fr>
Date: 1997/02/25
Raw View
Werner@RUS.Uni-Stuttgart.DE (Andreas Werner) writes:

|>  Is there a test-suite for STL?

There's not even a complete definition, so how could you implement a
test suite.  (To test exception safety, for example, I instantiate
templates over a class which counts constructors and destructors, and
which can trigger an exception at precise moments, e.g.: the third call
to the constructor.  To test a template for exception safety, however,
you first have to define what it should support.)

--
James Kanze      home:     kanze@gabi-soft.fr        +33 (0)1 39 55 85 62
                 office:   kanze@vx.cit.alcatel.fr   +33 (0)1 69 63 14 54
GABI Software, Sarl., 22 rue Jacques-Lemercier, F-78000 Versailles France
     -- Conseils en informatique industrielle --
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]





Author: herbs@cntc.com (Herb Sutter)
Date: 1997/02/25
Raw View
James Kanze <james-albert.kanze@vx.cit.alcatel.fr> wrote:
>Werner@RUS.Uni-Stuttgart.DE (Andreas Werner) writes:
>|>  Is there a test-suite for STL?
>
>There's not even a complete definition, so how could you implement a
>test suite.  (To test exception safety, for example, I instantiate
>templates over a class which counts constructors and destructors, and
>which can trigger an exception at precise moments, e.g.: the third call
>to the constructor.  To test a template for exception safety, however,
>you first have to define what it should support.)

If you mean you're testing STL for exception safety, is there really any
point at the moment?  Container behaviour in the presence of exceptions is
generally undefined... for example, it's not guaranteed that a container
(e.g., a vector<T>) will even be destructible if a T operation throws.

---
Herb Sutter (mailto:herbs@cntc.com)

Current Network Technologies Corp.
2695 North Sheridan Way, Suite 150, Mississauga ON Canada   L5K 2N6
Tel 416-805-9088   Fax 905-822-3824
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu
]





Author: Werner@RUS.Uni-Stuttgart.DE (Andreas Werner)
Date: 1997/02/18
Raw View
Hi there,

it may be a FAQ, but I haven't found one:

Is there a test-suite for STL? I would like to REALLY test
the compatibility of some C++-Compilers HP/SGI/IBM/Sun/Cray
to STL before I really start using it.

If not, is there a public-domain code that makes extensive
use of STL, so one could try to compile it in order to find
problems ?

Andreas
---
Andreas Werner              | Computer Center, University of Stuttgart
werner@rus.uni-stuttgart.de | Dept. Computer Simulation and Visualization
Tel.: ++49-(0)711-685-5789  | Allmandring 30a
Fax.: ++49-(0)711-678-7626  | D-70550 Stuttgart, Germany
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu
]





Author: Jason Merrill <jason@cygnus.com>
Date: 1997/02/20
Raw View
>>>>> Andreas Werner <Werner@RUS.Uni-Stuttgart.DE> writes:

> Is there a test-suite for STL? I would like to REALLY test
> the compatibility of some C++-Compilers HP/SGI/IBM/Sun/Cray
> to STL before I really start using it.

> If not, is there a public-domain code that makes extensive
> use of STL, so one could try to compile it in order to find
> problems ?

There are the ObjectSpace STL examples, available from

  http://www.objectspace.com/Products/cpp_libraries/stltk/examples.html

And, adjusted to use the SGI STL implementation:

  ftp://ftp.cygnus.com/pub/g++/stl-examples.zip
  ftp://ftp.cygnus.com/pub/g++/stl-examples.tar.gz

Jason
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]