gecko-dev/security/nss/external_tests
2015-10-05 15:56:08 -07:00
..
google_test Backed out changeset c288fb0952fb (bug 1211568) for build bustage CLOSED TREE 2015-10-05 15:56:08 -07:00
ssl_gtest Backed out changeset c288fb0952fb (bug 1211568) for build bustage CLOSED TREE 2015-10-05 15:56:08 -07:00
Makefile
manifest.mn
README Backed out changeset c288fb0952fb (bug 1211568) for build bustage CLOSED TREE 2015-10-05 15:56:08 -07:00

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 ./all.sh

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 ./all.sh and can be found
in a directory named something like

  tests_results/security/${hostname}.${NUMBER}/ssl_gtests