mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
18 lines
347 B
Bash
Executable File
18 lines
347 B
Bash
Executable File
#!/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
|
|
node ./sanity.js
|
|
else
|
|
echo "ERROR: cannot check sanity on this platform!" 1>&2
|
|
exit 1;
|
|
fi
|