diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-02-16 10:12:18 +0100 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-02-16 10:12:18 +0100 |
commit | 63327d51955d29ff94d79bd91cf8be4d8895c68c (patch) | |
tree | 4a783eee7df18319f2214c905b24c4bd13c05ce1 /selenium | |
parent | 6fee6020d06ea6534710f985f90a705400bf631a (diff) | |
download | deployment-63327d51955d29ff94d79bd91cf8be4d8895c68c.tar.gz deployment-63327d51955d29ff94d79bd91cf8be4d8895c68c.tar.bz2 deployment-63327d51955d29ff94d79bd91cf8be4d8895c68c.zip |
Avoiding Docker in order to run selenium tests.
Diffstat (limited to 'selenium')
-rwxr-xr-x | selenium/crxmake | 42 | ||||
-rwxr-xr-x | selenium/launch_chrome_container | 4 | ||||
-rwxr-xr-x | selenium/launch_selenium_test | 15 |
3 files changed, 1 insertions, 60 deletions
diff --git a/selenium/crxmake b/selenium/crxmake deleted file mode 100755 index 32d5778..0000000 --- a/selenium/crxmake +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash -e -# -# Purpose: Pack a Chromium extension directory into crx format - -if test $# -ne 2; then - echo "Usage: crxmake.sh <extension dir> <pem path>" - exit 1 -fi - -dir=$1 -key=$2 -name=$(basename "$dir") -crx="$name.crx" -pub="$name.pub" -sig="$name.sig" -zip="$name.zip" -trap 'rm -f "$pub" "$sig" "$zip"' EXIT - -# zip up the crx dir -cwd=$(pwd -P) -(cd "$dir" && zip -qr -9 -X "$cwd/$zip" .) - -# signature -openssl sha1 -sha1 -binary -sign "$key" < "$zip" > "$sig" - -# public key -openssl rsa -pubout -outform DER < "$key" > "$pub" 2>/dev/null - -byte_swap () { - # Take "abcdefgh" and return it as "ghefcdab" - echo "${1:6:2}${1:4:2}${1:2:2}${1:0:2}" -} - -crmagic_hex="4372 3234" # Cr24 -version_hex="0200 0000" # 2 -pub_len_hex=$(byte_swap $(printf '%08x\n' $(ls -l "$pub" | awk '{print $5}'))) -sig_len_hex=$(byte_swap $(printf '%08x\n' $(ls -l "$sig" | awk '{print $5}'))) -( - echo "$crmagic_hex $version_hex $pub_len_hex $sig_len_hex" | xxd -r -p - cat "$pub" "$sig" "$zip" -) > "$crx" -echo "Wrote $crx" diff --git a/selenium/launch_chrome_container b/selenium/launch_chrome_container deleted file mode 100755 index 42935f2..0000000 --- a/selenium/launch_chrome_container +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -# If container runs out of heap space, add '-e JAVA_OPTS=-Xmx2g' -docker run --name container_chrome -d -p 4444:4444 selenium/standalone-chrome-debug diff --git a/selenium/launch_selenium_test b/selenium/launch_selenium_test index 804d145..00fe6d0 100755 --- a/selenium/launch_selenium_test +++ b/selenium/launch_selenium_test @@ -14,19 +14,6 @@ git submodule update --remote tsc # use 'make' once yarn problems art fixed. -xvfb-run chromium --pack-extension $HOME/wallet-webex - -eval $(docker-machine env) - -# Get fresh image -if docker restart container_chrome > /dev/null; -then echo "Chrome container succesfully restarted"; -fi - -# Give time for the container to get fully operational -sleep 2 - # call python3 selenium script python3 $HOME/wallet-webex/selenium/withdraw_buy.py \ - --ext=$HOME/ext.crx \ - --remote=http://$(docker-machine ip):4444/wd/hub + --ext-unpacked=$HOME/wallet-webex |