aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xm-test/tests/vtpm/02_vtpm-cat_pcrs.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/xm-test/tests/vtpm/02_vtpm-cat_pcrs.py')
-rw-r--r--tools/xm-test/tests/vtpm/02_vtpm-cat_pcrs.py49
1 files changed, 0 insertions, 49 deletions
diff --git a/tools/xm-test/tests/vtpm/02_vtpm-cat_pcrs.py b/tools/xm-test/tests/vtpm/02_vtpm-cat_pcrs.py
deleted file mode 100644
index a18cbab2f7..0000000000
--- a/tools/xm-test/tests/vtpm/02_vtpm-cat_pcrs.py
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/usr/bin/python
-
-# Copyright (C) International Business Machines Corp., 2006
-# Author: Stefan Berger <stefanb@us.ibm.com>
-
-# Positive Test: create domain with virtual TPM attached at build time,
-# check list of pcrs
-
-from XmTestLib import *
-from vtpm_utils import *
-import commands
-import os
-import os.path
-import atexit
-
-config = {"vtpm":"instance=1,backend=0"}
-domain = XmTestDomain(extraConfig=config)
-domName = domain.getName()
-
-try:
- console = domain.start()
-except DomainError, e:
- if verbose:
- print e.extra
- FAIL("Unable to create domain (%s)" % domName)
-
-atexit.register(vtpm_cleanup, vtpm_get_uuid(domid(domName)))
-
-try:
- console.sendInput("input")
-except ConsoleError, e:
- saveLog(console.getHistory())
- FAIL(str(e))
-
-try:
- run = console.runCmd("cat /sys/devices/xen/vtpm-0/pcrs")
-except ConsoleError, e:
- saveLog(console.getHistory())
- FAIL("No result from dumping the PCRs")
-
-if re.search("No such file",run["output"]):
- FAIL("TPM frontend support not compiled into (domU?) kernel")
-
-domain.closeConsole()
-
-domain.stop()
-
-if not re.search("PCR-00:",run["output"]):
- FAIL("Virtual TPM is not working correctly on /dev/vtpm on backend side")