Spdk/test/lib/nvmf/nvmf.sh
Daniel Verkamp d237632434 nvmf: add unit tests
Change-Id: I22c57c3989f4b69cb35ef4e17507864d0f07f084
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
2016-06-08 08:49:38 -07:00

21 lines
356 B
Bash
Executable File

#!/usr/bin/env bash
set -xe
testdir=$(readlink -f $(dirname $0))
rootdir=$testdir/../../..
source $rootdir/scripts/autotest_common.sh
# TODO: unit tests should not depend on library being enabled
if [ ! -f $testdir/nvmf_c/nvmf_ut ]; then
exit 0
fi
timing_enter nvmf
timing_enter unit
$testdir/nvmf_c/nvmf_ut
timing_exit unit
timing_exit nvmf