Chapter 3. Testing and Certifying the Port
Table of Contents
Types of Tests for Berkeley DB
Reviewing the Results of the Tests
Integrating Changes into the Berkeley DB Source Code
Certifying a Port of Berkeley DB
There are several different types of tests available for validating your port of Berkeley DB as discussed in Types of Tests for Berkeley DB. Testing your port involves:
Types of Tests for Berkeley DB
There are two types of tests available for testing your port of Berkeley DB:
The C Tests for Berkeley DB
There are two types of C tests for Berkeley DB. Each of these is in its own directory:
test_mutexcontains files that test the use of mutexes in Berkeley DB.test_microcontains the C tests that exercise the most common code paths, but it is not intended to be an exhaustive Test Suite. Additionally, it tests the different versions of Berkeley DB (including the new port) against each other. Thetest_microtests can either be run in a shell or as simple C tests.
The Berkeley DB Test Suite
The
testdirectory contains the Berkeley DB Test Suite that tests all of the code in Berkeley DB. Using the Test Suite involves using Tool Command Language (Tcl) version 8.5 or later. Running the standard version of the Test Suite executes tests the major functionality of Berkeley DB. A more exhaustive version of the Test Suite runs all the tests several more times, testing encryption, replication, and different page sizes.
Note
Contact the Oracle Berkelely DB engineering team for a platform compatibility test suite.