NSS/BoGo Tests

From MozillaWiki
< NSS
Revision as of 18:18, 11 May 2017 by Franziskus (talk | contribs)
Jump to navigation Jump to search

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"