author Carsten "Tomcat" Book <>
Mon, 08 Jun 2015 09:36:10 +0200
changeset 278417 2100ac6168480c83433aabe56fb02841966466d0
parent 269554 6f89775dedd653f25bb31e8d4e275466e10e6795
child 299572 c288fb0952fb4d3fce858255d1667dc8a88f1b20
permissions -rw-r--r--
Backed out changeset 8aaa0a247a6f (bug 1170093) for bustage

GTest-based Unit Tests

This directory contains GTest-based unit tests for NSS.

Currently, these are only loopback-type tests of libsssl,
but could be expanded to other types of tests. To make these
work do:

- Set NSS_BUILD_GTESTS=1 before starting your build

- cd tests/

- Set NSS_TESTS=ssl_gtests and NSS_CYCLES=standard

- run ./

This will run the certutil tests (generating a test db) and
will finalize with a call to the ssl_gtest

You should be able to run the unit tests manually as:

  ssl_gtest -d ${SSLGTESTDIR}

Where $SSLGTESTDIR is a directory with a database containing:
 - an RSA certificate called server (with its private key)
 - an ECDSA certificate called ecdsa (with its private key)

A directory like this is created by ./ and can be found
in a directory named something like