playwright/browser_patches/webkit/run_sanity_check.sh

18 lines
378 B
Bash
Raw Normal View History

#!/bin/bash
set -e
set +x
trap "cd $(pwd -P)" EXIT
cd "$(dirname $0)"
if [[ "$(uname)" == "Darwin" ]]; then
node ./sanity.js
elif [[ "$(uname)" == "Linux" ]]; then
xvfb-run --auto-servernum node ./sanity.js
elif [[ "$(uname)" == MINGW* ]]; then
echo "Sanity check on windows is not supported"
else
echo "ERROR: cannot check sanity on this platform!" 1>&2
exit 1;
fi