[Pkg-libvirt-commits] [libvirt] 01/02: Add a build test
Guido Guenther
agx at moszumanska.debian.org
Tue Nov 17 16:07:29 UTC 2015
This is an automated email from the git hooks/post-receive script.
agx pushed a commit to branch debian/sid
in repository libvirt.
commit 014a0c7fffc88becbcdbdb0ff777060d09410df6
Author: Guido Günther <agx at sigxcpu.org>
Date: Fri Nov 13 10:07:30 2015 +0100
Add a build test
to verify that the we can link against libvirt
---
debian/tests/build-test | 9 +++++++++
debian/tests/control | 1 +
2 files changed, 10 insertions(+)
diff --git a/debian/tests/build-test b/debian/tests/build-test
new file mode 100755
index 0000000..b168e19
--- /dev/null
+++ b/debian/tests/build-test
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+CFLAGS=$(shell pkg-config --cflags libvirt)
+LIBS=$(shell pkg-config --libs libvirt)
+
+a.out: ../../examples/dominfo/info1.c
+ gcc $(CFLAGS) $< $(LIBS)
+ @echo "Build test of $< succeeded"
+ @rm -f a.out
diff --git a/debian/tests/control b/debian/tests/control
index 353dac6..7b74fc4 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,3 +1,4 @@
Tests: smoke
+ build-test
Depends: @
Restrictions: allow-stderr
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libvirt.git
More information about the Pkg-libvirt-commits
mailing list