test: add EXTERNAL_MAKE_HUGEMEM
test/external_make wants to always default to the autotest_common.sh HUGEMEM default which is 8192MB on Linux. But it is useful to be able to override this to run this test in VMs with less memory. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I23a40c6c14e35cffefbaf4fa993ebd28d1b0054c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5672 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
8f92bde43e
commit
b43166b43f
@ -8,8 +8,12 @@ source "$rootdir/test/common/autotest_common.sh"
|
|||||||
set -e
|
set -e
|
||||||
SPDK_DIR=$1
|
SPDK_DIR=$1
|
||||||
|
|
||||||
|
if [ -z "$EXTERNAL_MAKE_HUGEMEM" ]; then
|
||||||
|
EXTERNAL_MAKE_HUGEMEM=$HUGEMEM
|
||||||
|
fi
|
||||||
|
|
||||||
# Skip all pci devices. These tests don't rely on them.
|
# Skip all pci devices. These tests don't rely on them.
|
||||||
sudo PCI_ALLOWED="NONE" HUGEMEM="$HUGEMEM" $SPDK_DIR/scripts/setup.sh
|
sudo PCI_ALLOWED="NONE" HUGEMEM="$EXTERNAL_MAKE_HUGEMEM" $SPDK_DIR/scripts/setup.sh
|
||||||
|
|
||||||
make -C $SPDK_DIR clean
|
make -C $SPDK_DIR clean
|
||||||
$SPDK_DIR/configure --with-shared --without-isal --without-ocf --disable-asan
|
$SPDK_DIR/configure --with-shared --without-isal --without-ocf --disable-asan
|
||||||
|
Loading…
Reference in New Issue
Block a user