[Rpm-maint] [rpm-software-management/rpm] Add tests for 2038 readiness (PR #1940)

Panu Matilainen notifications at github.com
Tue Mar 1 14:09:36 UTC 2022


@pmatilai commented on this pull request.



> +AT_KEYWORDS([build])
+RPMDB_INIT
+AT_CHECK([[
+touch -t 204205042355 ${RPMTEST}/data/SPECS/hello.spec
+touch -t 204205042355 ${RPMTEST}/data/SOURCES/hello-1.0.tar.gz
+touch -t 204205042355 ${RPMTEST}/data/SOURCES/hello-1.0-modernize.patch
+
+unset SOURCE_DATE_EPOCH
+run rpmbuild --quiet \
+  -ba  "${RPMTEST}"/data/SPECS/hello.spec
+
+run rpm -qp --qf '[%{FILENAMES} %{FILEMTIMES:date}\n]' "${RPMTEST}"/build/SRPMS/hello-1.0-1.src.rpm
+run rpm -qp --qf '[%{FILENAMES} %{FILEMTIMES:date}\n]' "${RPMTEST}"/build/RPMS/*/hello-1.0-1.*.rpm | grep FAQ
+runroot rpm -i --quiet --nodeps /build/RPMS/*/hello-1.0-1.*.rpm
+run rpm -q --qf '[%{FILENAMES} %{FILEMTIMES:date}\n]' hello-1.0-1 | grep FAQ
+ls -l "${RPMTEST}"/usr/share/doc/hello-1.0/FAQ | cut "-d " -f6-10

Here too, always work inside the root if at all possible. The paths on the outside are far more difficult to handle and cause all manner of headaches. That's what `runroot_other` is for.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1940#pullrequestreview-896345159
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/1940/review/896345159 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220301/1552223a/attachment-0001.html>


More information about the Rpm-maint mailing list