3 # Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
6 # SPDX-License-Identifier: GPL-2.0-or-later
8 # s[] is array of match strings
9 # r[] is array of match patterns
17 print "Line " NR " does not match expected string: " s[NR]
21 print "Line " NR " does not match expected pattern: " r[NR]
28 if (fail == 0 && NR != lines) {
30 print "Expected " lines " lines, found " NR " line(s)."