[Pkg-cmake-commits] [cmake] 07/08: Add new autopkgtest which checks if various Find modules are wokring,
Felix Geyer
fgeyer at moszumanska.debian.org
Sun Jul 10 09:26:12 UTC 2016
This is an automated email from the git hooks/post-receive script.
fgeyer pushed a commit to branch experimental
in repository cmake.
commit 397fc3f087b0d52dbbac7680521fe786e8044485
Author: Felix Geyer <fgeyer at debian.org>
Date: Sun Jul 10 10:49:17 2016 +0200
Add new autopkgtest which checks if various Find modules are wokring,
---
debian/changelog | 1 +
debian/tests/control | 50 ++++++++++++++++++++++++----
debian/tests/findmodules | 9 +++++
debian/tests/findmodules_data/CMakeLists.txt | 10 ++++++
4 files changed, 64 insertions(+), 6 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 1fab0f1..f1ff870 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ cmake (3.6.0-1) UNRELEASED; urgency=medium
- file_Sort_GLOB_results_to_make_it_deterministic.patch
* Fix detection of ImageMagick.
- Add FindImageMagick_find_program.patch
+ * Add new autopkgtest which checks if various Find modules are wokring,
-- Felix Geyer <fgeyer at debian.org> Sat, 09 Jul 2016 11:23:12 +0200
diff --git a/debian/tests/control b/debian/tests/control
index 4d14d18..c6d11df 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,7 +1,45 @@
-Tests: testsuite
+Tests: testsuite testsuite-ninja findmodules
Restrictions: allow-stderr
-Depends: cmake, cvs, @builddeps@
-
-Tests: testsuite-ninja
-Restrictions: allow-stderr
-Depends: cmake, cvs, ninja-build, @builddeps@
+Depends: cmake,
+ ninja-build,
+ @builddeps@,
+ libasound2-dev,
+ libarmadillo-dev,
+ bison,
+ libboost-dev,
+ libbz2-dev,
+ libcups2-dev,
+ libcurl4-openssl-dev,
+ cvs,
+ doxygen,
+ libexpat1-dev,
+ flex,
+ libfreetype6-dev,
+ gettext,
+ libgif-dev,
+ git,
+ imagemagick,
+ libmagickcore-dev,
+ libmagick++-dev,
+ libmagickwand-dev,
+ libgnutls28-dev,
+ libgtk2.0-dev,
+ mercurial,
+ hspell,
+ icoutils,
+ libjasper-dev,
+ libarchive-dev,
+ liblzma-dev,
+ libxml2-dev,
+ libxslt1-dev,
+ libopenscenegraph-dev,
+ perl,
+ libphysfs-dev,
+ pkg-config,
+ ruby-dev,
+ libprotobuf-dev,
+ protobuf-compiler,
+ subversion,
+ swig,
+ libtiff5-dev,
+ zlib1g-dev
diff --git a/debian/tests/findmodules b/debian/tests/findmodules
new file mode 100755
index 0000000..dd64056
--- /dev/null
+++ b/debian/tests/findmodules
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -ev
+
+SRCDIR="$(pwd)"
+
+cd "$ADTTMP"
+
+cmake "$SRCDIR/debian/tests/findmodules_data"
diff --git a/debian/tests/findmodules_data/CMakeLists.txt b/debian/tests/findmodules_data/CMakeLists.txt
new file mode 100644
index 0000000..bd79e20
--- /dev/null
+++ b/debian/tests/findmodules_data/CMakeLists.txt
@@ -0,0 +1,10 @@
+cmake_minimum_required(VERSION 3.0)
+
+foreach(VTEST ALSA Armadillo BISON Boost BZip2 Cups CURL CVS Doxygen EXPAT FLEX
+ Freetype Gettext GIF Git GnuTLS GTK2 Hg HSPELL Icotool Jasper
+ LibArchive LibLZMA LibXml2 LibXslt OpenSceneGraph Perl PhysFS
+ PkgConfig Ruby Protobuf Subversion SWIG TIFF ZLIB)
+ find_package(${VTEST} REQUIRED)
+endforeach()
+
+find_package(ImageMagick COMPONENTS convert MagickCore Magick++ MagickWand REQUIRED)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-cmake/cmake.git
More information about the Pkg-cmake-commits
mailing list