This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
juju-testing [2015/02/05 19:55] gsamfira |
juju-testing [2015/07/09 15:54] (current) bteleaga |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Running Juju-Core tests on Windows ====== | ====== Running Juju-Core tests on Windows ====== | ||
| - | ===== Installing a base windows | + | ===== Installing a base Windows |
| - | First we need to install a windows | + | First we need to install a Windows |
| - | You can install this version of Windows on top of KVM using any ubuntu version >= Ubuntu 14.04. Installation steps are simple, just follow the wizzard. | + | You can install this version of Windows on top of KVM using any ubuntu version >= Ubuntu 14.04. Installation steps are simple, just follow the wizard. |
| ===== Post install steps ===== | ===== Post install steps ===== | ||
| - | Windows Hyper-V | + | Windows Hyper-V |
| {{: | {{: | ||
| Line 26: | Line 26: | ||
| - select 2 and hit enter | - select 2 and hit enter | ||
| - | This will enable remote desktop. Now lets disable the firewall (you don't really need it for testing). In the black cmd terminal type: | + | This will enable remote desktop. Now let' |
| netsh advfirewall set allprofiles state off | netsh advfirewall set allprofiles state off | ||
| - | You should now be able to connect to your windows | + | You should now be able to connect to your Windows |
| ==== Installing Chocolatey ==== | ==== Installing Chocolatey ==== | ||
| - | Chocolatey is awesome. Why its not default in windows is beyond me. In essence its a windows | + | Chocolatey is awesome. Why it' |
| < | < | ||
| Line 53: | Line 53: | ||
| ==== Installing scm and golang ==== | ==== Installing scm and golang ==== | ||
| - | Its time to install the various scm binaries needed by go, and also version 1.2.1 of Go to mirror the version used in ubuntu | + | Its time to install the various scm binaries needed by go, and also version 1.2.1 of Go to mirror the version used in Ubuntu |
| [[juju-windows|Installing SCM systems and golang]] | [[juju-windows|Installing SCM systems and golang]] | ||
| Line 60: | Line 60: | ||
| ==== Getting a SSL enabled version of mongod.exe ==== | ==== Getting a SSL enabled version of mongod.exe ==== | ||
| - | Aparently, the windows version of mongod comes with SSL disabled on windows. You basically have 2 options to get SSL support on windows: | + | Apparently, the windows version of mongod comes with SSL disabled on windows. You basically have two options to get SSL support on windows: |
| - | - Buy the paied version | + | - Buy the payed version |
| - compile your own | - compile your own | ||
| - | You can get a {{: | + | You can get a {{:mongo-static.zip|precompiled version of mongod.exe here}}. |
| - | To download it via powershell | + | To download it via PowerShell |
| - | Start-BitsTransfer http:// | + | Start-BitsTransfer http:// |
| | | ||
| If you have not already done so, install 7zip: | If you have not already done so, install 7zip: | ||
| - | choco install 7zip | + | choco install |
| | | ||
| - | You will also need the Visual | + | You will also need the Visual |
| - | choco install vcredist2013 | + | choco install |
| - | choco install vcredist2008 | + | choco install |
| + | |||
| + | Now let's extract mongo: | ||
| - | Get a copy of OpenSSL for Windows: | + | & ' |
| + | |||
| + | You should have a a mongod.exe file. Lets check if it actually works: | ||
| - | | + | |
| - | .\Win64OpenSSL-1_0_1L.exe | + | |
| + | 2015-04-03T11: | ||
| + | 2015-04-03T11: | ||
| + | |||
| + | ==== Adding mongod to your $PATH ==== | ||
| + | |||
| + | Lets create a folder for it first: | ||
| + | |||
| + | mkdir C:\bin | ||
| | | ||
| - | Now lets unarchive mongo: | + | Copy mongod.exe to it:-35 |
| - | | + | |
| | | ||
| - | You should have a a mondog.exe file. Lets check if it actually works: | + | Add C:\bin to path: |
| - | .\mongod.exe --version | + | |
| + | setx PATH $env:PATH | ||
| + | |||
| + | ===== Running the juju tests ===== | ||
| + | |||
| + | |||
| + | At this point, if you followed the steps [[juju-windows|here]] you should already have a golang setup with a local copy of the juju repository. | ||
| + | |||
| + | Navigate to that folder: | ||
| + | |||
| + | cd $env:GOPATH\src\github.com\juju\juju | ||
| + | go test ./... | ||
| + | |||
| + | ===== Accessing the machine from Linux ===== | ||
| + | |||
| + | Some of you might want to edit the go source from Linux using your favorite editors. To do that we can set up a share. | ||
| + | |||
| + | sudo mount -t cifs -o username=Administrator, | ||
| + | |||
| + | Now all of your C drive will be available at < | ||
| + | |||
| + | As a bonus, you can use https:// | ||
| | | ||
| - | You should have the mongo version. | + | ===== Bonus: ===== |
| + | |||
| + | Thanks for tagging along, I really appreciate it. | ||
| + | As a sign of my appreciation, | ||
| + | |||
| + | (new-object System.Net.WebClient).DownloadFile(" | ||
| + | cmd.exe /C call $HOME\firefox_installer.exe /SILENT | ||
| + | |||
| + | Or the package management way: | ||
| + | |||
| + | choco install -y firefox | ||
| + | |||
| + | And to launch it: | ||
| + | |||
| + | & ' | ||
| + | You may now enjoy the simple pleasures in life once more, like giving a quick Google or downloading an MSI installer right from the comfort of your own blue-on-black free version of Windows Server | ||