Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/test/sanity/containers/entrypoint.sh
5240 views
1
#!/bin/sh
2
set -e
3
4
echo "System: $(uname -s) $(uname -r) $(uname -m), page size: $(getconf PAGESIZE) bytes"
5
echo "Memory: $(awk '/MemTotal/ {t=$2} /MemAvailable/ {a=$2} END {printf "%.0f MB total, %.0f MB available", t/1024, a/1024}' /proc/meminfo)"
6
echo "Disk: $(df -h / | awk 'NR==2 {print $2 " total, " $3 " used, " $4 " available"}')"
7
8
if command -v Xvfb > /dev/null 2>&1; then
9
echo "Starting X11 Server"
10
export DISPLAY=:99
11
Xvfb $DISPLAY -screen 0 1024x768x24 -ac -noreset &
12
fi
13
14
if command -v dbus-daemon > /dev/null 2>&1; then
15
echo "Starting Desktop Bus"
16
dbus-daemon --system --fork
17
fi
18
19
export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
20
21
echo "Running sanity tests"
22
node /root/out/index.js "$@"
23
24