This package was originally a test suite for libFoundation, but we moved it out of libFoundation so other Foundation libraries can also be tested. All the tests are written in DejaGnu using some procedures that allow you to write Objective-C like messages in TCL. There are more than 140 tests written for Foundation Kit classes and FoundationExtensions classes.
Earlier versions of this test suite has also been tested with NeXTStep 3.3 foundation library. This version does no longer support this old and buggy library.
The test suite compiles and runs with libFoundation, gnustep-base and OPENSTEP's 4.x Foundation library.
To compile this library you should first build the Objective-C test library (objc-test), which contains the files that are common to all the Objective-C testing frameworks based on DejaGnu (currently FoundationTestsuite and the test suite from GNUstep Database Library).
Note that if you're using this test suite with libFoundation, you should have been installed the library first or at least the resource files, otherwise the driver program will not work. Also please note that the test suite compiles only in the GNUstep environment so you'll have to install the GNUstep makefile package and configure libFoundation in the GNUstep environment.
Before you start compiling the library you first have to run configure:
./configure
Then you can build the library for the combination of libraries you want:
make library_combo=...
If you don't set one the default library combo will be used.
Notes
Here are some instructions about how to configure and compile the test suite on different systems:
i386-next-nextstep4 with OPENSTEP's Foundation library:
You should use the native compiler to build the test suite, so run configure using:
CC=cc ./configure
Then compile the library by passing the appropriate library combo:
make library_combo=nx_nx_nx_nil
When the compilation ends, run the checks, but don't forget to pass the library combo:
make library_combo=nx_nx_nx_nil check
i386-next-nextstep4 with libFoundation/GNU runtime:
On OpenStep 4.x if you have compiled libFoundation with GNU runtime you have to explicitly specify the compiler and pass the libgcc.a in the LIBS
- variable
LIBS=-lgcc ./configure
