[SCM] muon packaging branch, gsoc-floris-2014, updated. 611f9e3b78d369bfa2ea92afec54630d7d300b9c

Floris-Andrei Stoica-Marcu smfloris-guest at moszumanska.debian.org
Sat Jul 19 00:21:26 UTC 2014


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/muon.git;a=commitdiff;h=611f9e3

The following commit has been merged in the gsoc-floris-2014 branch:
commit 611f9e3b78d369bfa2ea92afec54630d7d300b9c
Author: Floris-Andrei Stoica-Marcu <floris.sm at gmail.com>
Date:   Sat Jul 19 03:20:48 2014 +0300

    Made custom testing script
---
 debian/rules         |  3 +++
 debian/testScript.sh | 29 +++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/debian/rules b/debian/rules
index e004c04..e38586b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,4 +9,7 @@ override_dh_makeshlibs:
 override_dh_install:
 	dh_install --fail-missing
 
+override_dh_auto_test:
+	./debian/testScript.sh && exit $?
+
 .PHONY: override_dh_install
diff --git a/debian/testScript.sh b/debian/testScript.sh
new file mode 100755
index 0000000..c92a6b2
--- /dev/null
+++ b/debian/testScript.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+cd ./obj-x86_64-linux-gnu
+
+output=$(ctest -V -N)
+i=0
+n=0
+
+printf %s "$output" | while IFS= read -r line
+do
+   for word in $line
+    do 
+      if [[ $word == *.shell* ]] 
+	then
+	  $(xvfb-run $word --quiet)
+	  sleep 5
+	  n=$((n + 1))
+	  echo "Running Test $line"
+	  if [[ $? == 0 ]]
+	    then
+	      echo "Passed Test!"
+	      i=$((i + 1))
+	    else
+	      echo "Test failed"
+	      exit $?
+	  fi
+      fi
+   done
+done
\ No newline at end of file

-- 
muon packaging



More information about the pkg-kde-commits mailing list