1
#;**********************************************************************;
3
# Copyright (c) 2016, Intel Corporation
6
# Redistribution and use in source and binary forms, with or without
7
# modification, are permitted provided that the following conditions are met:
9
# 1. Redistributions of source code must retain the above copyright notice,
10
# this list of conditions and the following disclaimer.
12
# 2. Redistributions in binary form must reproduce the above copyright notice,
13
# this list of conditions and the following disclaimer in the documentation
14
# and/or other materials provided with the distribution.
16
# 3. Neither the name of Intel Corporation nor the names of its contributors
17
# may be used to endorse or promote products derived from this software without
18
# specific prior written permission.
20
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
24
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30
# THE POSSIBILITY OF SUCH DAMAGE.
31
#;**********************************************************************;
33
####before this script, please make sure all test scripts copy here, TPM is initialized.
37
PATH="$PATH":"$new_path"
39
rm test_all_pass.log test_all_fail.log
46
echo -e "\033[32m $1 pass \033[0m"
48
echo "$1 pass" >>test_all_pass.log
50
echo -e "\033[31m $1 Fail, press any key to continue.... \033[0m"
51
echo "$1 fail" >>test_all_fail.log
56
func test_tpm2_takeownership_all.sh
60
func test_tpm2_listpcrs.sh
62
func test_tpm2_getrandom.sh
64
##func test_tpm2_createprimary_all.sh
65
##func test_tpm2_create_all.sh
66
func test_tpm2_load.sh
67
func test_tpm2_loadexternal.sh
69
func test_tpm2_evictcontrol.sh
71
func test_tpm2_hash.sh
72
func test_tpm2_hmac.sh
74
func test_tpm2_quote.sh
75
func test_tpm2_unseal.sh
77
func test_tpm2_akparse.sh
78
func test_tpm2_certify.sh
80
func test_tpm2_evictcontrol.sh
81
func test_tpm2_getpubek.sh
82
func test_tpm2_getpubak.sh
84
func test_tpm2_makecredential.sh
85
func test_tpm2_activecredential.sh
86
func test_tpm2_readpublic.sh
87
func test_tpm2_rsaencrypt.sh
88
func test_tpm2_rsadecrypt.sh
90
func test_tpm2_encryptdecrypt.sh
91
func test_tpm2_sign.sh
92
func test_tpm2_verifysignature.sh