commit | b194be9b3d2d9e10045e1d6a767c630b77f1b491 | [log] [tgz] |
---|---|---|
author | Philip Tricca <philip.b.tricca@intel.com> | Tue Mar 15 13:27:09 2016 -0700 |
committer | Philip Tricca <philip.b.tricca@intel.com> | Wed Mar 16 15:15:07 2016 -0700 |
tree | c8159384e47a1404bf78a239124043dbdc6da0be | |
parent | ca70f4bafb6c93d594a8a4292ce3b66698aa91ce [diff] |
test: Integrate cmocka into autotools build, add basic test case for device TCTI. The current test layout I'm trying is a module (.c & .h file) in the base test/ directory that is a collection of test functions for a specific module of code from the tpm2.0-tss project. This test module is named after the module it tests and the suffix '_test' is appended. There should be NO dependency on the test framework in this module. This test module is accompanied by a driver that sets up the test framework with the tests from the module. This driver is given the name of the module that it tests. Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
This stack consists of the following layers from top to bottom:
Since the FAPI and ESAPI haven't been implemented yet, this repository only contains the SAPI and layers below it, plus a test application for exercising the SAPI.
The test application, tpmclient, tests many of the commands against the TPM 2.0 simulator. The tpmclient application can be altered and used as a sandbox to test and develop any TPM 2.0 command sequences, and provides an excellent development and learning vehicle.
TPM 2.0 specifications can be found at Trusted Computing Group.