gecko-dev/layout/html/tests/block/runtests.sh

40 строки
994 B
Bash
Исходник Обычный вид История

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
cp /dev/null $testsfile
for FILE in `ls file_list.txt file_list[0-9].txt 2> /dev/null`; do
egrep -v "^#" < $FILE \
| sed -e "s@file:///s\(:\||\)@file://$MOZ_TEST_BASE@" \
>> $testsfile
done
if [ \! -s $testfile ]; then
echo "WARNING: No file lists found in `pwd`"
rm -f $testsfile
return 0
fi
1999-10-16 03:25:02 +04:00
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
1999-10-16 03:25:02 +04:00
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
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