2008-03-24 12:47:05 +05:30
|
|
|
#!/bin/sh
|
2015-12-05 04:22:19 +05:30
|
|
|
# Copyright (c) 2008-2015 The OpenRC Authors.
|
|
|
|
# See the Authors file at the top-level directory of this distribution and
|
2021-12-21 06:37:00 +05:30
|
|
|
# https://github.com/OpenRC/openrc/blob/HEAD/AUTHORS
|
2015-12-05 04:22:19 +05:30
|
|
|
#
|
|
|
|
# This file is part of OpenRC. It is subject to the license terms in
|
|
|
|
# the LICENSE file found in the top-level directory of this
|
2021-12-21 06:37:00 +05:30
|
|
|
# distribution and at https://github.com/OpenRC/openrc/blob/HEAD/LICENSE
|
2015-12-05 04:22:19 +05:30
|
|
|
# This file may not be copied, modified, propagated, or distributed
|
|
|
|
# except according to the terms contained in the LICENSE file.
|
2008-03-24 12:47:05 +05:30
|
|
|
|
2009-04-27 02:43:26 +05:30
|
|
|
: ${top_srcdir:=..}
|
|
|
|
. $top_srcdir/test/setup_env.sh
|
2008-03-24 12:47:05 +05:30
|
|
|
|
|
|
|
ret=0
|
|
|
|
|
|
|
|
tret=0
|
|
|
|
for f in yes YES Yes true TRUE True 1 ; do
|
2009-04-27 02:43:26 +05:30
|
|
|
if ! yesno $f; then
|
2011-11-11 08:16:08 +05:30
|
|
|
: $(( tret += 1 ))
|
2009-04-27 02:43:26 +05:30
|
|
|
echo "!$f!"
|
2008-03-24 12:47:05 +05:30
|
|
|
fi
|
|
|
|
done
|
|
|
|
for f in no NO No false FALSE False 0 ; do
|
2009-04-27 02:43:26 +05:30
|
|
|
if yesno $f; then
|
2011-11-11 08:16:08 +05:30
|
|
|
: $(( tret += 1 ))
|
2009-04-27 02:43:26 +05:30
|
|
|
echo "!$f!"
|
2008-03-24 12:47:05 +05:30
|
|
|
fi
|
|
|
|
done
|
2011-11-11 08:16:08 +05:30
|
|
|
: $(( ret += $tret ))
|
2008-03-24 12:47:05 +05:30
|
|
|
|
2019-02-23 02:49:33 +05:30
|
|
|
eend $ret
|
2009-04-27 02:43:26 +05:30
|
|
|
exit $ret
|