NSS/BoGo Tests: Difference between revisions
< NSS
Jump to navigation
Jump to search
Franziskus (talk | contribs) No edit summary |
Franziskus (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
=== Running BoGo Tests === | === Running BoGo Tests === | ||
Assuming a copy (in $SOURCE_DIR) and build (in $DISTDIR) of NSS are present. | Assuming a copy (in $SOURCE_DIR) and build (in $DISTDIR) of NSS are present. | ||
First get a copy of boringssl and checkout a specific version. | First get a copy of boringssl and checkout a specific version (check [https://searchfox.org/nss/source/tests/bogo/bogo.sh#28 source] for currently used revision). | ||
git clone https://boringssl.googlesource.com/boringssl | git clone https://boringssl.googlesource.com/boringssl | ||
cd boringssl | cd boringssl | ||
git checkout | git checkout bbfe603519bc54fbc4c8dd87efe1ed385df550b4 | ||
Then you can run the BoGo tests. | Then you can run the BoGo tests. |
Revision as of 18:18, 11 May 2017
BoGo is the TLS test suite for boringssl that can be easily ported to other TLS libraries (BoGo Porting).
Running BoGo Tests
Assuming a copy (in $SOURCE_DIR) and build (in $DISTDIR) of NSS are present. First get a copy of boringssl and checkout a specific version (check source for currently used revision).
git clone https://boringssl.googlesource.com/boringssl cd boringssl git checkout bbfe603519bc54fbc4c8dd87efe1ed385df550b4
Then you can run the BoGo tests.
export (DY)LD_LIBRARY_PATH=$DISTDIR/lib cd ssl/test/runner GOPATH="$PWD" go test -shim-path "$DISTDIR"/bin/nss_bogo_shim -loose-errors \ -allow-unimplemented -shim-config "$SOURCE_DIR/gtests/nss_bogo_shim/config.json"