diff --git a/debian/changelog b/debian/changelog index 830511be4..e6f50d0ee 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,7 @@ cmake (3.3.1-2) UNRELEASED; urgency=medium * Set the team mailing list as maintainer. * Add a stage1 build profile that disables building cmake-qt-gui. (Bug: #738161) + * Add autopkgtests which run the upstream testsuite against the system cmake. -- Felix Geyer Sat, 22 Aug 2015 19:09:55 +0200 diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 000000000..96931918e --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,7 @@ +Tests: testsuite +Restrictions: allow-stderr +Depends: cmake, @builddeps@ + +Tests: testsuite-ninja +Restrictions: allow-stderr +Depends: cmake, ninja-build, @builddeps@ diff --git a/debian/tests/testsuite b/debian/tests/testsuite new file mode 100755 index 000000000..c82f75fa1 --- /dev/null +++ b/debian/tests/testsuite @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +SRCDIR="$(pwd)" + +cd $ADTTMP + +cmake -DCMake_TEST_EXTERNAL_CMAKE=/usr/bin $SRCDIR +make VERBOSE=1 +CTEST_OUTPUT_ON_FAILURE=1 make test ARGS="-E CTestTestUpload -E BootstrapTest" diff --git a/debian/tests/testsuite-ninja b/debian/tests/testsuite-ninja new file mode 100755 index 000000000..8672d54c8 --- /dev/null +++ b/debian/tests/testsuite-ninja @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +SRCDIR="$(pwd)" + +cd $ADTTMP + +cmake -DCMake_TEST_EXTERNAL_CMAKE=/usr/bin -GNinja $SRCDIR +ninja -v +CTEST_OUTPUT_ON_FAILURE=1 ctest -E CTestTestUpload -E BootstrapTest