[Cryptech-Commits] [sw/libhal] 03/03: Enable bloat tests, since they work with the current 8K keystore block size.
git at cryptech.is
git at cryptech.is
Thu Oct 25 21:49:37 UTC 2018
This is an automated email from the git hooks/post-receive script.
paul at psgd.org pushed a commit to branch master
in repository sw/libhal.
commit 4eebeee153bfc52d562f1f01599111a67ddb7efd
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Thu Oct 25 17:18:43 2018 -0400
Enable bloat tests, since they work with the current 8K keystore block size.
---
unit-tests.py | 20 ++++++--------------
1 file changed, 6 insertions(+), 14 deletions(-)
diff --git a/unit-tests.py b/unit-tests.py
index 514aace..c456f02 100644
--- a/unit-tests.py
+++ b/unit-tests.py
@@ -1272,40 +1272,32 @@ class TestPKeyAttribute(TestCaseLoggedIn):
for j in xrange(n_attrs)))
pinwheel()
- # These sizes work with a 4096-byte keystore block; if you tweak
- # the undelrying block size, you may need to tweak these tests too.
+ # These sizes work with a 8192-byte keystore block; if you tweak
+ # the underlying block size, you may need to tweak these tests too.
def test_attribute_svelt_volatile_many(self):
self.load_and_fill(0, n_attrs = 64)
def test_attribute_bloat_volatile_many(self):
- self.skipUnlessAll("bloat tests with large flash blocks exceed XDR limits, sigh")
- with self.assertRaises(HAL_ERROR_RESULT_TOO_LONG):
- self.load_and_fill(0, n_attrs = 128)
+ self.load_and_fill(0, n_attrs = 128)
def test_attribute_svelt_volatile_big(self):
self.load_and_fill(0, n_attrs = 6, n_fill = 256)
def test_attribute_bloat_volatile_big(self):
- self.skipUnlessAll("bloat tests with large flash blocks exceed XDR limits, sigh")
- with self.assertRaises(HAL_ERROR_RESULT_TOO_LONG):
- self.load_and_fill(0, n_attrs = 6, n_fill = 512)
+ self.load_and_fill(0, n_attrs = 6, n_fill = 512)
def test_attribute_svelt_token_many(self):
self.load_and_fill(HAL_KEY_FLAG_TOKEN, n_attrs = 64)
def test_attribute_bloat_token_many(self):
- self.skipUnlessAll("bloat tests with large flash blocks exceed XDR limits, sigh")
- with self.assertRaises(HAL_ERROR_RESULT_TOO_LONG):
- self.load_and_fill(HAL_KEY_FLAG_TOKEN, n_attrs = 128)
+ self.load_and_fill(HAL_KEY_FLAG_TOKEN, n_attrs = 128)
def test_attribute_svelt_token_big(self):
self.load_and_fill(HAL_KEY_FLAG_TOKEN, n_attrs = 6, n_fill = 256)
def test_attribute_bloat_token_big(self):
- self.skipUnlessAll("bloat tests with large flash blocks exceed XDR limits, sigh")
- with self.assertRaises(HAL_ERROR_RESULT_TOO_LONG):
- self.load_and_fill(HAL_KEY_FLAG_TOKEN, n_attrs = 6, n_fill = 512)
+ self.load_and_fill(HAL_KEY_FLAG_TOKEN, n_attrs = 6, n_fill = 512)
@unittest.skipUnless(ecdsa_loaded, "Requires Python ECDSA package")
More information about the Commits
mailing list