SHARE
TWEET

Untitled

a guest Oct 15th, 2013 38 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. #to run ensure you have phablet-tools installed along bzr
  3. #sudo apt-get install bzr phablet-tools
  4. #run by passing 3 args as shown below
  5. #ie, lp:ubuntu-rssreader-app com.ubuntu.rssreader ubuntu_rssreader_app
  6. #or, lp:droppping-letters com.ubuntu.dropping-letters dropping_letters
  7.  
  8. #remove old directories
  9. tool_path=clicktools
  10. rm -rf $tool_path
  11. rm -rf branch
  12. rm -rf $1
  13.  
  14. #arguments
  15. # e.g.; branch=lp:dropping-letters
  16. branch=$1
  17. # e.g.; click_package=com.ubuntu.dropping-letters
  18. click_package=$2
  19. # e.g.; test=dropping_letters
  20. test=$3
  21.  
  22. bzr branch lp:~sergiusens/+junk/click_ready $tool_path
  23.  
  24. bzr branch $branch branch
  25. cd branch
  26. $tool_path/click-build.py --bzr-source $branch
  27.  
  28. clickpkgname=`ls -al | grep click | awk {'print $9'}`
  29. adb push $clickpkgname /tmp
  30. installcmd="sudo -u phablet pkcon install-local /tmp/$clickpkgname"
  31. adb shell $installcmd
  32.  
  33. phablet-config autopilot --dbus-probe enable
  34.  
  35. phablet-click-test-setup --click $click_package
  36.  
  37. phablet-test-run -v $test
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top