]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/sendmail/libsm/t-streq.sh
Merge commit '850ef5ae11d69ea3381bd310f564f025fc8caea3'
[FreeBSD/FreeBSD.git] / contrib / sendmail / libsm / t-streq.sh
1 #!/bin/sh
2 # Copyright (c) 2020 Proofpoint, Inc. and its suppliers.
3 #       All rights reserved.
4 #
5 # By using this file, you agree to the terms and conditions set
6 # forth in the LICENSE file which can be found at the top level of
7 # the sendmail distribution.
8 #
9 # ----------------------------------------
10 # test SM_STRNCASEEQ
11 # ----------------------------------------
12
13 PRG=./t-streq
14 R=0
15 # format:
16 # two lines:
17 # len:string1
18 # result:string2
19 # result:
20 # 1: equal
21 # 0: not equal
22 ${PRG} <<EOF
23 0:a
24 1:X
25 1:a
26 1:A
27 2:a
28 1:A
29 1:aB
30 1:AC
31 2:aB
32 0:AC
33 2:aB\n
34 1:AB
35 20:xabcez@uabcey.por.az\n
36 1:xabcez@uabcey.por.az
37 7:ünchen\n
38 1:ünchen
39 7:ünchen\n
40 0:üncheX
41 22:iseadmin@somest.sld.br>\n
42 1:iseadmin@somest.sld.br
43 22:iseadmin@somest.sld.br
44 1:iseadmin@somest.sld.br>\n
45 EOF
46 R=$?
47
48 exit $R