From 397fc3f087b0d52dbbac7680521fe786e8044485 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sun, 10 Jul 2016 10:49:17 +0200 Subject: [PATCH] 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(-) create mode 100755 debian/tests/findmodules create mode 100644 debian/tests/findmodules_data/CMakeLists.txt diff --git a/debian/changelog b/debian/changelog index 1fab0f17a..f1ff8702f 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 Sat, 09 Jul 2016 11:23:12 +0200 diff --git a/debian/tests/control b/debian/tests/control index 4d14d18c8..c6d11dfd6 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 000000000..dd640566d --- /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 000000000..bd79e2021 --- /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)