Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Bug 1208243 - Enable ssl_gtest if built, r=ekr
--HG-- extra : amend_source : 5e545e34d5d6e7d3be9ca7adbd9c41383bc3b039
- Loading branch information
1 parent
9a8e90f
commit 8c736f3
Showing
6 changed files
with
94 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,15 @@ | ||
GTest-based Unit Tests | ||
|
||
This directory contains GTest-based unit tests for NSS. | ||
This directory contains GTest-based unit tests for NSS libssl. | ||
|
||
Currently, these are only loopback-type tests of libsssl, | ||
but could be expanded to other types of tests. To make these | ||
work do: | ||
These aren't built by default, because they require C++. | ||
To build them, set ``NSS_BUILD_GTESTS=1'' | ||
|
||
- Set NSS_BUILD_GTESTS=1 before starting your build | ||
Once built, they are run as part of running ``test/all.sh'' | ||
You can run just the GTests by running ``tests/ssl_gtests/ssl_gtests.sh'' | ||
|
||
- 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 | ||
They can be run standalone or under a debugger by invoking the ssl_gtest | ||
executable with a ``-d'' option pointing to the directory created by either | ||
of the above options. You can find that in | ||
|
||
tests_results/security/${hostname}.${NUMBER}/ssl_gtests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/\<testcase/{ | ||
s/^.* name="\([^"]*\)" value_param="\([^"]*\)" status="\([^"]*\)" time="[^"]*" classname="\([^"]*\)".*$/\3 '\4: \1 \2'/ | ||
t end | ||
s/^.* name="\([^"]*\)" status="\([^"]*\)" time="[^"]*" classname="\([^"]*\)".*$/\2 '\3: \1'/ | ||
t end | ||
} | ||
d | ||
: end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters