]> git.ipfire.org Git - thirdparty/glibc.git/blame - grp/tst_fgetgrent.sh
sparc (64bit): Regenerate ulps
[thirdparty/glibc.git] / grp / tst_fgetgrent.sh
CommitLineData
48d0341c 1#!/bin/sh
6d7e8eda 2# Copyright (C) 1999-2023 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
UD
23
24testout=${common_objpfx}/grp/tst_fgetgrent.out
f535dd02
UD
25
26result=0
27
740b3dbe 28${test_program_prefix} \
f535dd02
UD
29${common_objpfx}grp/tst_fgetgrent 0 > ${testout} || result=1
30
740b3dbe 31${test_program_prefix} \
f535dd02
UD
32${common_objpfx}grp/tst_fgetgrent 1 >> ${testout} || result=1
33
740b3dbe 34${test_program_prefix} \
f535dd02
UD
35${common_objpfx}grp/tst_fgetgrent 2 >> ${testout} || result=1
36
740b3dbe 37${test_program_prefix} \
f535dd02
UD
38${common_objpfx}grp/tst_fgetgrent 3 >> ${testout} || result=1
39
40exit $result