[med-svn] [Git][med-team/seaview][master] Use xvfb to run autopkgtests

Nilesh Patra gitlab at salsa.debian.org
Sun May 24 16:45:25 BST 2020



Nilesh Patra pushed to branch master at Debian Med / seaview


Commits:
1d97bc20 by Nilesh Patra at 2020-05-24T21:15:07+05:30
Use xvfb to run autopkgtests

- - - - -


2 changed files:

- debian/tests/control
- debian/tests/run-unit-test


Changes:

=====================================
debian/tests/control
=====================================
@@ -1,3 +1,3 @@
-Tests: run-unit-test
-Depends: @
+Test-Command: xvfb-run -s "-screen 0 1024x768x24 -ac +extension GLX +render -noreset" sh debian/tests/run-unit-test
+Depends: @, xvfb, xauth
 Restrictions: allow-stderr


=====================================
debian/tests/run-unit-test
=====================================
@@ -17,6 +17,15 @@ gunzip -r *
 seaview -build_tree -distance K2P -o tree.ph example.nxs
 
 # This requires PDF support
-seaview -plotonly -svg tree.ph
+touch test_status.log
+timeout 10s seaview -plotonly -svg tree.ph 2> test_status.log || true
+
+# Check if any stderr is logged into the log file
+if [ `cat test_status.log | wc -l` != 0 ]
+then
+	echo 'Test2 failed, printing error log'
+	cat test_status.log
+	exit 1
+fi
 
 echo "PASS"



View it on GitLab: https://salsa.debian.org/med-team/seaview/-/commit/1d97bc20a80dcd2be0099e47000c4996c6b9f174

-- 
View it on GitLab: https://salsa.debian.org/med-team/seaview/-/commit/1d97bc20a80dcd2be0099e47000c4996c6b9f174
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200524/672007f4/attachment.html>


More information about the debian-med-commit mailing list