[dts] [PATCH] crypto: Rebuild DPDK at the end of suite

Phanendra Vukkisala pvukkisala at marvell.com
Wed Jan 9 07:27:51 CET 2019


From: pvukkisala <pvukkisala at marvell.com>

Crypto tests building DPDK with changes before starting tests and undoing
changes at end, but missed to rebuild. This patch will take care of rebuilding
DPDK, so that further tests will not effect while running multiple tests at once

Signed-off-by: phanendra,vukkisala <pvukkisala at marvell.com>
---
 tests/TestSuite_crypto_perf.py          |    1 +
 tests/TestSuite_unit_tests_cryptodev.py |    1 +
 2 files changed, 2 insertions(+)

diff --git a/tests/TestSuite_crypto_perf.py b/tests/TestSuite_crypto_perf.py
index 1715e5c..cf5cce4 100755
--- a/tests/TestSuite_crypto_perf.py
+++ b/tests/TestSuite_crypto_perf.py
@@ -331,6 +331,7 @@ class TestCryptoPerf(TestCase):
         self.dut.send_expect("sed -i 's/CONFIG_RTE_LIBRTE_PMD_OPENSSL=y$/CONFIG_RTE_LIBRTE_PMD_OPENSSL=n/' config/common_base", "# ")
         self.dut.send_expect("sed -i 's/CONFIG_RTE_LIBRTE_PMD_AESNI_MB=y$/CONFIG_RTE_LIBRTE_PMD_AESNI_MB=n/' config/common_base", "# ")
         self.dut.send_expect("sed -i 's/CONFIG_RTE_LIBRTE_PMD_ZUC=y$/CONFIG_RTE_LIBRTE_PMD_ZUC=n/' config/common_base", "# ")
+        self.dut.build_install_dpdk(self.dut.target)
         f.close()
 
     def __check_buffer_size_number(self):
diff --git a/tests/TestSuite_unit_tests_cryptodev.py b/tests/TestSuite_unit_tests_cryptodev.py
index df83fd9..db6552e 100644
--- a/tests/TestSuite_unit_tests_cryptodev.py
+++ b/tests/TestSuite_unit_tests_cryptodev.py
@@ -105,6 +105,7 @@ class UnitTestsCryptodev(TestCase):
         self.dut.send_expect("sed -i 's/CONFIG_RTE_LIBRTE_PMD_OPENSSL=y$/CONFIG_RTE_LIBRTE_PMD_OPENSSL=n/' config/common_base", "# ")
         self.dut.send_expect("sed -i 's/CONFIG_RTE_LIBRTE_PMD_AESNI_MB=y$/CONFIG_RTE_LIBRTE_PMD_AESNI_MB=n/' config/common_base", "# ")
         self.dut.send_expect("sed -i 's/CONFIG_RTE_LIBRTE_PMD_ZUC=y$/CONFIG_RTE_LIBRTE_PMD_ZUC=n/' config/common_base", "# ")
+        self.dut.build_install_dpdk(self.dut.target)
 
     def test_cryptodev_qat_autotest(self):
         self.__run_unit_test("cryptodev_qat_autotest")
-- 
1.7.9.5



More information about the dts mailing list