ead1e536d6
Type: fix Since CentOS 8, RPM build script doesn't accept '#!/usr/bin/env python' as a valid shebang line. It requires scripts to explicitly chose between python2 or python3. Change all to use python3 as suggested by Paul Vinciguerra. Depends-On: https://gerrit.fd.io/r/23170 Signed-off-by: Renato Botelho do Couto <renato@netgate.com> Change-Id: Ie72af9f60fd0609e07f05b70f8d96e738b2754d1
29 lines
610 B
Python
29 lines
610 B
Python
#!/usr/bin/env python3
|
|
|
|
import unittest
|
|
|
|
from framework import VppTestCase, VppTestRunner
|
|
|
|
|
|
class TestCrypto(VppTestCase):
|
|
""" Crypto Test Case """
|
|
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
super(TestCrypto, cls).setUpClass()
|
|
|
|
@classmethod
|
|
def tearDownClass(cls):
|
|
super(TestCrypto, cls).tearDownClass()
|
|
|
|
def test_crypto(self):
|
|
""" Crypto Unit Tests """
|
|
error = self.vapi.cli("test crypto")
|
|
|
|
if error:
|
|
self.logger.critical(error)
|
|
self.assertNotIn("FAIL", error)
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main(testRunner=VppTestRunner)
|