Run unit-tests in fake-X environment
authorIOhannes m zmölnig <zmoelnig@umlautS.umlaeute.mur.at>
Wed, 4 Apr 2018 19:39:07 +0000 (21:39 +0200)
committerIOhannes m zmölnig <zmoelnig@umlautS.umlaeute.mur.at>
Wed, 4 Apr 2018 19:45:25 +0000 (21:45 +0200)
debian/control
debian/rules

index 3729a1407889dd8f49ad014d0f570e56bcb24355..da89bea95a8831ab9fda0174dfc523d030a1e51f 100644 (file)
@@ -19,6 +19,7 @@ Build-Depends:
  librtmidi-dev (>= 2.1.0~ds0),
  libjansson-dev,
  catch,
+ xvfb, xauth,
 Standards-Version: 4.1.3
 Vcs-Git: https://salsa.debian.org/multimedia-team/giada.git
 Vcs-Browser: https://salsa.debian.org/multimedia-team/giada
index 694c77839513dae1b1e8c17de20917bd97684e11..e94d64a13142891e3969fe096fb21370cc858d65 100755 (executable)
@@ -22,7 +22,7 @@ override_dh_auto_configure:
 
 override_dh_auto_test:
        @echo home: $(HOME)
-       HOME=/tmp dh_auto_test -a || (grep . test-suite.log giada_test.log; false)
+       HOME=/tmp xvfb-run -a dh_auto_test -a || (grep . test-suite.log giada_test.log; false)
 
 override_dh_auto_clean:
        dh_auto_clean