Add autopkgtest for CMake snippets
authorIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Thu, 4 Aug 2022 14:43:58 +0000 (16:43 +0200)
committerIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Thu, 4 Aug 2022 14:43:58 +0000 (16:43 +0200)
debian/tests/cmake/CMakeLists.txt [new file with mode: 0644]
debian/tests/control

diff --git a/debian/tests/cmake/CMakeLists.txt b/debian/tests/cmake/CMakeLists.txt
new file mode 100644 (file)
index 0000000..3762a76
--- /dev/null
@@ -0,0 +1,5 @@
+cmake_minimum_required(VERSION 3.15)
+
+project(find_juce CXX)
+
+find_package(JUCE CONFIG REQUIRED)
index 43f553f90de7f68db8285aefe5c5aaf97068dcfd..75f18de46f4a541c6fadac053741f63aa0895be5 100644 (file)
@@ -7,3 +7,12 @@ Depends:
  @,
  @builddeps@,
 Restrictions: allow-stderr
+
+Test-Command: cmake -Wno-dev -S debian/tests/cmake -B $AUTOPKGTEST_TMP
+Features: test-name=cmake_find_package_JUCE
+Depends:
+ juce-modules-source,
+ cmake,
+ g++,
+Restrictions:
+ superficial,