• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tpm2-software / tpm2-abrmd / 977 / 1
80%
master: 80%

Build:
DEFAULT BRANCH: master
Ran 30 Nov 2018 05:37PM UTC
Files 62
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Nov 2018 05:33PM UTC coverage: 80.378% (+0.02%) from 80.354%
977.1

push

travis-ci

flihp
tcti: Refactor TCTI classes to use a factory pattern.

This commit cleans up some of the oldest code in the project to more
effectively use the dynamic TCTI initialization mechanisms. We've
supported the dynamic init API / protocol for a while now but I put off
going back to pay down this technical debt given the scope of the work.
Can't put it off any longer though.

The Tcti class is now a concrete class instead of an abstract one. The
use of an abstract class was necessary when the TCTI libraries didn't
support the dynamic initialization mechanism. When this was first added,
all concrete implementations of this class were replaced with a single
TctiDynamic class since the only unique code was the initialization
calls. Using this single class derived from the abstract base was just
my way of avoding this cleanup.

A new class called TctiFactory now encapsulates the Tcti creation /
initialization logic. When it's constructed we pass it the TCTI name and
configuration string (all that's necessary to instantiate a TCTI
context). We then call the 'tcti_factory_create' function to create
instances of the Tcti class that wrap a TSS2_TCTI_CONTEXT.

The rest of the changes in this commit are associated changes in the
test harness. These changes replace the old EchoTcti / libtss2-tcti-echo
with a much more simple 'mock' tcti that can be used directly with the
concrete Tcti & TctiFactory.

Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>

2937 of 3654 relevant lines covered (80.38%)

572.95 hits per line

Source Files on job 977.1
  • Tree
  • List 0
  • Changed 6
  • Source Changed 3
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 112
  • Travis Job 977.1
  • 3b2cae87 on github
  • Prev Job for on master (#975.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc