[khronos-opencl-headers] 40/94: run some trivial compile tests during package build

Andreas Beckmann anbe at moszumanska.debian.org
Mon Sep 21 02:39:04 UTC 2015


This is an automated email from the git hooks/post-receive script.

anbe pushed a commit to branch master
in repository khronos-opencl-headers.

commit ff0a72dd89268d94db74cb65e520c66d74a55357
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Fri Dec 7 08:55:48 2012 +0000

    run some trivial compile tests during package build
    
    git-svn-id: svn://svn.debian.org/svn/pkg-nvidia/packages/khronos-opencl-headers/trunk@3531 b6a4b1ba-b714-0410-8a2d-fc0b36c6496e
---
 debian/changelog      |  3 ++-
 debian/rules          |  6 ++++++
 debian/t/CL           |  1 +
 debian/t/Makefile     | 10 ++++++++++
 debian/t/cl_hpp.cpp   |  1 +
 debian/t/opencl_h.c   |  1 +
 debian/t/opencl_h.cpp |  1 +
 7 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index ec48378..654c953 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 khronos-opencl-headers (1.2-2012.11.30-1) UNRELEASED; urgency=low
 
-  * New upstream release.  (Closes: #695124) 
+  * New upstream release.  (Closes: #695124, #684444) 
+  * Run some trivial compile tests during package build.
 
  -- Andreas Beckmann <debian at abeckmann.de>  Fri, 07 Dec 2012 09:08:53 +0100
 
diff --git a/debian/rules b/debian/rules
index 5f408c2..1554c53 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,12 @@
 %:
 	dh $@
 
+override_dh_auto_test:
+	$(MAKE) -C debian/t
+
+override_dh_auto_clean:
+	$(MAKE) -C debian/t clean
+
 api		 = 1.2
 api_hpp		 = 1.2
 headers_1.0	 = opencl.h cl_platform.h cl.h cl_ext.h cl_d3d10.h cl_gl.h cl_gl_ext.h
diff --git a/debian/t/CL b/debian/t/CL
new file mode 120000
index 0000000..c25bddb
--- /dev/null
+++ b/debian/t/CL
@@ -0,0 +1 @@
+../..
\ No newline at end of file
diff --git a/debian/t/Makefile b/debian/t/Makefile
new file mode 100644
index 0000000..21eeb2c
--- /dev/null
+++ b/debian/t/Makefile
@@ -0,0 +1,10 @@
+CFLAGS	+= -I.
+CXFLAGS	+= -I.
+
+compiletest:
+	$(CC) $(CFLAGS) -c opencl_h.c
+	$(CXX) $(CXXFLAGS) -c opencl_h.cpp
+	$(CXX) $(CXXFLAGS) -c cl_hpp.cpp
+
+clean:
+	$(RM) *.o
diff --git a/debian/t/cl_hpp.cpp b/debian/t/cl_hpp.cpp
new file mode 100644
index 0000000..fdedea6
--- /dev/null
+++ b/debian/t/cl_hpp.cpp
@@ -0,0 +1 @@
+#include <CL/cl.hpp>
diff --git a/debian/t/opencl_h.c b/debian/t/opencl_h.c
new file mode 100644
index 0000000..4a50d26
--- /dev/null
+++ b/debian/t/opencl_h.c
@@ -0,0 +1 @@
+#include <CL/opencl.h>
diff --git a/debian/t/opencl_h.cpp b/debian/t/opencl_h.cpp
new file mode 100644
index 0000000..4a50d26
--- /dev/null
+++ b/debian/t/opencl_h.cpp
@@ -0,0 +1 @@
+#include <CL/opencl.h>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/khronos-opencl-headers.git



More information about the Pkg-opencl-commits mailing list