Difference between revisions of "Testing and Development Tools and Tips"

From OpenSSLWiki
Jump to navigationJump to search
(Created page, initial sections)
 
(Flesh out Testing Environment and Tools)
Line 2: Line 2:
  
 
== Testing Environment and Tools ==
 
== Testing Environment and Tools ==
 +
In [https://github.com/mbland/openssl/compare/test-util the test-util branch of Mike Bland's fork] are a few helper files that you may wish to copy or pull into your branch.
 +
 +
=== test/testutil.h ===
 +
Defines the generic <code>SETUP_TEST_FIXTURE</code> and <code>EXECUTE_TEST</code> macros. Should be pulled into the mainline pending acceptance of [https://github.com/openssl/openssl/pull/126 pull request #126].
 +
 +
=== test/new-test.sh ===
 +
Generates a new automated test stub, following [http://mike-bland.com/2014/06/05/pseudo-xunit-pattern.html the Pseudo-xUnit Pattern] and using the macros from <code>test/testutil.h</code>. The generated stub will compile standalone.
 +
 +
=== test/test_env.bash ===
 +
Environment variables, functions, and aliases to help with OpenSSL unit testing. The header comments contain documentation on each of the functions and aliases in the file.
  
 
== Cscope ==
 
== Cscope ==

Revision as of 16:43, 10 June 2014

This is a collection of helpful tools and tips for navigating the OpenSSL code base and managing a local git repository.

Testing Environment and Tools

In the test-util branch of Mike Bland's fork are a few helper files that you may wish to copy or pull into your branch.

test/testutil.h

Defines the generic SETUP_TEST_FIXTURE and EXECUTE_TEST macros. Should be pulled into the mainline pending acceptance of pull request #126.

test/new-test.sh

Generates a new automated test stub, following the Pseudo-xUnit Pattern and using the macros from test/testutil.h. The generated stub will compile standalone.

test/test_env.bash

Environment variables, functions, and aliases to help with OpenSSL unit testing. The header comments contain documentation on each of the functions and aliases in the file.

Cscope

Vim Integration

Ctags

Vim Integration

git-new-workdir