From a76291c2e2e6c049682d98fc622a41be6d7e7334 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moise=CC=81s=20Guimara=CC=83es?= Date: Thu, 2 Jun 2016 21:38:34 -0300 Subject: [PATCH] adds tox instructions --- wrapper/python/README.rst | 29 +++++++++++++++++++++++++++ wrapper/python/wolfcrypt/__about__.py | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/wrapper/python/README.rst b/wrapper/python/README.rst index 494be1e02..d5fde45a1 100644 --- a/wrapper/python/README.rst +++ b/wrapper/python/README.rst @@ -110,3 +110,32 @@ Testing ``wolfcrypt`` : python -c "from wolfcrypt.hashes import Sha; print Sha().hexdigest()" expected output: **da39a3ee5e6b4b0d3255bfef95601890afd80709** + + +Testing ``wolfcrypt``'s source code with ``tox`` : +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +To run the unit tests in the source code, you'll need ``tox`` and a few other +requirements. The source code relies at 'WOLFSSL_DIR/wrapper/python' where +WOLFSSL_DIR is the path of ``wolfssl``'s source code. + +1. Make sure that the testing requirements are installed: + +.. code-block:: console + + $ sudo -H pip install -r requirements-testing.txt + + +2. Run ``tox``: + +.. code-block:: console + + $ tox + ... + _________________________________ summary _________________________________ + py27: commands succeeded + SKIPPED: py34: InterpreterNotFound: python3.4 + py35: commands succeeded + congratulations :) + +Note that some tests might be skipped if you don't have the proper interpreter. diff --git a/wrapper/python/wolfcrypt/__about__.py b/wrapper/python/wolfcrypt/__about__.py index b5c1697d0..b5c05386a 100644 --- a/wrapper/python/wolfcrypt/__about__.py +++ b/wrapper/python/wolfcrypt/__about__.py @@ -20,7 +20,7 @@ metadata = dict( __name__ = "wolfcrypt", - __version__ = "0.1.7", + __version__ = "0.1.8", __license__ = "GPLv2 or Commercial License", __author__ = "wolfSSL Inc.", __author_email__ = "info@wolfssl.com",