numam-spdk/test/ioat/ioat.sh
Seth Howell 0bc7c3de4b test: move lib/ioat up one directory
Change-Id: I83c1c1228791d44e716599be5a9b2d9ac5a361d9
Signed-off-by: Seth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/404975
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-03-27 00:46:52 -04:00

32 lines
678 B
Bash
Executable File

#!/usr/bin/env bash
set -xe
testdir=$(readlink -f $(dirname $0))
rootdir=$(readlink -f $testdir/../..)
source $rootdir/test/common/autotest_common.sh
timing_enter ioat
timing_enter perf
$rootdir/examples/ioat/perf/perf -t 1
timing_exit perf
timing_enter verify
$rootdir/examples/ioat/verify/verify -t 1
timing_exit verify
if [ `uname` = Linux ]; then
timing_enter kperf
$rootdir/scripts/setup.sh reset
insmod $rootdir/examples/ioat/kperf/kmod/dmaperf.ko
$rootdir/examples/ioat/kperf/ioat_kperf -n 4 -q 4 -s 12 -t 32
rmmod dmaperf.ko
$rootdir/scripts/setup.sh
report_test_completion "ioat_kperf"
timing_exit kperf
fi
report_test_completion "ioat"
timing_exit ioat