Skip to content

Commit

Permalink
Merge pull request #492 from tasleson/new_release
Browse files Browse the repository at this point in the history
New release
  • Loading branch information
tasleson authored Nov 16, 2021
2 parents bc0a677 + 828a063 commit 2a49661
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 12 deletions.
7 changes: 7 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
News for libStorageMgmt

1.9.3: Nov 16 2021
* Fix endianess issues for big endian
* Fix megaraid plugin for volume_raid_info for RAID10, add test
- https://bugzilla.redhat.com/show_bug.cgi?id=2018657
* Megaraid, changes to support latest storcli utility
* Misc. CI test improvements, code clean-up

1.9.2: May 14 2021
* Remove OpenSSL usage as OpenSSL 3.0 is deprecating MD5

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dnl Copyright (C) 2011-2016 Red Hat, Inc.
dnl See COPYING.LIB for the License of this software

AC_INIT(
[libstoragemgmt], [1.9.2], [libstoragemgmt-devel@lists.fedorahosted.org],
[libstoragemgmt], [1.9.3], [libstoragemgmt-devel@lists.fedorahosted.org],
[], [https://github.com/libstorage/libstoragemgmt/])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_AUX_DIR([build-aux])
Expand Down
32 changes: 21 additions & 11 deletions test/runtests.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -41,55 +41,59 @@ source "${src_dir}"/test/test_include.sh
# Constant check: check whether python constants matched with C constants.
perl "${src_dir}"/tools/utility/check_const.pl || exit 1

# Fetch and test the golang module to ensure we didn't break it
echo "Testing golang module"
echo "build_dir = ${build_dir}"
echo "src_dir = ${src_dir}"
echo "Starting in dir = $(pwd)"


# Fetch and test the golang module to ensure we didn't break it
arch=$(uname -m)
if [ "CHK${arch}" != "CHKppc64" ] ; then
if [ "CHK${arch}" != "CHKppc64" ] && [ "${src_dir}" == "${build_dir}" ] ; then
echo "Testing golang module"

lsm_test_base_install \
"$test_base_dir" "$build_dir" "$src_dir" "${LSM_TEST_INSTALL_ALL_PLUGINS}"

lsm_test_lsmd_start "${LSM_TEST_WITHOUT_MEM_CHECK}"

STARTING_POINT=$(pwd)
_good cd "${src_dir}"/

#fetch the module
if [ ! -d libstoragemgmt-golang ]; then
_good git clone https://github.com/libstorage/libstoragemgmt-golang
fi
_good cd libstoragemgmt-golang
_good test/docker_travis_test.sh "$src_dir"
_good test/docker_travis_test.sh "$src_dir" # We would need to pass src_dir and build_dir for distcheck to work
_good cd "$STARTING_POINT"

lsm_test_cleanup
else
echo "PowerPC big endian golang is no longer supported!"
echo "Skipping golang module test..."
fi

# Fetch and test the rust code to ensure we didn't break it
echo "Testing rust code base"

if [ "CHK${arch}" != "CHKppc64" ] ; then

if [ "CHK${arch}" != "CHKppc64" ] && [ "${src_dir}" == "${build_dir}" ] ; then
echo "Testing rust-lang code base"
lsm_test_base_install \
"$test_base_dir" "$build_dir" "$src_dir" "${LSM_TEST_INSTALL_ALL_PLUGINS}"

lsm_test_lsmd_start "${LSM_TEST_WITHOUT_MEM_CHECK}"

STARTING_POINT=$(pwd)
_good cd "${src_dir}"/

#fetch the module
if [ ! -d libstoragemgmt-rust ]; then
_good git clone https://github.com/libstorage/libstoragemgmt-rust
fi
_good cd libstoragemgmt-rust
_good tests/ci_test.sh "$src_dir"
_good tests/ci_test.sh "$src_dir" # We would need to pass src_dir and build_dir for distcheck to work
_good cd "$STARTING_POINT"

lsm_test_cleanup
else
echo "PowerPC big endian no rust-lang support"
echo "Skipping rust-lang test"
fi

echo "Round 1: Testing sim plugin"
Expand Down Expand Up @@ -125,3 +129,9 @@ if [ "CHK$with_mem_leak_test" == "CHKyes" ];then
fi
lsm_test_cleanup

# Sometimes we want to see the build output in the good case too
# so fake non-zero exit to cause a failure
if [[ -n "${FORCE_FAIL}" ]]; then
echo "FORCE_FAIL= ${FORCE_FAIL}"
exit 1
fi

0 comments on commit 2a49661

Please sign in to comment.