1999-10-16 03:25:02 +04: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.
|
|
|
|
|
|
|
|
testsfile=/tmp/$$-tests.txt
|
|
|
|
|
2000-07-28 03:42:34 +04:00
|
|
|
sed -e "s@file:///s\(:\||\)@file://$MOZ_TEST_BASE@" < file_list.txt > $testsfile
|
1999-10-16 03:25:02 +04:00
|
|
|
|
|
|
|
if test "$1"x = "baselinex"; then
|
|
|
|
rm -r -f baseline
|
|
|
|
mkdir baseline
|
2000-07-28 03:42:34 +04:00
|
|
|
echo
|
|
|
|
echo $MOZ_TEST_VIEWER -o baseline/ -f $testsfile
|
|
|
|
$MOZ_TEST_VIEWER -o baseline/ -f $testsfile
|
1999-10-16 03:25:02 +04:00
|
|
|
elif test "$1"x = "verifyx"; then
|
|
|
|
rm -r -f verify
|
|
|
|
mkdir verify
|
2000-07-28 03:42:34 +04:00
|
|
|
echo
|
|
|
|
echo $MOZ_TEST_VIEWER -o baseline/ -f $testsfile
|
|
|
|
$MOZ_TEST_VIEWER -o verify/ -rd baseline/ -f $testsfile
|
1999-10-16 03:25:02 +04:00
|
|
|
elif test "$1"x = "cleanx"; then
|
|
|
|
rm -r -f verify baseline
|
|
|
|
else
|
|
|
|
echo "Usage: $0 baseline|verify|clean"
|
|
|
|
fi
|
|
|
|
rm -f $testsfile
|