Library Version 18.1.40

Chapter 3. Testing and Certifying the Port
Prev |  | Next

## Chapter 3. Testing and Certifying the Port

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:

- Modifying the Tests

- Running the Tests

- Reviewing the Results of the Tests

- Integrating Changes into the Berkeley DB Source Code

- Certifying a Port of Berkeley DB

## 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:

  - The `test_mutex` test is found in `src/mutex`.

  - The `test_micro` tests are found in `test/micro`. Here you will find C tests that exercise the most common code paths. However, please note that `test_micro` 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. The `test_micro` tests can either be run in a shell or as simple C tests.

- The Berkeley DB Test Suite

  The `test` directory 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 Berkeley DB engineering team for a platform compatibility test suite.

Prev |  | Next
Source Code Layout | Home | Modifying the Tests