From 39c31e6c0ccbe3fa4092cedb910ab36094de6da4 Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Thu, 29 Oct 2020 19:25:50 +0000 Subject: [PATCH] test/external_code: make clean before starting tests This test script is based around only a strict subset of the SPDK configuration options. If we don't clean before building, we could still have libraries in build/lib from previous tests that the external_code Makefiles do not account for when linking libspdk.so, which will include *all* libraries in build/lib. Fixes issue #1662. Fixes issue #1665. Signed-off-by: Jim Harris Change-Id: I525ea1740313048fc44f26b5b0db9ab38161725e Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4970 Tested-by: SPDK CI Jenkins Reviewed-by: Aleksey Marchuk Reviewed-by: Changpeng Liu Reviewed-by: --- test/external_code/test_make.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/external_code/test_make.sh b/test/external_code/test_make.sh index 58f17773d..a58b9a392 100755 --- a/test/external_code/test_make.sh +++ b/test/external_code/test_make.sh @@ -11,6 +11,7 @@ SPDK_DIR=$1 # Skip all pci devices. These tests don't rely on them. sudo PCI_WHITELIST="NONE" HUGEMEM="$HUGEMEM" $SPDK_DIR/scripts/setup.sh +make -C $SPDK_DIR clean $SPDK_DIR/configure --with-shared --without-isal --without-ocf --disable-asan make -C $SPDK_DIR -j$(nproc)