Skip to content

Testing

pietje666 edited this page Mar 23, 2019 · 21 revisions

Testing the latest code

It is not that hard to test the latest master branch code for testing or when improving the VRT.NU addon.

Preparation

If you have the project cloned locally, like this:

$ git clone git@github.com:pietje666/plugin.video.vrt.nu.git
$ cd plugin.video.vrt.nu/

First make sure you have the latest copy in your cloned directory.

$ git checkout master
$ git pull --rebase origin master

Make a zip package on Linux

If you made any changes and you want to test those (on Linux), you can make a zip package by doing:

$ make zip

This will perform some basic sanity checks of your (modified) code and then creates a new zip package.

Make a zip package on Windows

You can create a zip package by running MakeZipWindows.bat from the root plugin.video.vrt.nu folder.

Transfer, install and test

Finally you can transfer this zip package to your Kodi system (if needed).

$ scp -rp plugin.video.vrt.nu-1.6.0-fd627b8.zip root@kodi01:

And install it in Kodi:

Add-ons » Install from zip file

Tip: Semi-automating zip package installation

An easy way to install a zip file on a remote Kodi system is by running:

$ ssh root@kodi01 kodi-send -a InstallFromZip

This will pop up the "Install from zip file" window so you can select the right zip package and install it with ease.

Reloading the VRT.NU addon before testing

In Kodi the best way to reload an addon is by loading another addon first, and then return to the VRT.NU addon. This guarantees no older code is still active.

Clone this wiki locally