Any suite of programs written in C++ ???

Hello,

I have been searching for a set of programs written in C++ (using object-oriented features), but I have not been able to find what I was looking for.

I need some programs with a certain entity (I don't want a simple exmaple program with one or two classes...). I need these programs have also a test suite defined (preferably, test cases made manually, i.e., without using a library as QTest for instance).

I know there is a free suite for the C programming language, but for C++ I can find nothing, except searching in open source code forge, but this is really though.

Can anyone help, please?
closed account (o3hC5Di1)
Hi there,

With this page on github: https://github.com/search/advanced you can search by language.
That should provide you with enough material.

There are a lot of open source programs out there written in c++, I believe Doom 3 was made open source, KDE for linux is open source, etc, etc.

All the best,
NwN
Hi NwN,

I already knew this possibility, thanks anyway. However, each program uses a different way to define its test suite and that is a problem to me for I would have to translate these test cases to be able to use them in my own way and this is really weary... And many programs do not even have a test suite defined (for instance, Doom3).

Any program of that kind with manual test cases written in C++?
I have to admit that I'm not really getting you.

set of programs written in C++

Do you mean a project that builds a set of applications which all share a set of common based classes, etc (basically, its own "SDK")

with a certain entity

What particular entity?

test suite defined (preferably, ... manually, ...)

OK... but it's also a problem for you if

each program uses a different way to define its test suite

so you need a set of hand-written classes all written in the same way?

I know there is a free suite for the C programming language

Which suite are you referring to here. If we knew what it was it will be easier to get what you want C++-wise.

Andy
Last edited on
Hi andywestken,

I will try to provide a more precise description,,

The set of programs for C I was referring is a set of programs developed by the Siemens Corporate Research. A brief description is here:

http://sir.unl.edu/portal/bios/gzip.php#siemens

and a study with those programs here:

http://www.inf.ed.ac.uk/teaching/courses/seoc/2004_2005/resources/hutchins.pdf

What I want to find are some C++ programs to test some features of this language (individual programs, of course). When I say "with a certain entity" I refer to programs with some importance, either they are known by the general public or they have been used in other studies like the aforementioned for C... I don't need a simple fragment of code is what I mean.

In addition, to test those programs I would need they had a pool of sample test cases for each program. With "manually" I mean that those test cases were written in C++ and only in this language as some people use frameworks like CppUnit or GoogleTest for this purpose, to give you an example.

Thanks,

Pedro.
Latest GCC is a C++ program. It is not trivial. It contains multiple executables. It does have a testsuite (but might not be "written in C++").
Well, CppUnit and GoogleTest are themselves written in C++, so would their use preclude you from using a program suite?

Anyway, the only programs I can think of which might satisfy your criteria are the various Boost libraries:

1. they're well known
2. they're well-written in modern C++
3. they have tests written in C++
4. and they are not GUI-based

Most open source projects I can think of are GUI based apps, which are not so test friendly.

Have you asked on more academic forums about a C++ equivalent to the Seimens programs?

Andy
Last edited on
Thanks both,

Maybe the Boost libraries are useful for me... I have to look at depth these libraries. By now, I have found Armadillo that is related to the Boost Basic Linear Algebra Subprograms (uBLAS) library and provides some examples of usage. Thanks for your help.


Have you asked on more academic forums about a C++ equivalent to the Seimens programs?


No, I think this is the first forum I have asked. Any suggestions?

Pedro.
Hi,

It's me again. I've been analyzing the Boost libraries and some other libraries, but they are mostly too specific. I mean, the tests don't check a whole program, but the implementation in the library of "list" or "vector", for instance.

I would need a program with a more general purpose and a bit more simple. For instance, I have found this program, a XML parser in C++.

https://github.com/leethomason/tinyxml2

The great part of the code is in tinyxml2.cpp and the tests are in xmltests.cpp. Tests are really simple and easy to understand as they are manual.

Do you know any other programs of this kind?

Thanks,

Pedro.
Topic archived. No new replies allowed.