2000-03-21 01:56:18 +03:00
|
|
|
#!/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.
|
|
|
|
|
2000-05-17 02:53:35 +04:00
|
|
|
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
|
2000-03-21 01:56:18 +03:00
|
|
|
|
|
|
|
|
|
|
|
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
|