xref: /freebsd/contrib/sendmail/libsm/t-streq.sh (revision a90b9d0159070121c221b966469c3e36d912bf82)
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
13PRG=./t-streq
14R=0
15# format:
16# two lines:
17# len:string1
18# result:string2
19# result:
20# 1: equal
21# 0: not equal
22${PRG} <<EOF
230:a
241:X
251:a
261:A
272:a
281:A
291:aB
301:AC
312:aB
320:AC
332:aB\n
341:AB
3520:xabcez@uabcey.por.az\n
361:xabcez@uabcey.por.az
377:ünchen\n
381:ünchen
397:ünchen\n
400:üncheX
4122:iseadmin@somest.sld.br>\n
421:iseadmin@somest.sld.br
4322:iseadmin@somest.sld.br
441:iseadmin@somest.sld.br>\n
45EOF
46R=$?
47
48exit $R
49