per Intel policy to include file commit date using git cmd below. The policy does not apply to non-Intel (C) notices. git log --follow -C90% --format=%ad --date default <file> | tail -1 and then pull just the year from the result. Intel copyrights were not added to files where Intel either had no contribution ot the contribution lacked substance (ie license header updates, formatting changes, etc) For intel copyrights added, --follow and -C95% were used. Signed-off-by: paul luse <paul.e.luse@intel.com> Change-Id: I2ef86976095b88a9bf5b1003e59f3943cd6bbe4c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15209 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
66 lines
1.4 KiB
Bash
Executable File
66 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright (C) 2015 Intel Corporation
|
|
# All rights reserved.
|
|
#
|
|
|
|
set -e
|
|
|
|
# If the configuration of tests is not provided, no tests will be carried out.
|
|
if [[ ! -f $1 ]]; then
|
|
echo "ERROR: SPDK test configuration not specified"
|
|
exit 1
|
|
fi
|
|
|
|
source "$1"
|
|
|
|
rootdir=$(readlink -f $(dirname $0))
|
|
testdir=$rootdir # to get the storage space for tests
|
|
source "$rootdir/test/common/autotest_common.sh"
|
|
|
|
out=$PWD
|
|
|
|
MAKEFLAGS=${MAKEFLAGS:--j16}
|
|
cd $rootdir
|
|
|
|
timing_enter porcelain_check
|
|
$MAKE clean
|
|
|
|
if [ $(git status --porcelain --ignore-submodules | wc -l) -ne 0 ]; then
|
|
echo make clean left the following files:
|
|
git status --porcelain --ignore-submodules
|
|
exit 1
|
|
fi
|
|
timing_exit porcelain_check
|
|
|
|
if [[ $SPDK_TEST_RELEASE_BUILD -eq 1 ]]; then
|
|
run_test "packaging" test/packaging/packaging.sh
|
|
$MAKE clean
|
|
fi
|
|
|
|
if [[ $RUN_NIGHTLY -eq 0 || $SPDK_TEST_UNITTEST -eq 0 ]]; then
|
|
timing_finish
|
|
exit 0
|
|
fi
|
|
|
|
timing_enter build_release
|
|
|
|
config_params="$(get_config_params | sed 's/--enable-debug//g')"
|
|
if [ $(uname -s) = Linux ]; then
|
|
# LTO needs a special compiler to work under clang. See detect_cc.sh for details.
|
|
if [[ $CC == *clang* ]]; then
|
|
LD=$(type -P ld.gold)
|
|
export LD
|
|
fi
|
|
./configure $config_params --enable-lto
|
|
else
|
|
# LTO needs a special compiler to work on BSD.
|
|
./configure $config_params
|
|
fi
|
|
$MAKE ${MAKEFLAGS}
|
|
$MAKE ${MAKEFLAGS} clean
|
|
|
|
timing_exit build_release
|
|
|
|
timing_finish
|