]> git.ipfire.org Git - thirdparty/glibc.git/blame - nss/tst_fgetgrent.sh
INSTALL, install.texi: minor updates, regenerate
[thirdparty/glibc.git] / nss / tst_fgetgrent.sh
CommitLineData
48d0341c 1#!/bin/sh
dff8da6b 2# Copyright (C) 1999-2024 Free Software Foundation, Inc.
f535dd02 3# This file is part of the GNU C Library.
41bdb6e2 4
f535dd02 5# The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
6# modify it under the terms of the GNU Lesser General Public
7# License as published by the Free Software Foundation; either
8# version 2.1 of the License, or (at your option) any later version.
9
f535dd02
UD
10# The GNU C Library is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
41bdb6e2
AJ
13# Lesser General Public License for more details.
14
15# You should have received a copy of the GNU Lesser General Public
59ba27a6 16# License along with the GNU C Library; if not, see
5a82c748 17# <https://www.gnu.org/licenses/>.
f535dd02 18
57c69bef
DL
19set -e
20
f535dd02 21common_objpfx=$1; shift
740b3dbe 22test_program_prefix=$1; shift
f535dd02 23
b121fdc5 24testout=${common_objpfx}/nss/tst_fgetgrent.out
f535dd02
UD
25
26result=0
27
740b3dbe 28${test_program_prefix} \
b121fdc5 29${common_objpfx}nss/tst_fgetgrent 0 > ${testout} || result=1
f535dd02 30
740b3dbe 31${test_program_prefix} \
b121fdc5 32${common_objpfx}nss/tst_fgetgrent 1 >> ${testout} || result=1
f535dd02 33
740b3dbe 34${test_program_prefix} \
b121fdc5 35${common_objpfx}nss/tst_fgetgrent 2 >> ${testout} || result=1
f535dd02 36
740b3dbe 37${test_program_prefix} \
b121fdc5 38${common_objpfx}nss/tst_fgetgrent 3 >> ${testout} || result=1
f535dd02
UD
39
40exit $result