libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / busybox / testsuite / cal.tests
blob5509cf0ef75449c7b02721a97a2e0a22ead726a5
1 #!/bin/sh
2 # Copyright 2010 by Denys Vlasenko
3 # Licensed under GPLv2, see file LICENSE in this source tree.
5 . ./testing.sh
6 test -f "$bindir/.config" && . "$bindir/.config"
8 # testing "test name" "command" "expected result" "file input" "stdin"
10 testing "cal 2000" "cal 1 2000" "\
11 January 2000
12 Su Mo Tu We Th Fr Sa
14 2 3 4 5 6 7 8
15 9 10 11 12 13 14 15
16 16 17 18 19 20 21 22
17 23 24 25 26 27 28 29
18 30 31
19 " "" ""
21 test x"$CONFIG_LOCALE_SUPPORT" = x"y" \
22 && test x"$CONFIG_UNICODE_SUPPORT" = x"y" \
23 && test x"$CONFIG_LAST_SUPPORTED_WCHAR" = x"0" \
24 && test x"$CONFIG_UNICODE_WIDE_WCHARS" = x"y" \
25 && test x"$CONFIG_STATIC" != x"y" \
26 && test x"$CONFIG_CROSS_COMPILER_PREFIX" = x"" \
27 && testing "unicode cal 2000" "LANG=zh_TW.utf8 cal 1 2000" "\
28 一月 2000
29 日 一 二 三 四 五 六
31 2 3 4 5 6 7 8
32 9 10 11 12 13 14 15
33 16 17 18 19 20 21 22
34 23 24 25 26 27 28 29
35 30 31
36 " "" ""
38 exit $FAILCOUNT