From 543bb88c11ec8f3c3ad3e4fbf531d3949c73c63b Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Thu, 19 Dec 2019 15:50:11 -0700 Subject: [PATCH] test/unit: organize unittests by directory/name Change-Id: Ibe29b3a838426f968af2b5d50a2c6b63a86bd7a1 Signed-off-by: Seth Howell Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478534 Tested-by: SPDK CI Jenkins Community-CI: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto Reviewed-by: Ben Walker Reviewed-by: Karol Latecki --- test/unit/unittest.sh | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/test/unit/unittest.sh b/test/unit/unittest.sh index 3f0a280bbe..b1803483c2 100755 --- a/test/unit/unittest.sh +++ b/test/unit/unittest.sh @@ -150,7 +150,6 @@ if [ $(uname -m) = "aarch64" ]; then fi run_test "unittest_include" $valgrind $testdir/include/spdk/histogram_data.h/histogram_ut - run_test "unittest_bdev" unittest_bdev if grep -q '#define SPDK_CONFIG_CRYPTO 1' $rootdir/include/spdk/config.h; then run_test "unittest_bdev_crypto" $valgrind $testdir/lib/bdev/crypto.c/crypto_ut @@ -170,20 +169,17 @@ if [ $(uname -s) = Linux ]; then run_test "unittest_ftl" unittest_ftl fi +run_test "unittest_ioat" $valgrind $testdir/lib/ioat/ioat.c/ioat_ut run_test "unittest_iscsi" unittest_iscsi run_test "unittest_json" unittest_json - -run_test "unittest_sock" $valgrind $testdir/lib/sock/sock.c/sock_ut - +run_test "unittest_notify" $valgrind $testdir/lib/notify/notify.c/notify_ut run_test "unittest_nvme" unittest_nvme +run_test "unittest_log" $valgrind $testdir/lib/log/log.c/log_ut +run_test "unittest_lvol" $valgrind $testdir/lib/lvol/lvol.c/lvol_ut if grep -q '#define SPDK_CONFIG_RDMA 1' $rootdir/include/spdk/config.h; then run_test "unittest_nvme_rdma" $valgrind $testdir/lib/nvme/nvme_rdma.c/nvme_rdma_ut fi -run_test "unittest_ioat" $valgrind $testdir/lib/ioat/ioat.c/ioat_ut - -run_test "unittest_log" $valgrind $testdir/lib/log/log.c/log_ut - run_test "unittest_nvmf" unittest_nvmf if [ -e $testdir/lib/nvmf/fc.c/fc_ut ]; then run_test "unittest_nvmf_fc" $valgrind $testdir/lib/nvmf/fc.c/fc_ut @@ -197,20 +193,14 @@ if grep -q '#define SPDK_CONFIG_RDMA 1' $rootdir/include/spdk/config.h; then run_test "unittest_nvmf_rdma" $valgrind $testdir/lib/nvmf/rdma.c/rdma_ut fi -run_test "unittest_scsi" unittest_scsi - -run_test "unittest_lvol" $valgrind $testdir/lib/lvol/lvol.c/lvol_ut - -run_test "unittest_notify" $valgrind $testdir/lib/notify/notify.c/notify_ut - if grep -q '#define SPDK_CONFIG_REDUCE 1' $rootdir/config.h; then run_test "unittest_bdev_reduce" $valgrind $testdir/lib/reduce/reduce.c/reduce_ut fi +run_test "unittest_scsi" unittest_scsi +run_test "unittest_sock" $valgrind $testdir/lib/sock/sock.c/sock_ut run_test "unittest_thread" $valgrind $testdir/lib/thread/thread.c/thread_ut - run_test "unittest_util" unittest_util - if [ $(uname -s) = Linux ]; then run_test "unittest_vhost" $valgrind $testdir/lib/vhost/vhost.c/vhost_ut fi