From 9a486f5ebf648971db9bdbd30f7e52251a659ddd Mon Sep 17 00:00:00 2001 From: Cristian Stoica Date: Fri, 28 Oct 2016 12:01:00 +0300 Subject: [PATCH 080/104] graceful exit if cryptodev is not built with ASYNC flags --- tests/async_speed_multi.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/async_speed_multi.sh b/tests/async_speed_multi.sh index 125d45c..f2a8ba6 100755 --- a/tests/async_speed_multi.sh +++ b/tests/async_speed_multi.sh @@ -82,6 +82,13 @@ function run_parallel wait $MPSTAT_PID + grep "ioctl" ${OUT_BASENAME}_* &> /dev/null + if (($? == 0)) + then + echo "cryptodev is not built with -DENABLE_ASYNC flag" + exit 1 + fi + runtime=$(echo "scale=2; ($end - $start) / 1" | bc -l ) total_data=$(cat ${OUT_BASENAME}_* | cut -f 1 | SUM) avg_speed=$(echo "scale=2; $total_data / $runtime / 1000000000" | bc -l) -- 2.10.2