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