[packages/pulseview] - enable tests

arekm arekm at pld-linux.org
Sat Mar 9 17:30:18 CET 2013


commit c388b07e203832e5142872ccb88497865264f6ca
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Mar 9 17:30:15 2013 +0100

    - enable tests

 pulseview-build.patch | 34 ++++++++++++++++++++++++++++++++++
 pulseview.spec        |  4 +++-
 2 files changed, 37 insertions(+), 1 deletion(-)
---
diff --git a/pulseview.spec b/pulseview.spec
index 1f8a0b7..2f91424 100644
--- a/pulseview.spec
+++ b/pulseview.spec
@@ -1,5 +1,5 @@
 #
-%bcond_with	tests
+%bcond_without	tests
 #
 %define snap	a7553da
 #
@@ -39,6 +39,8 @@ cd build
 
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
diff --git a/pulseview-build.patch b/pulseview-build.patch
index d7bcb56..069da4c 100644
--- a/pulseview-build.patch
+++ b/pulseview-build.patch
@@ -9,3 +9,37 @@
  	unsigned int logic_probe_count = 0;
  	unsigned int analog_probe_count = 0;
  
+--- pulseview-a7553da/pv/view/viewport.cpp~	2013-03-09 16:09:28.000000000 +0100
++++ pulseview-a7553da/pv/view/viewport.cpp	2013-03-09 17:23:03.369361232 +0100
+@@ -104,11 +104,6 @@
+ 	}
+ }
+ 
+-void Viewport::mouseReleaseEvent(QMouseEvent *event)
+-{
+-	assert(event);
+-}
+-
+ void Viewport::wheelEvent(QWheelEvent *event)
+ {
+ 	assert(event);
+--- pulseview-a7553da/pv/view/viewport.h~	2013-03-09 16:09:28.000000000 +0100
++++ pulseview-a7553da/pv/view/viewport.h	2013-03-09 17:23:07.126116283 +0100
+@@ -48,7 +48,6 @@
+ private:
+ 	void mousePressEvent(QMouseEvent *event);
+ 	void mouseMoveEvent(QMouseEvent *event);
+-	void mouseReleaseEvent(QMouseEvent *event);
+ 	void wheelEvent(QWheelEvent *event);
+ 
+ private:
+--- pulseview-a7553da/test/CMakeLists.txt~	2013-03-09 16:09:28.000000000 +0100
++++ pulseview-a7553da/test/CMakeLists.txt	2013-03-09 17:27:36.806516037 +0100
+@@ -35,6 +35,7 @@
+ 
+ set(PULSEVIEW_LINK_LIBS
+ 	${Boost_LIBRARIES}
++	${CMAKE_THREAD_LIBS_INIT}
+ )
+ 
+ add_executable(pulseview-test
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pulseview.git/commitdiff/c388b07e203832e5142872ccb88497865264f6ca



More information about the pld-cvs-commit mailing list