crypto: change cryptodev with new cryptodev API
[vpp.git] / test / test_crypto.py
1 #!/usr/bin/env python3
2
3 import unittest
4
5 from framework import VppTestCase, VppTestRunner
6
7
8 class TestCrypto(VppTestCase):
9     """ Crypto Test Case """
10
11     @classmethod
12     def setUpClass(cls):
13         super(TestCrypto, cls).setUpClass()
14
15     @classmethod
16     def tearDownClass(cls):
17         super(TestCrypto, cls).tearDownClass()
18
19     def test_crypto(self):
20         """ Crypto Unit Tests """
21         error = self.vapi.cli("test crypto")
22
23         if error:
24             self.logger.critical(error)
25         self.assertNotIn("FAIL", error)
26
27 if __name__ == '__main__':
28     unittest.main(testRunner=VppTestRunner)