Blame nss/external_tests/README
|
Packit |
40b132 |
GTest-based Unit Tests
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
This directory contains GTest-based unit tests for NSS.
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
Currently, these are only loopback-type tests of libsssl,
|
|
Packit |
40b132 |
but could be expanded to other types of tests. To make these
|
|
Packit |
40b132 |
work do:
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
- Set NSS_BUILD_GTESTS=1 before starting your build
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
- cd tests/
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
- Set NSS_TESTS=ssl_gtests and NSS_CYCLES=standard
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
- run ./all.sh
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
This will run the certutil tests (generating a test db) and
|
|
Packit |
40b132 |
will finalize with a call to the ssl_gtest
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
You should be able to run the unit tests manually as:
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
ssl_gtest -d ${SSLGTESTDIR}
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
Where $SSLGTESTDIR is a directory with a database containing:
|
|
Packit |
40b132 |
- an RSA certificate called server (with its private key)
|
|
Packit |
40b132 |
- an ECDSA certificate called ecdsa (with its private key)
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
A directory like this is created by ./all.sh and can be found
|
|
Packit |
40b132 |
in a directory named something like
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
tests_results/security/${hostname}.${NUMBER}/ssl_gtests
|