1999-10-16 03:25:02 +04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2000-07-28 03:42:34 +04:00
|
|
|
nodots() {
|
|
|
|
NODOTS_OUT=$1
|
|
|
|
while echo "$NODOTS_OUT" | grep '/\./' > /dev/null
|
|
|
|
do
|
|
|
|
NODOTS_OUT=`echo $NODOTS_OUT | sed -e"s,/\./,/,"`
|
|
|
|
done
|
|
|
|
while echo "$NODOTS_OUT" | grep -e '/[^/]*/\.\.' > /dev/null
|
|
|
|
do
|
|
|
|
NODOTS_OUT=`echo $NODOTS_OUT | sed -e"s,/[^/]*/\.\.,,"`
|
|
|
|
done
|
|
|
|
|
|
|
|
echo $NODOTS_OUT
|
|
|
|
}
|
|
|
|
|
2004-01-22 04:54:13 +03:00
|
|
|
dirs=" base \
|
|
|
|
bugs \
|
|
|
|
printing \
|
|
|
|
../table/core \
|
|
|
|
../table/viewer_tests \
|
|
|
|
../table/bugs \
|
|
|
|
../table/marvin \
|
|
|
|
../table/other \
|
|
|
|
../table/dom \
|
|
|
|
../table/printing \
|
|
|
|
../formctls/base \
|
|
|
|
../formctls/bugs \
|
|
|
|
../style/bugs \
|
|
|
|
../xbl \
|
|
|
|
"
|
2001-03-27 10:09:16 +04:00
|
|
|
|
2001-05-11 06:17:35 +04:00
|
|
|
# This doesn't appear to work on Linux right now; needs support for a
|
|
|
|
# null driver, perhaps?
|
|
|
|
#extra_dirs="../table/printing"
|
|
|
|
|
2001-03-27 10:09:16 +04:00
|
|
|
#extra_dirs="net/HTML_Chars net/W3C net/baron net/boxAcidTest net/glazman net/mozilla"
|
2000-07-28 03:42:34 +04:00
|
|
|
|
|
|
|
DEPTH="../../../../.."
|
|
|
|
TEST_BASE=`dirname $0`
|
|
|
|
TEST_BASE=`cd $TEST_BASE;pwd`
|
|
|
|
MOZ_TEST_BASE=$TEST_BASE/$DEPTH
|
2003-10-06 04:57:36 +04:00
|
|
|
MOZCONF=`$MOZ_TEST_BASE/mozilla/build/autoconf/mozconfig-find $MOZ_TEST_BASE/mozilla`
|
2000-07-28 03:42:34 +04:00
|
|
|
|
2000-07-29 02:50:30 +04:00
|
|
|
MOZ_OBJ=""
|
2000-07-28 03:42:34 +04:00
|
|
|
if test -f $MOZCONF; then
|
|
|
|
MOZ_OBJ=`grep -e "^mk_add_options MOZ_OBJDIR=" $MOZCONF | cut -d = -f 2`
|
2000-07-29 02:50:30 +04:00
|
|
|
fi
|
|
|
|
if [ -n "$MOZ_OBJ" ]
|
|
|
|
then
|
2000-07-28 03:42:34 +04:00
|
|
|
MOZ_OBJ=`echo $MOZ_OBJ | sed -e"s,@TOPSRCDIR@,$MOZ_TEST_BASE/mozilla,"`
|
2003-10-15 23:08:35 +04:00
|
|
|
CFG_GUESS=`$MOZ_TEST_BASE/mozilla/build/autoconf/config.guess`
|
|
|
|
MOZ_OBJ=`echo $MOZ_OBJ | sed -e"s,@CONFIG_GUESS@,$CFG_GUESS/,"`
|
2000-07-28 03:42:34 +04:00
|
|
|
else
|
2000-07-29 02:50:30 +04:00
|
|
|
MOZ_OBJ=$MOZ_TEST_BASE/mozilla/
|
2000-07-28 03:42:34 +04:00
|
|
|
fi
|
|
|
|
|
2002-04-18 21:53:32 +04:00
|
|
|
w1=`uname | grep WIN`
|
2002-04-14 21:50:50 +04:00
|
|
|
if [ "$w1" = "" ]; then
|
|
|
|
MOZ_TEST_VIEWER="${MOZ_OBJ}dist/bin/mozilla-viewer.sh -- -d 500"
|
|
|
|
else
|
|
|
|
MOZ_TEST_VIEWER="${MOZ_OBJ}dist/bin/viewer.exe"
|
|
|
|
fi
|
2000-07-28 03:42:34 +04:00
|
|
|
# These are needed by runtests.sh
|
|
|
|
MOZ_TEST_VIEWER=`nodots $MOZ_TEST_VIEWER`
|
|
|
|
MOZ_TEST_BASE=`nodots $MOZ_TEST_BASE`
|
|
|
|
export MOZ_TEST_VIEWER
|
|
|
|
export MOZ_TEST_BASE
|
2003-10-15 23:08:35 +04:00
|
|
|
XPCOM_DEBUG_BREAK="warn"
|
|
|
|
export XPCOM_DEBUG_BREAK
|
1999-10-16 03:25:02 +04:00
|
|
|
case $1 in
|
|
|
|
baseline|verify|clean)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Usage: $0 baseline|verify|clean"
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
for i in $dirs; do
|
2000-07-28 03:42:34 +04:00
|
|
|
cd $TEST_BASE/$i
|
|
|
|
echo "Running $1 in $i"
|
|
|
|
$TEST_BASE/runtests.sh $1
|
|
|
|
cd $TEST_BASE
|
1999-10-16 03:25:02 +04:00
|
|
|
done
|