[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Pkg-octave-devel] Running Octave tests under xvfb



Running the unit tests in some Octave add-on packages fails because some of them use graphical output (e.g. [1]). One possible way to fix the problem is by running the tests under xvfb. I did the changes to the Octave support of autodep8, which are now in the branch called octave-xvfb [2]. For your convenience, I am attaching below the diff between branches master and octave-xvfb.

If nobody objects, I will merge the branch into master and upload a new version of the package to unstable. We will need also to upload a new version to stretch-backports, such that ci.d.o will behave correctly.

I am Cc:ing this message to the DOG mailing list, so that the Octave folks can also comment on this change (hopefully it will not break anything).

Best,

Rafael Laboissière

[1] https://ci.debian.net/data/autopkgtest/unstable/amd64/o/octave-stk/20171016_204101/log.gz
[2] https://anonscm.debian.org/cgit/collab-maint/autodep8.git/log/?h=octave-xvfb
diff --git a/support/octave/generate b/support/octave/generate
index 1191fe8..c2c50bd 100755
--- a/support/octave/generate
+++ b/support/octave/generate
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 cat <<EOF
-Test-Command: /usr/share/octave-pkg-dev/check-pkg
-Depends: @, octave-autopkgtest
+Test-Command: octave="xvfb-run -a octave" /usr/share/octave-pkg-dev/check-pkg
+Depends: @, octave-autopkgtest, xauth, xvfb
 Restrictions: allow-stderr
 EOF

Reply to: