473,738 Members | 10,068 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2620
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 "conformanc e 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 "conformanc e suite".
While it's true you didn't use the word "conformanc e" 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 "conformanc e suite".

While it's true you didn't use the word "conformanc e" 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
21591
by: mike420 | last post by:
THE GOOD: 1. pickle 2. simplicity and uniformity 3. big library (bigger would be even better) THE BAD:
3
1983
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 the corresponding value. A transition is defined as a number of input values, a next state, and a documentation string. I want to test each possible transition in a separate test method. For a particular transition, a test method could look as...
0
1769
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 Development, I produced the test suite and the parser, appearing in parallel posts. -- Phlip http://industrialxp.org/community/bin/view/Main/TestFirstUserInterfaces
2
3852
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 appreciated. Thanks,
17
2524
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 should probably be several of them (with some commonality), one each for C90, C99, and C0X. The tests should be clearly tied to the standard. There are several classes of tests needed, i.e. conformance, detection of errors, and quality. The last...
3
1590
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. My code is something like this : <PRE> class xyz(unittest.TestCase): def testAbc():
0
1227
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 now accompanied by metadata in the form set out in the XML Schema Test Suite Framework . The community owes a big "Thank You" to NIST, Sun and Microsoft for contributing their extensive test collections -- we welcome further contributions!
48
2503
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 from what limited exposure I've had, they are pricey, reasonably buggy, and require compiler/target adaptation. Out of my frustration with two out of two of them came my own. Its instrumentation approach is based solely on profound abuse of the C
2
2035
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
8969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8788
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9335
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6751
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.