autobuild: Separate unit tests from autobuild
Signed-off-by: Michal Berger <michalx.berger@intel.com> Change-Id: If6ce4d3f7bc58855ba61b352be71dff404c87720 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6819 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
7908736c22
commit
274f52b527
@ -278,6 +278,11 @@ function autobuild_test_suite() {
|
||||
run_test "autobuild_build_doc" build_doc
|
||||
}
|
||||
|
||||
function unittest_build() {
|
||||
"$rootdir/configure" $config_params --without-shared
|
||||
$MAKE $MAKEFLAGS
|
||||
}
|
||||
|
||||
if [ $SPDK_RUN_VALGRIND -eq 1 ]; then
|
||||
run_test "valgrind" echo "using valgrind"
|
||||
fi
|
||||
@ -301,8 +306,10 @@ $MAKE cc_version
|
||||
$MAKE cxx_version
|
||||
echo "** END ** Info for Hostname: $HOSTNAME"
|
||||
|
||||
if [ "$SPDK_TEST_AUTOBUILD" -eq 1 ]; then
|
||||
if [[ $SPDK_TEST_AUTOBUILD -eq 1 ]]; then
|
||||
run_test "autobuild" autobuild_test_suite $1
|
||||
elif [[ $SPDK_TEST_UNITTEST -eq 1 ]]; then
|
||||
run_test "unittest_build" unittest_build
|
||||
else
|
||||
if [ "$SPDK_TEST_OCF" -eq 1 ]; then
|
||||
run_test "autobuild_ocf_precompile" ocf_precompile
|
||||
|
@ -12,11 +12,14 @@ if [[ ! -f $conf ]]; then
|
||||
echo "ERROR: $conf doesn't exist"
|
||||
exit 1
|
||||
fi
|
||||
source "$conf"
|
||||
|
||||
echo "Test configuration:"
|
||||
cat "$conf"
|
||||
|
||||
# Runs agent scripts
|
||||
$rootdir/autobuild.sh "$conf"
|
||||
sudo -E $rootdir/autotest.sh "$conf"
|
||||
if ((SPDK_TEST_UNITTEST == 1 || SPDK_RUN_FUNCTIONAL_TEST == 1)); then
|
||||
sudo -E $rootdir/autotest.sh "$conf"
|
||||
fi
|
||||
$rootdir/autopackage.sh "$conf"
|
||||
|
Loading…
Reference in New Issue
Block a user