• Home
  • Raw
  • Download

Lines Matching +full:enable +full:- +full:integration +full:- +full:tests

1 …x Build Status](https://travis-ci.org/tpm2-software/tpm2-tss.svg?branch=master)](https://travis-ci…
2 …projects/status/2rdmyn1ndkiavngn?svg=true)](https://ci.appveyor.com/project/tpm2-software/tpm2-tss)
3 …tus](https://api.cirrus-ci.com/github/tpm2-software/tpm2-tss.svg?branch=master)](https://cirrus-ci…
4 … Scan](https://img.shields.io/coverity/scan/3997.svg)](https://scan.coverity.com/projects/tpm2-tss)
5 …us](https://codecov.io/gh/tpm2-software/tpm2-tss/branch/master/graph/badge.svg)](https://codecov.i…
7 …shields.io/lgtm/alerts/g/tpm2-software/tpm2-tss.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/proj…
8 …elds.io/lgtm/grade/cpp/g/tpm2-software/tpm2-tss.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/proj…
9 …mentation Status](https://readthedocs.org/projects/tpm2-tss/badge/?version=latest)](https://tpm2-t…
10 …//oss-fuzz-build-logs.storage.googleapis.com/badges/tpm2-tss.svg)](https://bugs.chromium.org/p/oss
11 …es.gitter.im/tpm2-software/community.svg)](https://gitter.im/tpm2-software/community?utm_source=ba…
17 …the [TSS 2.0 Feature API Specification](https://trustedcomputinggroup.org/wp-content/uploads/TSS_F…
18 …ypes and Policy Language Specification](https://trustedcomputinggroup.org/wp-content/uploads/TSS_J…
19 This API is designed to be very high-level API, intended to make programming with the TPM as simple…
20 The API functions are exposed through a single library: libtss2-fapi.
21 … Specification](https://trustedcomputinggroup.org/wp-content/uploads/TSS_ESAPI_Version-0.9_Revisio…
22 This API is a 1-to-1 mapping of the TPM2 commands documented in Part 3 of the TPM2 specification.
25 Both the synchronous and asynchronous API are exposed through a single library: libtss2-esys.
27 This API is a 1-to-1 mapping of the TPM2 commands documented in Part 3 of the TPM2 specification.
29 These asynchronous variants may be useful for integration into event-driven programming environment…
30 Both the synchronous and asynchronous API are exposed through a single library: libtss2-sys.
31 …ion](https://trustedcomputinggroup.org/wp-content/uploads/TSS_Marshaling_Unmarshaling_API_Version-
33 The Marshaling/Unmarshaling API is exposed through a library called libtss2-mu.
37 Currently this repository provides two TCTI implementations: libtss2-tcti-device and libtss2-tcti-m…
40 …tion](https://trustedcomputinggroup.org/wp-content/uploads/TSS_Overview_Common_Structures_Version-
43 Instructions to build and install tpm2-tss are available in the [INSTALL](INSTALL.md) file.
47 We also have an IRC channel set up on [FreeNode](https://freenode.net/) called \#tpm2.0-tss.
48 …es.gitter.im/tpm2-software/community.svg)](https://gitter.im/tpm2-software/community?utm_source=ba…
54 …he [INSTALL](INSTALL.md) file) or browsed directly on [tpm2-tss.readthedocs.io](https://tpm2-tss.r…
64 …ey provide a binary download for Windows [here](https://www.microsoft.com/en-us/download/details.a…
75 To test the various TCTI, SAPI and ESAPI api calls, unit and integration tests can
76 be run by configuring the build to enable unit testing and running the "check"
78 simulator will be automatically launched by the tests. Please review the
82 $ ./configure --enable-unit --enable-integration
83 $ make -j$(nproc) check
85 This will generate a file called "test-suite.log" in the root of the build
90 NOTE: The unit and integration tests can be enabled independently.
91 The --enable-unit option controls unit tests, and --enable-integration
92 controls the integration tests.
94 ### Running tests on physical TPM device
95 To run integration tests on a physical TPM device, including a TPM hardware
98 The first option is called --with-ptpm and it is used to point to the TPM
102 $ ./configure --with-ptpm=/dev/tpm0
104 The second option, --with-ptpmtests, enables a "class" of test.
106 1. destructive - these tests can affect TPM capability or lifespan
107 2. mandatory - these tests check all the functionality that is mandatory
109 3. optional - these tests are for functionality that is optional per the
112 For example to enable both mandatory and optional test cases during configure
116 $ ./configure --with-ptpmtests="mandatory,optional"
120 The two flags are only valid when the integration tests are enabled with
121 --enable-integration flag.
127 $ sudo make check-ptpm
131 $ sudo make check -j 1
134 Note: The tests can not be run in paralel.
137 The unit and integration tests can be run under the valgrind tool, which
139 leak checks etc. The following command is used to run the tests under
142 $ make check-valgrind
144 This command will enable all valgrind "tools" and kick off as many test
145 as many tools it supports. It is possible to enable different valgrind
147 different tools separately using check-valgrind-<tool>, for instance:
150 $ make check-valgrind-memcheck
154 $ make check-valgrind-drd
159 memcheck - Performs memory related checks. This is the default tool.
160 helgrind - Performs synchronization errors checks.
161 drd - Performs thread related checks.
162 sgcheck - Performs stack overrun related checks.
168 $ libtool exec valgrind --tool=memcheck --leak-check=full \
169 test/integration/esys-auto-session-flags.int
175 While investigating issues it might be helpful to enable extra debug/trace
197 │ ├── tss2-esys : enhanced system API (ESAPI) implementation\
199 │ ├── tss2-mu : TPM2 type marshaling/unmarshaling (MU) API implementation\
200 │ ├── tss2-sys : system API (SAPI) implementation\
202 │ ├── tss2-tcti : TCTI implementations for device and mssim\
205    ├── integration : integration test harness and test cases\
207    └── unit : unit tests