dbaron%fas.harvard.edu 7753d35814 Make the block regression tests easier to run on Linux. They no longer require setting any environment variables. r=pollmann Not part of build.
git-svn-id: svn://10.0.0.236/trunk@74968 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-27 23:42:34 +00:00

28 lines
748 B
Bash
Executable File

#!/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.
testsfile=/tmp/$$-tests.txt
sed -e "s@file:///s\(:\||\)@file://$MOZ_TEST_BASE@" < file_list.txt > $testsfile
if test "$1"x = "baselinex"; then
rm -r -f baseline
mkdir baseline
echo
echo $MOZ_TEST_VIEWER -o baseline/ -f $testsfile
$MOZ_TEST_VIEWER -o baseline/ -f $testsfile
elif test "$1"x = "verifyx"; then
rm -r -f verify
mkdir verify
echo
echo $MOZ_TEST_VIEWER -o baseline/ -f $testsfile
$MOZ_TEST_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