mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 23:08:40 +02:00
Add localization tests.
This commit is contained in:
6
tests/test-all-langs.sh
Executable file
6
tests/test-all-langs.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
for i in ../include/lang/??.rem ; do
|
||||||
|
echo "Testing lang file: $i"
|
||||||
|
../src/remind -r -q "-ii=\"$i\"" ../tests/tstlang.rem
|
||||||
|
done
|
||||||
@@ -622,6 +622,11 @@ fi
|
|||||||
# Torture test #2
|
# Torture test #2
|
||||||
../src/remind ../tests/torture2.rem >> ../tests/test.out 2>&1
|
../src/remind ../tests/torture2.rem >> ../tests/test.out 2>&1
|
||||||
|
|
||||||
|
# Languages
|
||||||
|
for i in ../include/lang/??.rem ; do
|
||||||
|
../src/remind -r -q "-ii=\"$i\"" ../tests/tstlang.rem 1 Feb 2024 13:34 >> ../tests/test.out 2>&1
|
||||||
|
done
|
||||||
|
|
||||||
# Make sure all the include files are ok
|
# Make sure all the include files are ok
|
||||||
find ../include -type f -name '*.rem' | while read x; do ../src/remind -n $x 1 Jan 2024 2>>../tests/test.out 1>/dev/null; done
|
find ../include -type f -name '*.rem' | while read x; do ../src/remind -n $x 1 Jan 2024 2>>../tests/test.out 1>/dev/null; done
|
||||||
cmp -s ../tests/test.out ../tests/test.cmp
|
cmp -s ../tests/test.out ../tests/test.cmp
|
||||||
|
|||||||
13530
tests/test.cmp
13530
tests/test.cmp
File diff suppressed because it is too large
Load Diff
@@ -33,9 +33,9 @@ endif
|
|||||||
|
|
||||||
if defined("i")
|
if defined("i")
|
||||||
do [i]
|
do [i]
|
||||||
# msg INCLUDING [i]
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
REM MSG Language: [_("LANGID")]
|
||||||
# Set up a few useful definitions
|
# Set up a few useful definitions
|
||||||
fset show(x) "%%" + x + " yields: " + char(34) + "%" + x + char(34) + "% and %%*" + x + " yields: " + char(34) + "%*" + x + char(34) + "%"
|
fset show(x) "%%" + x + " yields: " + char(34) + "%" + x + char(34) + "% and %%*" + x + " yields: " + char(34) + "%*" + x + char(34) + "%"
|
||||||
set a trigger(today()+2) + " ++2"
|
set a trigger(today()+2) + " ++2"
|
||||||
@@ -856,3 +856,37 @@ msg [showmon(9)]
|
|||||||
msg [showmon(10)]
|
msg [showmon(10)]
|
||||||
msg [showmon(11)]
|
msg [showmon(11)]
|
||||||
msg [showmon(12)]
|
msg [showmon(12)]
|
||||||
|
|
||||||
|
MSG $Ago is [$Ago]%
|
||||||
|
MSG $Am is [$Am]%
|
||||||
|
MSG $And is [$And]%
|
||||||
|
MSG $At is [$At]%
|
||||||
|
MSG $Fromnow is [$Fromnow]%
|
||||||
|
MSG $Hour is [$Hour]%
|
||||||
|
MSG $Is is [$Is]%
|
||||||
|
MSG $Minute is [$Minute]%
|
||||||
|
MSG $Now is [$Now]%
|
||||||
|
MSG $On is [$On]%
|
||||||
|
MSG $Pm is [$Pm]%
|
||||||
|
MSG $Today is [$Today]%
|
||||||
|
MSG $Tomorrow is [$Tomorrow]%
|
||||||
|
MSG $Was is [$Was]%
|
||||||
|
MSG $January is [$January]%
|
||||||
|
MSG $February is [$February]%
|
||||||
|
MSG $March is [$March]%
|
||||||
|
MSG $April is [$April]%
|
||||||
|
MSG $May is [$May]%
|
||||||
|
MSG $June is [$June]%
|
||||||
|
MSG $July is [$July]%
|
||||||
|
MSG $August is [$August]%
|
||||||
|
MSG $September is [$September]%
|
||||||
|
MSG $October is [$October]%
|
||||||
|
MSG $November is [$November]%
|
||||||
|
MSG $December is [$December]%
|
||||||
|
MSG $Monday is [$Monday]%
|
||||||
|
MSG $Tuesday is [$Tuesday]%
|
||||||
|
MSG $Wednesday is [$Wednesday]%
|
||||||
|
MSG $Thursday is [$Thursday]%
|
||||||
|
MSG $Friday is [$Friday]%
|
||||||
|
MSG $Saturday is [$Saturday]%
|
||||||
|
MSG $Sunday is [$Sunday]%
|
||||||
|
|||||||
Reference in New Issue
Block a user