Building and testing HAMT
Since HAMT is implemented as 2 C++ headers, only the tests are built. Upon completion, there should be
3 executables in the bin subdirectory.
hamt-eh-test.exe - exception safety tests.
hamt-hash-test.exe - hash functions tests.
hamt-test.exe - regression tests. These require test6.in to be in the same directory.
Unless you use GNU autotools for building, you'll need to run the tests manually. The tests print some progress
messages, and indicate a failure by a corresponding error message (this will be changed in a future to follow
'quiet if successful' pattern).
Windows
Use one of the following methods:
- VS.NET workspace, located in the
build/msvc-7.1 subdirectory of the package.
- Jam file for the Boost.build system. Edit the file 'boost-build.jam' by setting the path to the
Boost.build tools, and run bjam.
- There's also a standard make file, which is usable with Microsoft's nmake and GNU make.
Linux and Cygwin
Use one of the following methods:
- GNU autotools. Run
./configure , then make .
Upon success, use make check to run the tests. Use make install to
install HAMT headers.
- Jam file for the Boost.build system. Edit the file 'boost-build.jam' by setting the path to the
Boost.build tools, and run bjam.
- There's also a standard make file, which is usable with GNU make.
|