~jocave/checkbox/hybrid-amd-gpu-mods

« back to all changes in this revision

Viewing changes to providers/plainbox-provider-tpm2/bin/test_all.sh

  • Committer: Sylvain Pineau
  • Date: 2014-07-29 16:05:54 UTC
  • mto: This revision was merged to the branch mainline in revision 3149.
  • Revision ID: sylvain.pineau@canonical.com-20140729160554-qev8887xbunn9tmi
checkbox-ng:launchers:checkbox-cli: The checkbox-cli launcher

Running the default whitelist (with the suite selection screen skipped)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#;**********************************************************************;
2
 
#
3
 
# Copyright (c) 2016, Intel Corporation
4
 
# All rights reserved.
5
 
#
6
 
# Redistribution and use in source and binary forms, with or without 
7
 
# modification, are permitted provided that the following conditions are met:
8
 
9
 
# 1. Redistributions of source code must retain the above copyright notice, 
10
 
# this list of conditions and the following disclaimer.
11
 
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.
15
 
#
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.
19
 
#
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
 
#;**********************************************************************;
32
 
 
33
 
####before this script, please make sure all test scripts copy here, TPM is initialized.
34
 
 
35
 
#!/bin/bash
36
 
new_path=`pwd`
37
 
PATH="$PATH":"$new_path"
38
 
 
39
 
rm test_all_pass.log test_all_fail.log
40
 
 
41
 
func()
42
 
{
43
 
$1
44
 
  if [ $? = 0 ];then
45
 
        clear
46
 
        echo -e "\033[32m $1 pass \033[0m"
47
 
        sleep 1 
48
 
        echo "$1 pass" >>test_all_pass.log
49
 
  else
50
 
        echo -e "\033[31m $1 Fail, press any key to continue.... \033[0m"
51
 
        echo "$1 fail" >>test_all_fail.log
52
 
        read
53
 
        fi
54
 
}
55
 
 
56
 
func test_tpm2_takeownership_all.sh
57
 
 
58
 
func test_tpm2_nv.sh
59
 
 
60
 
func test_tpm2_listpcrs.sh
61
 
 
62
 
func test_tpm2_getrandom.sh
63
 
 
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
68
 
 
69
 
func test_tpm2_evictcontrol.sh
70
 
 
71
 
func test_tpm2_hash.sh
72
 
func test_tpm2_hmac.sh
73
 
 
74
 
func test_tpm2_quote.sh
75
 
func test_tpm2_unseal.sh
76
 
 
77
 
func test_tpm2_akparse.sh
78
 
func test_tpm2_certify.sh
79
 
 
80
 
func test_tpm2_evictcontrol.sh
81
 
func test_tpm2_getpubek.sh
82
 
func test_tpm2_getpubak.sh
83
 
 
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
89
 
 
90
 
func test_tpm2_encryptdecrypt.sh
91
 
func test_tpm2_sign.sh
92
 
func test_tpm2_verifysignature.sh
93
 
 
94
 
 
95