+# install docker
+apt-get install curl apt-transport-https ca-certificates
+curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
+add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
+apt-get -qq update
+apt-get install docker-ce
+
+# build the container
+docker build -t son-emu-img .
+
+# launch the container and trigger the unit tests
+docker run --name son-emu -it --rm --privileged --pid='host' -v /var/run/docker.sock:/var/run/docker.sock son-emu-img py.test -v src/emuvim/test/unittests
+
+#
+# old way to call the tests directly on the host machine
+#
+#SON_EMU_DIR=$(pwd)
+#cd $SON_EMU_DIR/../