2007-03-22 10:30:00 -07:00
|
|
|
trap 'echo Unexpected error: $?; exit 2' ERR
|
|
|
|
|
|
|
|
if [[ -z $TEST_HTTP ]]; then
|
|
|
|
export TEST_HTTP=test.mozilla.com
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ -z $1 ]]; then
|
|
|
|
dirs=.
|
|
|
|
else
|
|
|
|
dirs=$@
|
|
|
|
fi
|
|
|
|
|
|
|
|
currdir=`pwd`
|
|
|
|
jsdir=`basename $currdir`
|
|
|
|
|
|
|
|
find $dirs \
|
|
|
|
-mindepth 2 -name '*.js' -print | \
|
|
|
|
grep -v shell.js | \
|
|
|
|
grep -v browser.js | \
|
|
|
|
grep -v template.js | \
|
|
|
|
sed 's/^\.\///' | \
|
|
|
|
while read jsfile
|
|
|
|
do
|
2007-04-30 13:03:56 -07:00
|
|
|
result=`grep $jsfile excluded-n.tests`
|
2007-03-22 10:30:00 -07:00
|
|
|
if [[ -z $result ]]; then
|
|
|
|
result=`echo $jsfile | sed 's/.*js\([0-9]\)_\([0-9]\).*/\1.\2/'`
|
|
|
|
case $result in
|
|
|
|
# 1.1) version=";version=1.1";;
|
|
|
|
# 1.2) version=";version=1.2";;
|
|
|
|
# 1.3) version=";version=1.3";;
|
|
|
|
# 1.4) version=";version=1.4";;
|
|
|
|
1.5) version=";version=1.5";;
|
|
|
|
1.6) version=";version=1.6";;
|
|
|
|
1.7) version=";version=1.7";;
|
2007-07-12 10:49:30 -07:00
|
|
|
1.8) version=";version=1.8";;
|
|
|
|
1.9) version=";version=1.9";;
|
|
|
|
2.0) version=";version=2.0";;
|
2007-03-22 10:30:00 -07:00
|
|
|
esac
|
|
|
|
|
|
|
|
echo "http://${TEST_HTTP}/tests/mozilla.org/$jsdir/js-test-driver-standards.html?test=$jsfile;language=type;text/javascript$version"
|
|
|
|
fi
|
|
|
|
done
|