layout/html/tests/frameset/runtests.sh
author jorendorff@mozilla.com
Mon, 19 Nov 2007 15:25:08 -0600
changeset 8097 74d4f075ce54b6e8a77a88dfaaa1d0bf2f665c58
parent 1 9b2a99adc05e53cd4010de512f50118594756650
permissions -rwxr-xr-x
Merging from cvs-trunk-mirror to mozilla-central.

#!/bin/sh

# 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.

if test "$ARCH"x = 'winx'; then
 viewer=$MOZ_SRC/mozilla/dist/WIN32_D.OBJ/bin/viewer.exe
 testsfile="file_list.txt"
else
 viewer=$MOZ_SRC/mozilla/dist/bin/viewer
 testsfile=$$-tests.txt
 sed -e "s@file:///s|@file:$MOZ_SRC@" < file_list.txt > $testsfile
fi


if test "$1"x = "baselinex"; then
  rm -r -f baseline
  mkdir baseline
  $viewer -o baseline/ -f $testsfile
elif test "$1"x = "verifyx"; then
  rm -r -f verify
  mkdir verify
  $viewer -o verify/ -rd baseline/ -f $testsfile
elif test "$1"x = "cleanx"; then
  rm -r -f verify baseline  
else
  echo "Usage: $0 baseline|verify|clean"
fi
rm -f $testsfile