mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
30 lines
761 B
Bash
30 lines
761 B
Bash
|
#!/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
|