473,394 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

C99 test suite ?

Hello,

I'm writing a C99 preprocessor and I want to check its
compliance with the ISO standard.

I would like to know what's the best C99 test suite ?
GCC seems to have a large set of test files. Is there
something better available ?

Thanks in advance,
Jean-Marc Lienher
Aug 27 '08 #1
4 2601
oksid wrote:
Hello,

I'm writing a C99 preprocessor and I want to check its
compliance with the ISO standard.

I would like to know what's the best C99 test suite ?
GCC seems to have a large set of test files. Is there
something better available ?
Jacob Navia has published his C99 test suite in the
currently-raging thread "C99 portability challenge." You'll
have to make up your own mind about whether his conformance
test is "better" than others you've found.

--
Er*********@sun.com
Aug 27 '08 #2
Eric Sosman wrote:
oksid wrote:
>Hello,

I'm writing a C99 preprocessor and I want to check its
compliance with the ISO standard.

I would like to know what's the best C99 test suite ?
GCC seems to have a large set of test files. Is there
something better available ?

Jacob Navia has published his C99 test suite in the
currently-raging thread "C99 portability challenge." You'll
have to make up your own mind about whether his conformance
test is "better" than others you've found.
This is not true, as you well know. Nowhere did I
say that it is a "conformance suite".

--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
Aug 27 '08 #3
jacob navia wrote:
Eric Sosman wrote:
>oksid wrote:
>>Hello,

I'm writing a C99 preprocessor and I want to check its
compliance with the ISO standard.

I would like to know what's the best C99 test suite ?
GCC seems to have a large set of test files. Is there
something better available ?

Jacob Navia has published his C99 test suite in the
currently-raging thread "C99 portability challenge." You'll
have to make up your own mind about whether his conformance
test is "better" than others you've found.

This is not true, as you well know. Nowhere did I
say that it is a "conformance suite".
While it's true you didn't use the word "conformance" at
all, you did advertise the program as being able to "test"
whether a particular system did or did not have a C99 compiler.
Since a compiler is not a C99 compiler unless it conforms to
the C99 standard, any such test would necessarily need to be
a conformance test. Here's the syllogism:

Major premise: A test that indicates whether a given
compiler does or does not support C99 is a C99 conformance
test.

Minor premise: In JN's opinion, his program tests whether a
given compiler does or does not support C99.

Conclusion: Therefore, in JN's opinion his program is a C99
conformance test.

Q.E.D.

Perhaps if you'd spent a few moments pondering the difficulty
of the test you proposed to make, you'd have been less hasty to
make the attempt.

--
Eric Sosman
es*****@ieee-dot-org.invalid
Aug 28 '08 #4
Eric Sosman said:
jacob navia wrote:
>Eric Sosman wrote:
<snip>
>> Jacob Navia has published his C99 test suite in the
currently-raging thread "C99 portability challenge." You'll
have to make up your own mind about whether his conformance
test is "better" than others you've found.

This is not true, as you well know. Nowhere did I
say that it is a "conformance suite".

While it's true you didn't use the word "conformance" at
all, you did advertise the program as being able to "test"
whether a particular system did or did not have a C99 compiler.
Right. The most relevant wording, it seems, is this: "My basic idea is to
see which systems do not have a compiler that supports standard C."

<snip>
Perhaps if you'd spent a few moments pondering the difficulty
of the test you proposed to make, you'd have been less hasty to
make the attempt.
For one thing, the program does not demonstrate the "broken" VLA semantics
of gcc.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Aug 28 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

467
by: mike420 | last post by:
THE GOOD: 1. pickle 2. simplicity and uniformity 3. big library (bigger would be even better) THE BAD:
3
by: Jan Decaluwe | last post by:
I'm working on a unit test for a finite state machine (FSM). The FSM behavior is specified in a dictionary called transitionTable. It has a key per state with a tuple of possible transitions as...
0
by: Phlip | last post by:
C++ newsgroupies: I wrote a parser to solve math expressions like "3.0 ^(4 - 5)", or "3 / 8". Below my sig is test.h, the file containing a tiny test framework. Using it and Test-Driven...
2
by: Podi | last post by:
Hi, Newbie question about unittest. I am having trouble passing a variable to a test class object. MyCase class will potentially have many test functions. Any help would be much...
17
by: CBFalconer | last post by:
David Brown wrote: .... snip ... The problem with the gcc test suite is that it is geared to the gcc 'standard', rather than the ISO standard. A test suite should be open-source, and there...
3
by: rdps | last post by:
I am a newbie and that says it all about posting a basic doubt. I still hope someone helps me out . I am unit testing some modules. My test module is in diff file than the modules to be tested....
0
by: Henry S. Thompson | last post by:
Thanks to contributions from Microsoft and Sun updating and considerably extending their 2002 contributions, we now have nearly 40,000 tests for W3C XML Schema 1.0 2nd edition. All the tests are...
48
by: Ark Khasin | last post by:
Unit testing is an integral component of both "formal" and "agile" models of development. Alas, it involves a significant amount of tedious labor. There are test automation tools out there but...
2
by: prem | last post by:
Hi, Anybody know if there are any *FREE* ANSI C test suite for C/C++ for Compiler available? Any link/pointers is appreciated /Prem
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.