public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Neil Hanlon <neil@shrug.pw>
To: git-commits@fedoraproject.org
Subject: [rpms/remind] epel10: Add tests, split documentation into subpkg
Date: Fri, 21 Aug 2026 13:53:03 GMT	[thread overview]
Message-ID: <178732038339.1.9046748781427314574.rpms-remind-92102badfd47@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/remind
Branch : epel10
Commit : 92102badfd4783700735c219989ec00167e10d1d
Author : Neil Hanlon <neil@shrug.pw>
Date   : 2024-02-07T14:10:18+00:00
Stats  : +134/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/remind/c/92102badfd4783700735c219989ec00167e10d1d?branch=epel10

Log:
Add tests, split documentation into subpkg

---
diff --git a/remind.spec b/remind.spec
index c47007b..82edb1a 100644
--- a/remind.spec
+++ b/remind.spec
@@ -68,6 +68,13 @@ desktop-file-install \
 
 desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE3}
 
+%check
+# NOTE(neil): 2024-01-09 disabling tz.rem as it is broken
+
+sed -iE 's,^TZ=America.*,,;s,^TZ=Europe.*,,' tests/test-rem
+
+make test
+
 %files
 %{_bindir}/rem2html
 %{_bindir}/cm2rem.tcl

diff --git a/remove-timezone-tests-from-compare.patch b/remove-timezone-tests-from-compare.patch
new file mode 100644
index 0000000..c00ec78
--- /dev/null
+++ b/remove-timezone-tests-from-compare.patch
@@ -0,0 +1,127 @@
+--- a/tests/test.cmp	2023-12-14 16:08:46.000000000 -0500
++++ b/tests/test.cmp	2024-01-09 15:07:11.299509756 -0500
+@@ -11510,123 +11510,7 @@
+ │          │          │          │and       │          │          │          │
+ │          │          │          │spaces    │          │          │          │
+ └──────────┴──────────┴──────────┴──────────┴──────────┴──────────┴──────────┘
+-\f# Test conversion between local time and UTC
+-
+-set a localtoutc('2022-01-01@12:00')
+-localtoutc(2022-01-01@12:00) => 2022-01-01@17:00
+-set a localtoutc('2022-03-13@03:59')
+-localtoutc(2022-03-13@03:59) => 2022-03-13@07:59
+-set a localtoutc('2022-03-13@04:00')
+-localtoutc(2022-03-13@04:00) => 2022-03-13@08:00
+-set a localtoutc('2022-03-13@04:01')
+-localtoutc(2022-03-13@04:01) => 2022-03-13@08:01
+-set a localtoutc('2022-06-01@12:00')
+-localtoutc(2022-06-01@12:00) => 2022-06-01@16:00
+-set a localtoutc('2022-11-06@02:59')
+-localtoutc(2022-11-06@02:59) => 2022-11-06@07:59
+-set a localtoutc('2022-11-06@03:00')
+-localtoutc(2022-11-06@03:00) => 2022-11-06@08:00
+-set a localtoutc('2022-11-06@03:01')
+-localtoutc(2022-11-06@03:01) => 2022-11-06@08:01
+-set a localtoutc('2022-12-01@12:00')
+-localtoutc(2022-12-01@12:00) => 2022-12-01@17:00
+-
+-set b utctolocal('2022-01-01@17:00')
+-utctolocal(2022-01-01@17:00) => 2022-01-01@12:00
+-set b utctolocal('2022-03-13@06:00')
+-utctolocal(2022-03-13@06:00) => 2022-03-13@01:00
+-set b utctolocal('2022-03-13@07:01')
+-utctolocal(2022-03-13@07:01) => 2022-03-13@03:01
+-set b utctolocal('2022-03-13@07:59')
+-utctolocal(2022-03-13@07:59) => 2022-03-13@03:59
+-set b utctolocal('2022-03-13@07:00')
+-utctolocal(2022-03-13@07:00) => 2022-03-13@03:00
+-set b utctolocal('2022-03-13@07:01')
+-utctolocal(2022-03-13@07:01) => 2022-03-13@03:01
+-set b utctolocal('2022-03-13@07:59')
+-utctolocal(2022-03-13@07:59) => 2022-03-13@03:59
+-set b utctolocal('2022-06-01@16:00')
+-utctolocal(2022-06-01@16:00) => 2022-06-01@12:00
+-set b utctolocal('2022-11-06@03:59')
+-utctolocal(2022-11-06@03:59) => 2022-11-05@23:59
+-set b utctolocal('2022-11-06@07:00')
+-utctolocal(2022-11-06@07:00) => 2022-11-06@02:00
+-set b utctolocal('2022-11-06@07:01')
+-utctolocal(2022-11-06@07:01) => 2022-11-06@02:01
+-set b utctolocal('2022-11-06@07:59')
+-utctolocal(2022-11-06@07:59) => 2022-11-06@02:59
+-set b utctolocal('2022-11-06@08:00')
+-utctolocal(2022-11-06@08:00) => 2022-11-06@03:00
+-set b utctolocal('2022-11-06@08:01')
+-utctolocal(2022-11-06@08:01) => 2022-11-06@03:01
+-set b utctolocal('2022-12-01@18:00')
+-utctolocal(2022-12-01@18:00) => 2022-12-01@13:00
+-
+-set c timezone('2022-07-01')
+-timezone(2022-07-01) => "EDT"
+-set c timezone('2022-12-01')
+-timezone(2022-12-01) => "EST"
+-
+-No reminders.
+-# Test conversion between local time and UTC
+-
+-set a localtoutc('2022-01-01@12:00')
+-localtoutc(2022-01-01@12:00) => 2022-01-01@11:00
+-set a localtoutc('2022-03-13@03:59')
+-localtoutc(2022-03-13@03:59) => 2022-03-13@02:59
+-set a localtoutc('2022-03-13@04:00')
+-localtoutc(2022-03-13@04:00) => 2022-03-13@03:00
+-set a localtoutc('2022-03-13@04:01')
+-localtoutc(2022-03-13@04:01) => 2022-03-13@03:01
+-set a localtoutc('2022-06-01@12:00')
+-localtoutc(2022-06-01@12:00) => 2022-06-01@10:00
+-set a localtoutc('2022-11-06@02:59')
+-localtoutc(2022-11-06@02:59) => 2022-11-06@01:59
+-set a localtoutc('2022-11-06@03:00')
+-localtoutc(2022-11-06@03:00) => 2022-11-06@02:00
+-set a localtoutc('2022-11-06@03:01')
+-localtoutc(2022-11-06@03:01) => 2022-11-06@02:01
+-set a localtoutc('2022-12-01@12:00')
+-localtoutc(2022-12-01@12:00) => 2022-12-01@11:00
+-
+-set b utctolocal('2022-01-01@17:00')
+-utctolocal(2022-01-01@17:00) => 2022-01-01@18:00
+-set b utctolocal('2022-03-13@06:00')
+-utctolocal(2022-03-13@06:00) => 2022-03-13@07:00
+-set b utctolocal('2022-03-13@07:01')
+-utctolocal(2022-03-13@07:01) => 2022-03-13@08:01
+-set b utctolocal('2022-03-13@07:59')
+-utctolocal(2022-03-13@07:59) => 2022-03-13@08:59
+-set b utctolocal('2022-03-13@07:00')
+-utctolocal(2022-03-13@07:00) => 2022-03-13@08:00
+-set b utctolocal('2022-03-13@07:01')
+-utctolocal(2022-03-13@07:01) => 2022-03-13@08:01
+-set b utctolocal('2022-03-13@07:59')
+-utctolocal(2022-03-13@07:59) => 2022-03-13@08:59
+-set b utctolocal('2022-06-01@16:00')
+-utctolocal(2022-06-01@16:00) => 2022-06-01@18:00
+-set b utctolocal('2022-11-06@03:59')
+-utctolocal(2022-11-06@03:59) => 2022-11-06@04:59
+-set b utctolocal('2022-11-06@07:00')
+-utctolocal(2022-11-06@07:00) => 2022-11-06@08:00
+-set b utctolocal('2022-11-06@07:01')
+-utctolocal(2022-11-06@07:01) => 2022-11-06@08:01
+-set b utctolocal('2022-11-06@07:59')
+-utctolocal(2022-11-06@07:59) => 2022-11-06@08:59
+-set b utctolocal('2022-11-06@08:00')
+-utctolocal(2022-11-06@08:00) => 2022-11-06@09:00
+-set b utctolocal('2022-11-06@08:01')
+-utctolocal(2022-11-06@08:01) => 2022-11-06@09:01
+-set b utctolocal('2022-12-01@18:00')
+-utctolocal(2022-12-01@18:00) => 2022-12-01@19:00
+-
+-set c timezone('2022-07-01')
+-timezone(2022-07-01) => "CEST"
+-set c timezone('2022-12-01')
+-timezone(2022-12-01) => "CET"
+-
+-No reminders.
+-Solstice/Equinox Tests
++\fSolstice/Equinox Tests
+ March Solstice 2022 is 2022-03-20@15:34 UTC
+ June Equinox 2022 is 2022-06-21@09:14 UTC
+ September Solstice 2022 is 2022-09-23@01:05 UTC

             reply	other threads:[~2026-08-21 13:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-21 13:53 Neil Hanlon [this message]
2026-08-21 13:53 [rpms/remind] epel10: Add tests, split documentation into subpkg Neil Hanlon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178732038339.1.9046748781427314574.rpms-remind-92102badfd47@fedoraproject.org \
    --to=neil@shrug.pw \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox