Files
vscode/test/sanity/scripts/run-ubuntu.sh
Dmitriy Vasyura aaaac22b3c Sanity tests for Linux (#290072)
Added Linux containers for supported platforms.
Updated tests to run and pass on all targets.
2026-01-23 18:49:15 -08:00

24 lines
590 B
Bash
Executable File

#!/bin/sh
set -e
echo "Installing dependencies"
sudo apt-get update
sudo apt-get install -y dbus-x11 x11-utils xvfb
echo "Installing Chromium"
sudo snap install chromium
export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
export PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=/usr/bin/chromium-browser
echo "Starting X11 Server"
export DISPLAY=:99
Xvfb $DISPLAY -screen 0 1024x768x24 -ac -noreset &
echo "Starting Snap daemon"
sudo systemctl start snapd.socket
sudo systemctl start snapd.service
echo "Running sanity tests"
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
node "$SCRIPT_DIR/../out/index.js" "$@"