This is to make sure we export all SPDK_* with proper values. Signed-off-by: Michal Berger <michal.berger@intel.com> Change-Id: I2f01af1a051edcec6a75f99b25b765080abf2a5d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17212 Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Pawel Piatek <pawelx.piatek@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
71 lines
1.5 KiB
Bash
Executable File
71 lines
1.5 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright (C) 2015 Intel Corporation
|
|
# All rights reserved.
|
|
#
|
|
|
|
rootdir=$(readlink -f $(dirname $0))
|
|
|
|
source "$rootdir/test/common/autobuild_common.sh"
|
|
|
|
SPDK_TEST_AUTOBUILD=${SPDK_TEST_AUTOBUILD:-}
|
|
umask 022
|
|
cd $rootdir
|
|
|
|
# Print some test system info out for the log
|
|
date -u
|
|
git describe --tags
|
|
|
|
if [ $SPDK_RUN_ASAN -eq 1 ]; then
|
|
run_test "asan" echo "using asan"
|
|
fi
|
|
|
|
if [ $SPDK_RUN_UBSAN -eq 1 ]; then
|
|
run_test "ubsan" echo "using ubsan"
|
|
fi
|
|
|
|
if [ -n "$SPDK_TEST_NATIVE_DPDK" ]; then
|
|
build_native_dpdk
|
|
fi
|
|
|
|
case "$SPDK_TEST_AUTOBUILD" in
|
|
full)
|
|
$rootdir/configure $config_params
|
|
echo "** START ** Info for Hostname: $HOSTNAME"
|
|
uname -a
|
|
$MAKE cc_version
|
|
$MAKE cxx_version
|
|
echo "** END ** Info for Hostname: $HOSTNAME"
|
|
;;
|
|
ext | tiny | "") ;;
|
|
*)
|
|
echo "ERROR: supported values for SPDK_TEST_AUTOBUILD are 'full', 'tiny' and 'ext'"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
if [[ $SPDK_TEST_OCF -eq 1 ]]; then
|
|
ocf_precompile
|
|
fi
|
|
|
|
if [[ $SPDK_TEST_FUZZER -eq 1 ]]; then
|
|
llvm_precompile
|
|
fi
|
|
|
|
if [[ -n $SPDK_TEST_AUTOBUILD ]]; then
|
|
autobuild_test_suite
|
|
elif [[ $SPDK_TEST_UNITTEST -eq 1 ]]; then
|
|
unittest_build
|
|
elif [[ $SPDK_TEST_SCANBUILD -eq 1 ]]; then
|
|
scanbuild_make
|
|
else
|
|
if [[ $SPDK_TEST_FUZZER -eq 1 ]]; then
|
|
# if we are testing nvmf fuzz with llvm lib, --with-shared will cause lib link fail
|
|
$rootdir/configure $config_params
|
|
else
|
|
# if we aren't testing the unittests, build with shared objects.
|
|
$rootdir/configure $config_params --with-shared
|
|
fi
|
|
run_test "make" $MAKE $MAKEFLAGS
|
|
fi
|