1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-11-23 10:21:40 +00:00
Files
amiga-tz/TESTS

91 lines
1.7 KiB
Plaintext
Raw Normal View History

1989-03-11 22:43:52 -05:00
#! /bin/sh
# '%W%'
rm -f -r try
mkdir try
make `make names`
cp `make names` try
cd try
make date right_only TZDIR=zoneinfo CFLAGS="-g -DEBUG $*"
1989-03-11 22:43:52 -05:00
set -v
1989-03-11 22:43:52 -05:00
1995-10-30 09:52:18 -05:00
# America/New_York tests
1989-03-11 22:43:52 -05:00
1995-10-30 09:52:18 -05:00
TZ=America/New_York
1989-03-11 22:43:52 -05:00
export TZ
# All the legal forms.
./date 2007
./date 2007.44
./date 112007
./date 112007.44
./date 03022007
./date 03022007.44
./date 8903022007
./date 8903022007.44
./date 0302200789
./date 0302200789.44
./date 198903022007.44
# Illegal forms
./date 030220071989
./date 030220071989.44
# Far future times
./date 200103022007.44
./date 210103022007.44
# Far past time--only legal as USG-style
1989-03-11 22:43:52 -05:00
./date 0103022007.44
# Ambiguous, BSD vs. USG
./date 0203040506
# Unambiguous, BSD vs. USG
./date 0202020202
# Times around spring forward
./date 198904020130.00
./date 198904020159.59
./date 198904020200.00
./date 198904020200.01
./date 198904020230.00
./date 198904020259.59
./date 198904020300.00
./date 198904020300.01
./date 198904020330.00
# Times around fall back
./date 198910290030.00
./date 198910290059.59
./date 198910290100.00
./date 198910290100.01
./date 198910290130.00
./date 198910290159.59
./date 198910290200.00
./date 198910290200.01
./date 198910290230.00
#
# Wrong leap second
./date 198712312359.60
# Right leap second
./date 198712311859.60
# Mideast Madness
# Should get an "ambiguous time" message
1989-03-11 22:43:52 -05:00
TZ=Mideast/Riyadh89 ./date 198906011200
# Should get a "spring forward" message
TZ=Mideast/Riyadh89 ./date 198903011159.59
1989-03-11 22:43:52 -05:00
# British Balminess
# Should get an "ambiguous time" message
1989-03-11 22:43:52 -05:00
TZ=GB-Eire ./date 197110310030
# Wrong content
./date ""
./date xxx
# Wrong length
./date 123
# Multiple dots
./date 1234..56
# Dot, no seconds
./date 1234.
# Dot, no main part
./date .56
# Wrong length seconds
./date 1234.5
./date 1234.567