home *** CD-ROM | disk | FTP | other *** search
- Submitted-by: emery@goldfinger.mitre.org (David Emery)
-
- An issue that many people forget is that there is no such thing as a
- test suite against a (language-independent) interface. All test
- suites are written in a programming language, and therefore test the
- programming language binding (C, FORTRAN, Ada, Esperanto, whatever.)
-
- If you have language-independent interface specifications, then test
- assertions against that LI specification might make sense. If you are
- testing a language binding, then I see no reason for worrying about
- test assertions. Instead, write the actual test, in the programming
- language. This avoids the issue of whether a test suite correctly
- implements the assertion. In the case of the current POSIX.1
- standard, we have test assertions against a C language binding. I
- don't find this very useful.
-
- The Ada compiler tests (Ada Compiler Validation Facility) are freely
- available. They are used by implementors to test/debug their
- compilers, by (suspicious) users to make sure that the compiler meets
- the test, and by the Ada validation facilities (worldwide) to validate
- Ada compilers against the DoD validation criteria. They are
- maintained by the Ada Validation Office, and the number of ACVC tests
- has at least doubled since its inception, as new tests are developed
- to validate parts of the language, and interactions between language
- features, that were not included in previous tests. Contrast this to
- the POSIX approach, where the assertions (of no practical use to
- anyone except a test developer) are open, but actual test suites are
- proprietary to the test labs. And, in POSIX, the test assertions have
- the same development/modification/interpretation/improvement overhead
- as the basic POSIX.1 standard, making it very hard to add new
- tests/assertions as we learn more about testing POSIX compliance.
-
- Frankly, I think the time and effort would have been better spent
- developing actual C test suites for POSIX conformance, rather than
- spending all of that time developing test methods that require
- translation into C to be of any practical use to anyone besides a test
- suite developer. This might put some test suite developers out
- of business, but it would be much more useful for the community as a
- whole.
- dave
-
-
- Volume-Number: Volume 31, Number 17
-
-