VirtualBox

source: vbox/trunk/src/libs/libtpms-0.9.0/tests/tpm2_createprimary.sh@ 91977

最後變更 在這個檔案從91977是 91612,由 vboxsync 提交於 3 年 前

src/libs: Export libtpms-0.9.0, bugref:10078

  • 屬性 svn:executable 設為 *
檔案大小: 558 位元組
 
1#!/usr/bin/env bash
2
3# For the license, see the LICENSE file in the root directory.
4
5ROOT=${abs_top_builddir:-$(pwd)/..}
6TESTDIR=${abs_top_testdir:-$(dirname "$0")}
7DIR=${PWD}
8
9WORKDIR=$(mktemp -d)
10
11. ${TESTDIR}/common
12
13function cleanup()
14{
15 rm -rf ${WORKDIR}
16}
17
18trap "cleanup" QUIT EXIT
19
20pushd $WORKDIR &>/dev/null
21
22${DIR}/tpm2_createprimary
23rc=$?
24
25fs=$(get_filesize NVChip)
26[ $? -ne 0 ] && exit 1
27if [ $fs -ne 176832 ]; then
28 echo "Error: Unexpected size of NVChip file."
29 echo "Expected: 131072"
30 echo "Got : $fs"
31 rc=1
32fi
33
34popd &>/dev/null
35
36exit $rc
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette