mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Make table tests run on linux; add comments explaining how to run them.
Needed for testing 41916. r=karnaze
This commit is contained in:
parent
0919d56209
commit
396a8f584c
@ -1,7 +1,33 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Table regression tests.
|
||||
#
|
||||
# How to run:
|
||||
# 1. Before you make changes, run:
|
||||
# rtest.sh baseline
|
||||
# 2. Make your changes and rebuild
|
||||
# 3. rtest.sh verify >outfilename
|
||||
#
|
||||
# This unfortunately doesn't work if you build in a separate objdir.
|
||||
# If you do, you'll set the MOZILLA_FIVE_HOME variable below to point
|
||||
# to your objdir.
|
||||
# To fix this we'd need to make a Makefile.in for this directory
|
||||
# and patch in the objdir from the build system.
|
||||
#
|
||||
|
||||
dirs="core viewer_tests bugs marvin other dom"
|
||||
|
||||
# Set a bunch of environment vars needed by runtests.sh or viewer:
|
||||
MOZ_SRC=`pwd | sed "s_/mozilla/layout/html/tests/table__"`
|
||||
export MOZ_SRC
|
||||
|
||||
# Insert objdir between mozilla and dist if necessary:
|
||||
MOZILLA_FIVE_HOME=$MOZ_SRC/mozilla/dist/bin
|
||||
export MOZILLA_FIVE_HOME
|
||||
|
||||
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MOZILLA_FIVE_HOME
|
||||
export LD_LIBRARY_PATH
|
||||
|
||||
case $1 in
|
||||
baseline|verify|clean)
|
||||
;;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user