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

« back to all changes in this revision

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

  • Committer: Sylvain Pineau
  • Author(s): Sylvain Pineau
  • Date: 2016-05-09 22:02:27 UTC
  • mfrom: (4323.2.1 launchpad/tpm2-provider)
  • Revision ID: sylvain_pineau-20160509220227-wt2e8boo9ktitvzl
"automatic merge of lp:~sylvain-pineau/checkbox/tpm2-provider/ by tarmac [r=sylvain-pineau][bug=][author=sylvain-pineau]"

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 #!/bin/bash
 
2
 context_p=
 
3
 halg=
 
4
 
 
5
ctx_count=`ls |grep -c context_load`
 
6
if [ $ctx_count -le 1 ];then
 
7
        echo "we should execute test_algs.sh first!"
 
8
        wait 5
 
9
    ./test_algs.sh
 
10
fi
 
11
 rm test_readpublic_*.log
 
12
 
 
13
 for  context_p in `ls context_load*`
 
14
   do
 
15
     ./tpm2_readpublic -c $context_p  -o rd-opu_"$context_p"
 
16
     if [ $? != 0 ];then
 
17
     echo "readpublic for "$context_p" fail, please check the environment or  parameters!"
 
18
     echo "readpublic for "$context_p" fail" >>test_readpublic_error.log
 
19
     else
 
20
     echo "readpublic for "$context_p"  pass" >>test_readpublic__pass.log
 
21
    fi
 
22
 
 
23
  done
 
24