summaryrefslogtreecommitdiffstats
path: root/tests/date
AgeCommit message (Collapse)AuthorLines
13 daystests: date: add timezone conversion testSylvestre Ledru-0/+4
*tests/date/date.pl: Add the test case. Add test case for https://github.com/uutils/coreutils/issues/10800 to verify `date -u -d '10:30 UTC-05'` converts to 15:30 UTC.
13 daystests: date: add edge cases for modifiersSylvestre Ledru-0/+17
* tests/date/date.pl: Add the test case. Add test cases for https://github.com/uutils/coreutils/issues/10957
2026-02-13tests: date: check that options can follow the format stringCollin Funk-0/+2
* tests/date/date.pl (@Tests): Add the test case.
2026-02-12tests: date: check dotted EU dates in combinationPádraig Brady-0/+4
* tests/date/date.pl: Add other date elements to ensure abbreviated dotted dates are parsed appropriately. Corresponds to gnulib commit 451042cb76
2026-02-08date: add tests and NEWS for dd.mm.yy supportGabriel-0/+6
* NEWS: Mention the new feature. * tests/date/date.pl: Add test cases.
2026-01-27tests: date: test that %% in the string is not replacedCollin Funk-0/+36
* tests/date/percent-percent.sh: New file. * tests/local.mk (all_tests): Add it.
2026-01-16maint: spelling fixesPaul Eggert-2/+2
2026-01-11tests: date: test nested parenthesis comment handlingPádraig Brady-0/+5
* tests/date/date.pl: Add test cases. Suggested by Sylvestre Ledru.
2026-01-07tests: date: test parenthesis comment handlingSylvestre Ledru-0/+15
* tests/date/date.pl: Add the check.
2026-01-01maint: run 'make update-copyright'Collin Funk-11/+11
2025-12-24tests: date: improve locale testsCollin Funk-0/+10
* tests/date/date-locale-hour.sh: Test that the default format of 10 random supported locales is the same as 'locale date_fmt'.
2025-12-15tests: date: add another locale test caseCollin Funk-0/+20
On a GNU/Linux system, we have the following: $ LC_ALL=en_US.UTF-8 date -u -d 1:00 Sun Dec 14 01:00:00 AM UTC 2025 $ LC_ALL=en_US.UTF-8 locale date_fmt %a %b %e %r %Z %Y $ LC_ALL=en_US.UTF-8 locale t_fmt_ampm %I:%M:%S %p $ LC_ALL=nl_NL.UTF-8 date -u -d 1:00 zo 14 dec 2025 1:00:00 UTC $ LC_ALL=nl_NL.UTF-8 locale date_fmt %a %e %b %Y %k:%M:%S %Z We respect the locales preference for a leading zero or leading space in single digit hours. * tests/date/date-locale-hour.sh: Check that the locales preference for leading zeros or spaces in single digit hours is used.
2025-11-12maint: fix a typo in commentsCollin Funk-1/+1
* tests/date/reference.sh: Fix typo; s/modiication/modification.
2025-11-01tests: date: avoid test failure on NetBSDCollin Funk-1/+7
* tests/date/date-tz.sh: Allow date to fail with large values for TZ since NetBSD's tzalloc function limits them to 256 bytes.
2025-10-28tests: fix new date/resolution.sh test on macOSPádraig Brady-3/+4
* tests/date/resolution.sh: Fix comparison on systems with less than nano second reslution, where we use sed to discard the redundant trailing zeros output by date --resolution. Reported by Bruno Haible on macOS.
2025-10-23tests: date: test --resolution and %-NPádraig Brady-0/+31
* tests/date/resolution.sh: New test for --resolution and %-N. * tests/local.mk: Reference the new test.
2025-10-23tests: date: test --referencePádraig Brady-0/+50
* tests/date/reference.sh: Ensure the -r option is tested. * tests/local.mk: Add the test.
2025-10-13tests: date: check that the hour format of the current locale is usedCollin Funk-0/+40
* tests/date/date-locale-hour.sh: New file. * tests/local.mk (all_tests): Add the new test. Co-authored-by: Pádraig Brady <P@draigBrady.com>
2025-07-23tests: date: add tests for the Ethiopian calendarCollin Funk-0/+45
* tests/date/date-ethiopia.sh: New file. * tests/local.mk (all_tests): Add the test.
2025-07-23tests: date: add tests for the Solar Hijri calendarCollin Funk-0/+45
* tests/date/date-iran.sh: New file. * tests/local.mk (all_tests): Add the test.
2025-07-21tests: date: add tests for the Thai solar calendarCollin Funk-0/+46
* tests/date/date-thailand.sh: New file. * tests/local.mk (all_tests): Add the test.
2025-06-10date: port test to NetBSD 10Paul Eggert-3/+6
Problem reported by Collin Funk in: https://lists.gnu.org/r/bug-gnulib/2025-06/msg00094.html * tests/date/date-debug.sh: Also allow NetBSD 10 mktime behavior. Although NetBSD contradicts POSIX, POSIX is likely wrong here and I vaguely recall that there’s a POSIX correction in progress that will allow the NetBSD behavior.
2025-06-08build: update gnulib submodule to latestPaul Eggert-1/+1
* tests/date/date-debug.sh: Update to match current behavior of Gnulib's parse-datetime module.
2025-04-23tests: add a test case for negative relative datePádraig Brady-0/+3
* tests/date/date.pl: To exercise option processing.
2025-01-01maint: update all copyright year number rangesPádraig Brady-5/+5
Update to latest gnulib with new copyright year. Run "make update-copyright" and then... * gnulib: Update included in this commit as copyright years are the only change from the previous gnulib commit. * tests/init.sh: Sync with gnulib to pick up copyright year. * bootstrap: Likewise. * tests/sample-test: Adjust to use the single most recent year.
2024-01-01maint: update all copyright year number rangesPádraig Brady-5/+5
Update to latest gnulib with new copyright year. Run "make update-copyright" and then... * gnulib: Update included in this commit as copyright years are the only change from the previous gnulib commit. * tests/init.sh: Sync with gnulib to pick up copyright year. * bootstrap: Manually update copyright year, until we fully sync with gnulib at a later stage. * tests/sample-test: Adjust to use the single most recent year.
2023-06-19tests: move tests to a directory per utilitySylvestre Ledru-0/+845
* cfg.mk: Adjust syntax check exclusion paths. * tests/local.mk: Adjust for renamed tests.
2005-08-13.Jim Meyering-750/+0
2005-08-13move a bunch of tests to ../misc/dateJim Meyering-23/+0
2005-08-13move a bunch of tests to ../misc/dateJim Meyering-41/+0
2005-08-13move a handful of tests to ../misc/dateJim Meyering-20/+2
2005-08-13With todays additions, the generated shell script,Jim Meyering-18/+1
tests/date/date-tests had becoming far too large (over 350KB), so use the superior-but-perl-requiring framework instead. * tests/date/Test.pm: Move new tests from here... * tests/misc/date: ...to this new file.
2005-08-13(test_vector): Add 364 more tests like the above.Jim Meyering-1/+5
Remove unused $sunos4 variable.
2005-08-13(test_vector) [cross-dst]: New test for just-fixed getdate.y bug.Jim Meyering-0/+9
2005-08-12.Jim Meyering-2/+2
2005-08-02.Jim Meyering-25/+23
2005-08-02(empty-format): New test, for this case.Jim Meyering-0/+2
2005-07-12.Jim Meyering-1/+1
2005-07-08Regenerate.Paul Eggert-1/+1
2005-07-07.Jim Meyering-5/+5
2005-07-03.Jim Meyering-33/+34
2005-07-03Regenerate.Paul Eggert-17/+18
2005-07-02.Jim Meyering-1/+1
2005-06-30.Jim Meyering-15/+16
2005-06-27.Jim Meyering-50/+52
2005-06-20.Jim Meyering-5/+5
2005-06-02Regenerate.Paul Eggert-54/+54
2005-05-30Regenerate.Paul Eggert-11/+11
2005-05-18Regenerate.Paul Eggert-1/+1
2005-05-14Regenerate.Paul Eggert-1/+1