2000-08-24 08:40:47 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
# FIXME
|
|
|
|
|
|
2006-08-17 19:58:17 +00:00
|
|
|
# Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
|
|
|
# 02110-1301, USA.
|
|
|
|
|
|
2000-08-24 08:40:47 +00:00
|
|
|
if test "$VERBOSE" = yes; then
|
|
|
|
|
set -x
|
|
|
|
|
FIXME --version
|
|
|
|
|
fi
|
|
|
|
|
|
2000-12-10 09:20:35 +00:00
|
|
|
# FIXME: . $srcdir/../envvar-check
|
|
|
|
|
# FIXME: . $srcdir/../lang-default
|
2001-09-02 15:19:27 +00:00
|
|
|
# FIXME: PRIV_CHECK_ARG=require-root . $srcdir/../priv-check
|
|
|
|
|
# FIXME: PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
|
2000-12-10 09:20:35 +00:00
|
|
|
|
2000-08-24 08:40:47 +00:00
|
|
|
pwd=`pwd`
|
2002-04-19 21:53:01 +00:00
|
|
|
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
2002-06-15 09:54:08 +00:00
|
|
|
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
2002-07-29 09:54:40 +00:00
|
|
|
trap '(exit $?); exit $?' 1 2 13 15
|
2000-08-24 08:40:47 +00:00
|
|
|
|
|
|
|
|
framework_failure=0
|
2002-04-19 21:53:01 +00:00
|
|
|
mkdir -p $tmp || framework_failure=1
|
2000-08-24 08:40:47 +00:00
|
|
|
cd $tmp || framework_failure=1
|
|
|
|
|
|
|
|
|
|
if test $framework_failure = 1; then
|
2002-10-08 09:21:08 +00:00
|
|
|
echo "$0: failure in testing framework" 1>&2
|
2002-07-29 09:54:40 +00:00
|
|
|
(exit 1); exit 1
|
2000-08-24 08:40:47 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
fail=0
|
|
|
|
|
|
2001-11-03 21:44:36 +00:00
|
|
|
FIXME > out || fail=1
|
2003-07-11 20:40:28 +00:00
|
|
|
cat <<\EOF > exp || fail=1
|
2001-08-04 15:16:37 +00:00
|
|
|
FIXME
|
2001-11-03 21:44:36 +00:00
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
cmp out exp || fail=1
|
|
|
|
|
test $fail = 1 && diff out exp 2> /dev/null
|
2000-08-24 08:40:47 +00:00
|
|
|
|
2002-07-29 09:54:40 +00:00
|
|
|
(exit $fail); exit $fail
|