Log package versions in CI tests

This commit is contained in:
Martin Cermak 2021-05-13 13:01:56 +02:00
parent 394bd0083f
commit a9f3f30da4
5 changed files with 7 additions and 1 deletions

View File

@ -32,6 +32,7 @@ PACKAGE="annobin"
rlJournalStart rlJournalStart
rlPhaseStartTest rlPhaseStartTest
rlRun "rpm -qa | fgrep -e redhat-rpm-config -e gcc -e annobin -e binutils | sort"
rlRun "tool_v=$(annocheck --version | awk '/^annocheck: Version/ {print $3}')" rlRun "tool_v=$(annocheck --version | awk '/^annocheck: Version/ {print $3}')"
rlRun "__RPM=$(rpm --queryformat='%{name}\n' -qf $(man -w annobin))" rlRun "__RPM=$(rpm --queryformat='%{name}\n' -qf $(man -w annobin))"
rlRun "rpm_v=$(rpm -q --queryformat='%{version}\n' $__RPM)" rlRun "rpm_v=$(rpm -q --queryformat='%{version}\n' $__RPM)"

View File

@ -33,7 +33,7 @@ PACKAGE="annobin"
rlJournalStart rlJournalStart
rlPhaseStartTest rlPhaseStartTest
b=`mktemp` b=`mktemp`
rlRun "rpm -q redhat-rpm-config" rlRun "rpm -qa | fgrep -e redhat-rpm-config -e gcc -e annobin -e binutils | sort"
rlRun "cflags=\"$(rpm --eval '%build_cflags')\"" rlRun "cflags=\"$(rpm --eval '%build_cflags')\""
rlRun "ldflags=\"$(rpm --eval '%build_ldflags')\"" rlRun "ldflags=\"$(rpm --eval '%build_ldflags')\""
rlRun "echo 'int main (void) { return 0; }' | gcc -xc -o $b $cflags $ldflags -flto - " rlRun "echo 'int main (void) { return 0; }' | gcc -xc -o $b $cflags $ldflags -flto - "

View File

@ -42,6 +42,8 @@ rlJournalStart
rlLogInfo "X_SCLS=$X_SCLS" rlLogInfo "X_SCLS=$X_SCLS"
rlLogInfo "GCC=$GCC" rlLogInfo "GCC=$GCC"
rlRun "rpm -qa | fgrep -e redhat-rpm-config -e gcc -e annobin -e binutils | sort"
# In case more than one devtoolset- or gcc-toolset -build package is # In case more than one devtoolset- or gcc-toolset -build package is
# installed (they can co-exist from the packaging persp, but their # installed (they can co-exist from the packaging persp, but their
# coexistence causes unexpected results with rpm macros), then we have # coexistence causes unexpected results with rpm macros), then we have

View File

@ -16,6 +16,8 @@ set +x
rlJournalStart rlJournalStart
rlPhaseStartTest rlPhaseStartTest
rlRun "rpm -qa | fgrep -e redhat-rpm-config -e gcc -e annobin -e binutils | sort"
rlRun "test \"$default_cflags\" = \"$cflags\"" rlRun "test \"$default_cflags\" = \"$cflags\""
rlRun "test \"$default_cxxflags\" = \"$cxxflags\"" rlRun "test \"$default_cxxflags\" = \"$cxxflags\""
rlRun "test \"$default_ldflags\" = \"$ldflags\"" rlRun "test \"$default_ldflags\" = \"$ldflags\""

View File

@ -38,6 +38,7 @@ rlJournalStart
rlPhaseEnd rlPhaseEnd
rlPhaseStartTest rlPhaseStartTest
rlRun "rpm -qa | fgrep -e redhat-rpm-config -e gcc -e annobin -e binutils | sort"
rlRun "echo 'int main() {return 0;}' | gcc -xc -fplugin=annobin -o /dev/null -" rlRun "echo 'int main() {return 0;}' | gcc -xc -fplugin=annobin -o /dev/null -"
rlPhaseEnd rlPhaseEnd
rlJournalPrintText rlJournalPrintText