Skip to content

Commit

Permalink
[PPML] Remove sgxsdk quote verify in ut (#5553)
Browse files Browse the repository at this point in the history
* Remove sgxsdk quote verify in ut

* Use Env SGXSDK for UT

* Refine
  • Loading branch information
xiangyuT authored Aug 26, 2022
1 parent cd1b59f commit 061cc39
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,13 @@ class SGXDCAPQuoteVerifierImplSpec extends FlatSpec with Matchers {
bufIn.close()
in.close()
logger.info(quote)
val verifyQuoteResult = sGXDCAPQuoteVerifierImplSpec.verifyQuote(quote)
verifyQuoteResult shouldNot equal(-1)
logger.info(verifyQuoteResult)

if (env.contains("SGXSDK")) {
if (env("SGXSDK").toBoolean == true) {
val verifyQuoteResult = sGXDCAPQuoteVerifierImplSpec.verifyQuote(quote)
verifyQuoteResult shouldNot equal(-1)
logger.info(verifyQuoteResult)
}
}
}
}

0 comments on commit 061cc39

Please sign in to comment.