autobuild: reorganize prework for script.
Change-Id: I83edd918a34cfad60658c55fb33882339a2199a5 Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478549 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com>
This commit is contained in:
parent
3f1902ef57
commit
a74675deb5
16
autobuild.sh
16
autobuild.sh
@ -8,23 +8,23 @@ if [[ ! -f $1 ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
source "$1"
|
||||
|
||||
rootdir=$(readlink -f $(dirname $0))
|
||||
source "$rootdir/test/common/autotest_common.sh"
|
||||
|
||||
out=$PWD
|
||||
rootdir=$(readlink -f $(dirname $0))
|
||||
scanbuild="scan-build -o $out/scan-build-tmp --status-bugs"
|
||||
|
||||
umask 022
|
||||
source "$1"
|
||||
source "$rootdir/test/common/autotest_common.sh"
|
||||
|
||||
rm -rf /tmp/spdk
|
||||
mkdir /tmp/spdk
|
||||
umask 022
|
||||
cd $rootdir
|
||||
|
||||
# Print some test system info out for the log
|
||||
date -u
|
||||
git describe --tags
|
||||
|
||||
./configure $config_params
|
||||
# Print some test system info out for the log
|
||||
echo "** START ** Info for Hostname: $HOSTNAME"
|
||||
uname -a
|
||||
$MAKE cc_version
|
||||
@ -117,8 +117,6 @@ run_test "autobuild_header_dependency_check" header_dependency_check
|
||||
|
||||
# Test 'make install'
|
||||
timing_enter make_install
|
||||
rm -rf /tmp/spdk
|
||||
mkdir /tmp/spdk
|
||||
$MAKE $MAKEFLAGS install DESTDIR=/tmp/spdk prefix=/usr
|
||||
timing_exit make_install
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user