VirtualBox

source: vbox/trunk/src/libs/libtpms-0.9.0/tests/tpm2_selftest.sh@ 98299

Last change on this file since 98299 was 91612, checked in by vboxsync, 3 years ago

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

  • Property svn:executable set to *
File size: 553 bytes
Line 
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_selftest
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
Note: See TracBrowser for help on using the repository browser.

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