Files
mongo/evergreen/check_workstation_setup.sh
Jeff Zambory 5fcecd403f SERVER-104255: Add new workstation configure script (#35338)
GitOrigin-RevId: 2b9342ed9daa9a18e5806aac5246a9b9f76d57bf
2025-04-25 14:46:01 +00:00

52 lines
1.1 KiB
Bash
Executable File

failed_setup=false
source ~/.bashrc
if command -v pipx &> /dev/null; then
echo "'pipx' command exists"
else
echo "pipx command not found - failed setup"
failed_setup=true
fi
if command -v poetry &> /dev/null; then
echo "'poetry' command exists"
else
echo "poetry command not found - failed setup"
failed_setup=true
fi
if command -v db-contrib-tool &> /dev/null; then
echo "'db-contrib-tool' command exists"
else
echo "db-contrib-tool command not found - failed setup"
failed_setup=true
fi
if test -d "./python3-venv"; then
echo "Venv directory exists, checking activation"
. python3-venv/bin/activate
./buildscripts/resmoke.py run --help &> /dev/null
if [ $? -eq 0 ]; then
echo "Virtual workstation set up correctly"
else
echo "Virtual workstation failed activation"
failed_setup=true
fi
deactivate
else
echo "mongo virtual environment not created correctly - failed setup"
failed_setup=true
fi
if test -d "../Boost-Pretty-Printer"; then
echo "Pretty printers set up correctly"
else
echo "Pretty printers failed setup"
failed_setup=true
fi
if $failed_setup; then
exit 1
fi