User:Armenzg:unittest script: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 15: Line 15:


# Calculate following parameters based on previous values
# Calculate following parameters based on previous values
POST_URL='${LOCATION}/${BRANCH}-${OS}${TYPE}/${ID}'
POST_URL=${LOCATION}/${BRANCH}-${OS}${TYPE}/${ID}
# TODO if LOCATION is "nightly" then
# TODO if LOCATION is "nightly" then
# POST_URL='${LOCATION}/latest-${BRANCH}'
# POST_URL=${LOCATION}/latest-${BRANCH}
URL='${BASE}/${POST_URL}'
URL=${BASE}/${POST_URL}
EXTENSION='zip' #TODO calculate depending on $OS
UNZIPPING_TOOL='unzip -o' #TODO linux would be 'tar -jxvf'
# symbols is specified even though I am skipping to download it
# symbols is specified even though I am skipping to download it
UNITTEST_PARAMS='--appname=firefox/firefox.exe --utility-path=bin --extra-profile-file=bin/plugins --symbols-path=symbols'
UNITTEST_PARAMS='--appname=firefox/firefox.exe --utility-path=bin --extra-profile-file=bin/plugins --symbols-path=symbols'
Line 25: Line 27:


# Download binaries and tests
# Download binaries and tests
wget --progress=dot:mega -N $URL/firefox-${VERSION}.en-US.${OS_ARCH}.tar.bz2
wget -N $URL/firefox-${VERSION}.en-US.${OS_ARCH}.${EXTENSION}
wget --progress=dot:mega -N $URL/firefox-${VERSION}.en-US.${OS_ARCH}.tests.zip
wget -N $URL/firefox-${VERSION}.en-US.${OS_ARCH}.tests.zip
# Unzip binaries and tests
# Unzip binaries and tests
tar -jxvf firefox-4.0b8pre.en-US.linux-i686.tar.bz2
${UNZIPPING_TOOL} firefox-${VERSION}.en-US.${OS_ARCH}.${EXTENSION}
# TODO add selective unzipping
# TODO add selective unzipping
unzip -o -jxvf firefox-$VERSION.en-US.$PLATFOM.tests.zip
unzip -o firefox-${VERSION}.en-US.${PLATFORM}.tests.zip


# All known tests suites to this date
# All known tests suites to this date
Confirmed users
3,990

edits

Navigation menu