NSS/BoGo Tests: Difference between revisions

From MozillaWiki
< NSS
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:


=== Running BoGo Tests ===
=== Running BoGo Tests ===
Assuming a copy (in $SOURCE_DIR) and build (in $BINDIR) 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.
     git clone https://boringssl.googlesource.com/boringssl
     git clone https://boringssl.googlesource.com/boringssl
Line 9: Line 9:


Then you can run the BoGo tests.
Then you can run the BoGo tests.
     cd boringssl/ssl/test/runner
    export (DY)LD_LIBRARY_PATH=$DISTDIR/lib
     GOPATH="$PWD" go test -shim-path "$BINDIR"/nss_bogo_shim -loose-errors \
     cd ssl/test/runner
     GOPATH="$PWD" go test -shim-path "$DISTDIR"/bin/nss_bogo_shim -loose-errors \
     -allow-unimplemented -shim-config "$SOURCE_DIR/external_tests/nss_bogo_shim/config.json"
     -allow-unimplemented -shim-config "$SOURCE_DIR/external_tests/nss_bogo_shim/config.json"

Revision as of 06:27, 29 September 2016

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.

   git clone https://boringssl.googlesource.com/boringssl
   cd boringssl
   git checkout e34bcc91c07c0bf65ecc53a814d51f5246007150

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/external_tests/nss_bogo_shim/config.json"