]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/ltp-ddt.git/commitdiff
MD5 and SHA modes to use async mode tests
authorAparna Balasubramanian <aparnab@ti.com>
Thu, 12 Dec 2013 19:06:25 +0000 (13:06 -0600)
committerYan Liu <yan-liu@ti.com>
Thu, 12 Dec 2013 19:11:00 +0000 (14:11 -0500)
Modifies md5 and sha ltp tests to use async mode rather than sync mode since it was indicated that crypto drivers do not support hardware acceleration in sync mode.

Signed-off-by: Aparna Balasubramanian <aparnab@ti.com>
Signed-off-by: Yan Liu <yan-liu@ti.com>
runtest/ddt/crypto_md5
runtest/ddt/crypto_sha1
runtest/ddt/crypto_sha224
runtest/ddt/crypto_sha256
runtest/ddt/crypto_sha384
runtest/ddt/crypto_sha512

index 23eb84930d1d738db9ec46e95cbe0ea22f90d96b..0dbf63ba51a5f83564b2749d9c84b1ca6f913426 100755 (executable)
@@ -3,4 +3,4 @@
 # @requires crypto/crypto-omap/md5
 # @setup_requires 
 
-CRYPTO_S_PERF_MD5 source 'common.sh'; config_options=`get_modular_config_names.sh crypto`; check_config_options "y" CONFIG_CRYPTO_HW $config_options; check_config_options "m" CONFIG_CRYPTO_TEST; check_config_options  "n" CONFIG_CRYPTO_MANAGER_DISABLE_TESTS; echo /dev/null>/var/log/messages; crypto_ip=`get_crypto_ip.sh`; IRQ_NUM=`get_irq_for_iface.sh -i $crypto_ip` || die "error getting irq for crypto"; PRE=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; modprobe tcrypt mode=302 sec=1; POST=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; [[ $POST -gt $PRE ]]|| die "IRQ count did not increase, no hardware crypto, looking for irq number $IRQ_NUM, initial count $PRE, final count $POST";crypto_test.sh
+CRYPTO_S_PERF_MD5 source 'common.sh'; config_options=`get_modular_config_names.sh crypto`; check_config_options "y" CONFIG_CRYPTO_HW $config_options; check_config_options "m" CONFIG_CRYPTO_TEST; check_config_options  "n" CONFIG_CRYPTO_MANAGER_DISABLE_TESTS; echo /dev/null>/var/log/messages; crypto_ip=`get_crypto_ip.sh`; IRQ_NUM=`get_irq_for_iface.sh -i $crypto_ip` || die "error getting irq for crypto"; PRE=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; modprobe tcrypt mode=402 sec=1; POST=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; [[ $POST -gt $PRE ]]|| die "IRQ count did not increase, no hardware crypto, looking for irq number $IRQ_NUM, initial count $PRE, final count $POST";crypto_test.sh
index 7d68a9127c1f3cfe9cde1211785ffe50ff24b566..ec2e3e8e33230a22f2bdcc36fdc22b8c60ac4f3d 100755 (executable)
@@ -3,5 +3,5 @@
 # @requires crypto/crypto-omap/sha1
 # @setup_requires 
 
-CRYPTO_S_PERF_SHA1 source 'common.sh'; config_options=`get_modular_config_names.sh crypto`; check_config_options "y" CONFIG_CRYPTO_HW $config_options; check_config_options "m" CONFIG_CRYPTO_TEST; check_config_options  "n" CONFIG_CRYPTO_MANAGER_DISABLE_TESTS; echo /dev/null>/var/log/messages; crypto_ip=`get_crypto_ip.sh`; IRQ_NUM=`get_irq_for_iface.sh -i $crypto_ip` || die "error getting irq for crypto"; PRE=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; modprobe tcrypt mode=303 sec=1; POST=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; [[ $POST -gt $PRE ]]|| die "IRQ count did not increase, no hardware crypto, looking for irq number $IRQ_NUM, initial count $PRE, final count $POST";crypto_test.sh
+CRYPTO_S_PERF_SHA1 source 'common.sh'; config_options=`get_modular_config_names.sh crypto`; check_config_options "y" CONFIG_CRYPTO_HW $config_options; check_config_options "m" CONFIG_CRYPTO_TEST; check_config_options  "n" CONFIG_CRYPTO_MANAGER_DISABLE_TESTS; echo /dev/null>/var/log/messages; crypto_ip=`get_crypto_ip.sh`; IRQ_NUM=`get_irq_for_iface.sh -i $crypto_ip` || die "error getting irq for crypto"; PRE=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; modprobe tcrypt mode=403 sec=1; POST=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; [[ $POST -gt $PRE ]]|| die "IRQ count did not increase, no hardware crypto, looking for irq number $IRQ_NUM, initial count $PRE, final count $POST";crypto_test.sh
 
index 6a5c75c46d3889350ecb633a6a56cf694b0f3a2f..3c49484eb8866d61d01bcc8d02d0564a91a9da70 100755 (executable)
@@ -3,5 +3,5 @@
 # @requires crypto/crypto-omap/sha224
 # @setup_requires 
 
-CRYPTO_S_PERF_SHA224 source 'common.sh'; config_options=`get_modular_config_names.sh crypto`; check_config_options "y" CONFIG_CRYPTO_HW $config_options; check_config_options "m" CONFIG_CRYPTO_TEST; check_config_options  "n" CONFIG_CRYPTO_MANAGER_DISABLE_TESTS; echo /dev/null>/var/log/messages; crypto_ip=`get_crypto_ip.sh`; IRQ_NUM=`get_irq_for_iface.sh -i $crypto_ip` || die "error getting irq for crypto"; PRE=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; modprobe tcrypt mode=313 sec=1; POST=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; [[ $POST -gt $PRE ]]|| die "IRQ count did not increase, no hardware crypto, looking for irq number $IRQ_NUM, initial count $PRE, final count $POST";crypto_test.sh
+CRYPTO_S_PERF_SHA224 source 'common.sh'; config_options=`get_modular_config_names.sh crypto`; check_config_options "y" CONFIG_CRYPTO_HW $config_options; check_config_options "m" CONFIG_CRYPTO_TEST; check_config_options  "n" CONFIG_CRYPTO_MANAGER_DISABLE_TESTS; echo /dev/null>/var/log/messages; crypto_ip=`get_crypto_ip.sh`; IRQ_NUM=`get_irq_for_iface.sh -i $crypto_ip` || die "error getting irq for crypto"; PRE=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; modprobe tcrypt mode=413 sec=1; POST=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; [[ $POST -gt $PRE ]]|| die "IRQ count did not increase, no hardware crypto, looking for irq number $IRQ_NUM, initial count $PRE, final count $POST";crypto_test.sh
 
index 7db6a357a0c6c0ca6996905869717390dd49349a..482766b6af38b1c7a8a770a34da8a4bfd0cd41cb 100755 (executable)
@@ -3,5 +3,5 @@
 # @requires crypto/crypto-omap/sha256
 # @setup_requires 
 
-CRYPTO_S_PERF_SHA256 source 'common.sh'; config_options=`get_modular_config_names.sh crypto`; check_config_options "y" CONFIG_CRYPTO_HW $config_options; check_config_options "m" CONFIG_CRYPTO_TEST; check_config_options  "n" CONFIG_CRYPTO_MANAGER_DISABLE_TESTS; echo /dev/null>/var/log/messages; crypto_ip=`get_crypto_ip.sh`; IRQ_NUM=`get_irq_for_iface.sh -i $crypto_ip` || die "error getting irq for crypto"; PRE=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; modprobe tcrypt mode=304 sec=1; POST=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; [[ $POST -gt $PRE ]]|| die "IRQ count did not increase, no hardware crypto, looking for irq number $IRQ_NUM, initial count $PRE, final count $POST";crypto_test.sh
+CRYPTO_S_PERF_SHA256 source 'common.sh'; config_options=`get_modular_config_names.sh crypto`; check_config_options "y" CONFIG_CRYPTO_HW $config_options; check_config_options "m" CONFIG_CRYPTO_TEST; check_config_options  "n" CONFIG_CRYPTO_MANAGER_DISABLE_TESTS; echo /dev/null>/var/log/messages; crypto_ip=`get_crypto_ip.sh`; IRQ_NUM=`get_irq_for_iface.sh -i $crypto_ip` || die "error getting irq for crypto"; PRE=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; modprobe tcrypt mode=404 sec=1; POST=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; [[ $POST -gt $PRE ]]|| die "IRQ count did not increase, no hardware crypto, looking for irq number $IRQ_NUM, initial count $PRE, final count $POST";crypto_test.sh
 
index b976790e5b30813bd2d040cd9ecb49453d9bd309..1331f8d6614b5150e37791f5e2130f89d68e1265 100755 (executable)
@@ -3,4 +3,4 @@
 # @requires crypto/crypto-omap/sha384
 # @setup_requires 
 
-CRYPTO_S_PERF_SHA384 source 'common.sh'; config_options=`get_modular_config_names.sh crypto`; check_config_options "y" CONFIG_CRYPTO_HW $config_options; check_config_options "m" CONFIG_CRYPTO_TEST; check_config_options  "n" CONFIG_CRYPTO_MANAGER_DISABLE_TESTS; echo /dev/null>/var/log/messages; crypto_ip=`get_crypto_ip.sh`; IRQ_NUM=`get_irq_for_iface.sh -i $crypto_ip` || die "error getting irq for crypto"; PRE=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; modprobe tcrypt mode=305 sec=1; POST=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; [[ $POST -gt $PRE ]]|| die "IRQ count did not increase, no hardware crypto, looking for irq number $IRQ_NUM, initial count $PRE, final count $POST";crypto_test.sh
+CRYPTO_S_PERF_SHA384 source 'common.sh'; config_options=`get_modular_config_names.sh crypto`; check_config_options "y" CONFIG_CRYPTO_HW $config_options; check_config_options "m" CONFIG_CRYPTO_TEST; check_config_options  "n" CONFIG_CRYPTO_MANAGER_DISABLE_TESTS; echo /dev/null>/var/log/messages; crypto_ip=`get_crypto_ip.sh`; IRQ_NUM=`get_irq_for_iface.sh -i $crypto_ip` || die "error getting irq for crypto"; PRE=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; modprobe tcrypt mode=405 sec=1; POST=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; [[ $POST -gt $PRE ]]|| die "IRQ count did not increase, no hardware crypto, looking for irq number $IRQ_NUM, initial count $PRE, final count $POST";crypto_test.sh
index 24462d71ca917fa39b0e6793cd14419433462ed0..0c7b87772530069288f9e886d8f2eef43718c702 100755 (executable)
@@ -3,4 +3,4 @@
 # @requires crypto/crypto-omap/sha512
 # @setup_requires 
 
-CRYPTO_S_PERF_SHA512 source 'common.sh'; config_options=`get_modular_config_names.sh crypto`; check_config_options "y" CONFIG_CRYPTO_HW $config_options; check_config_options "m" CONFIG_CRYPTO_TEST; check_config_options  "n" CONFIG_CRYPTO_MANAGER_DISABLE_TESTS; echo /dev/null>/var/log/messages; crypto_ip=`get_crypto_ip.sh`; IRQ_NUM=`get_irq_for_iface.sh -i $crypto_ip` || die "error getting irq for crypto"; PRE=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; modprobe tcrypt mode=306 sec=1; POST=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; [[ $POST -gt $PRE ]]|| die "IRQ count did not increase, no hardware crypto, looking for irq number $IRQ_NUM, initial count $PRE, final count $POST";crypto_test.sh
+CRYPTO_S_PERF_SHA512 source 'common.sh'; config_options=`get_modular_config_names.sh crypto`; check_config_options "y" CONFIG_CRYPTO_HW $config_options; check_config_options "m" CONFIG_CRYPTO_TEST; check_config_options  "n" CONFIG_CRYPTO_MANAGER_DISABLE_TESTS; echo /dev/null>/var/log/messages; crypto_ip=`get_crypto_ip.sh`; IRQ_NUM=`get_irq_for_iface.sh -i $crypto_ip` || die "error getting irq for crypto"; PRE=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; modprobe tcrypt mode=406 sec=1; POST=`get_num_interrupts_for_irq.sh -i $IRQ_NUM -c 0`; [[ $POST -gt $PRE ]]|| die "IRQ count did not increase, no hardware crypto, looking for irq number $IRQ_NUM, initial count $PRE, final count $POST";crypto_test.sh