From ff1f089c3a395d9e519bbbf91e3a30737173b447 Mon Sep 17 00:00:00 2001 From: Dave Wallace Date: Mon, 16 Nov 2020 16:54:14 -0500 Subject: tests: move crypto tests to src/vnet/crypto/test - Refactor make test code to be co-located with the vpp feature source code Type: test Signed-off-by: Dave Wallace Change-Id: I089bda44c31cbb217132e5b385cd9ea96ea5239e --- src/vnet/crypto/test/test_crypto.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/vnet/crypto/test/test_crypto.py (limited to 'src/vnet/crypto') diff --git a/src/vnet/crypto/test/test_crypto.py b/src/vnet/crypto/test/test_crypto.py new file mode 100644 index 00000000000..aa62dba1bab --- /dev/null +++ b/src/vnet/crypto/test/test_crypto.py @@ -0,0 +1,28 @@ +#!/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) -- cgit 1.2.3-korg