blob: ceeb22df5875421f26fa04da35dd4f3f4ff474e1 [file] [log] [blame]
#!/bin/bash
# pre-requirements
prerequirements () {
sudo apt-get install -y python2.7
sudo apt-get install -y python-pip
sudo pip install robotframework
sudo pip install robotframework-selenium2library
}
# For x86_64
install_chromedriver_x86_64 () {
wget http://chromedriver.storage.googleapis.com/2.20/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
sudo cp chromedriver /usr/bin/
sudo chmod 777 /usr/bin/chromedriver
exit 0
}
install_chromedriver_x86 () {
wget http://chromedriver.storage.googleapis.com/2.20/chromedriver_linux32.zip
unzip chromedriver_linux32.zip
sudo cp chromedriver /usr/bin/
sudo chmod 777 /usr/bin/chromedriver
exit 0
}
# For aarch64
install_chromedriver_aarch64 () {
google_chrome_softlink
sudo apt-get install chromedriver
cp /usr/lib/chromium/chromedriver /usr/bin/
sudo chmod 777 /usr/bin/chromedriver
exit 0
}
# In case of 96boards we pre install chromium on linaro builds
# Officially chromium not supported by robot framework.
# Hack, created a soft link as google-chrome from chromium.
# In the test case we have to mention browser name as chrome.
# But test case opens chromium browser
google_chrome_softlink () {
cd /usr/bin/
sudo ln -sf chromium google-chrome
cd -
}
prerequirements
install_chromedriver_`arch`
if [ $? -ne 0 ]; then
echo "Not supported Architecture `arch`"
echo "install-on-debian.sh : failed"
exit 1
fi