diff --git a/buildlib/tools/builds.sh b/buildlib/tools/builds.sh index 02c0d3b98fb..0937be76154 100755 --- a/buildlib/tools/builds.sh +++ b/buildlib/tools/builds.sh @@ -83,6 +83,8 @@ build_release_pkg() { cd $subdir dpkg-buildpackage -us -uc ) + echo "==== Test install DEB (dry-run) ====" + apt-get install -s -y ./*.deb else echo "==== Build RPM ====" echo "$PWD" @@ -91,6 +93,13 @@ build_release_pkg() { azure_log_error "Release build depends on CUDA while it should not" exit 1 fi + echo "==== Test install RPM (dry-run) ====" + if rpm -q rpm >/dev/null 2>&1; then + rpm -Uvh --test ${PWD}/rpm-dist/*/*.rpm + else + azure_log_warning "Skip RPM install test: rpm db not readable as non-root" + azure_complete_with_issues "Skip RPM install test: rpm db not readable as non-root" + fi echo "==== Build debug RPM ====" ${WORKSPACE}/contrib/buildrpm.sh -s -b -d --nodeps --define "_topdir $PWD/debug" fi