Make table tests run on linux; add comments explaining how to run them.

Needed for testing 41916.  r=karnaze
This commit is contained in:
akkana%netscape.com 2000-06-16 21:23:16 +00:00
Родитель 967c5f797e
Коммит b3307f3e6b
2 изменённых файлов: 4 добавлений и 22 удалений

Просмотреть файл

@ -1,19 +0,0 @@
#!/bin/sh
dirs="core viewer_tests bugs marvin other dom"
case $1 in
baseline|verify|clean)
;;
*)
echo "Usage: $0 baseline|verify|clean"
exit 1
;;
esac
for i in $dirs; do
cd $i
echo $cmd in $i
../runtests.sh $1
cd ..
done

Просмотреть файл

@ -3,7 +3,8 @@
# create test file to use first; since we don't know where the tree
# is, and we need full pathnames in the file, we create it on the fly.
viewer=$MOZ_SRC/mozilla/dist/bin/viewer
viewer=$MOZILLA_FIVE_HOME/viewer
echo viewer: $viewer
testsfile=/tmp/$$-tests.txt
sed -e "s@file:///s|@file:$MOZ_SRC@" < file_list.txt > $testsfile
@ -11,11 +12,11 @@ sed -e "s@file:///s|@file:$MOZ_SRC@" < file_list.txt > $testsfile
if test "$1"x = "baselinex"; then
rm -r -f baseline
mkdir baseline
$viewer -o baseline/ -f $testsfile
$viewer -d 1 -o baseline/ -f $testsfile
elif test "$1"x = "verifyx"; then
rm -r -f verify
mkdir verify
$viewer -o verify/ -rd baseline/ -f $testsfile
$viewer -d 1 -o verify/ -rd baseline/ -f $testsfile
elif test "$1"x = "cleanx"; then
rm -r -f verify baseline
else