[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1103390: RFS: quill/9.0.2-1 [ITP] -- Asynchronous Low Latency C Logging Library



On Sat, 2025-08-02 at 12:58 +0800, Maytham Alsudany wrote:
> - Add autopkgtest suite

There was a mistake, I've attached a revised patch for the autopkgtest
tests.

All the tests past fine with autopkgtest, but not with dh_auto_test
during build...

--
Maytham
From b63a00869f241eb22eb5ba243e92dd85ba5f7105 Mon Sep 17 00:00:00 2001
From: Maytham Alsudany <maytham@debian.org>
Date: Sat, 2 Aug 2025 12:33:08 +0800
Subject: [PATCH 5/5] Add autopkgtest suite

---
 debian/tests/CMakeLists.txt |  7 +++++++
 debian/tests/control        |  2 ++
 debian/tests/upstream-tests | 19 +++++++++++++++++++
 3 files changed, 28 insertions(+)
 create mode 100644 debian/tests/CMakeLists.txt
 create mode 100644 debian/tests/control
 create mode 100644 debian/tests/upstream-tests

diff --git a/debian/tests/CMakeLists.txt b/debian/tests/CMakeLists.txt
new file mode 100644
index 0000000..b29589a
--- /dev/null
+++ b/debian/tests/CMakeLists.txt
@@ -0,0 +1,7 @@
+cmake_minimum_required(VERSION 3.12...4.0)
+project(quill)
+
+set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
+include(QuillUtils)
+enable_testing()
+add_subdirectory(test)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..5807f36
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: upstream-tests
+Depends: @, build-essential, cmake, doctest-dev
diff --git a/debian/tests/upstream-tests b/debian/tests/upstream-tests
new file mode 100644
index 0000000..81a6810
--- /dev/null
+++ b/debian/tests/upstream-tests
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+set -eu
+
+mkdir -p "$AUTOPKGTEST_TMP"
+cp -r test "$AUTOPKGTEST_TMP"/test
+cp -r cmake "$AUTOPKGTEST_TMP"/cmake
+cp debian/tests/CMakeLists.txt "$AUTOPKGTEST_TMP"/CMakeLists.txt
+
+sed -i "s%target_link_libraries(\${TEST_NAME} quill)%%" \
+  "$AUTOPKGTEST_TMP"/test/integration_tests/CMakeLists.txt \
+  "$AUTOPKGTEST_TMP"/test/unit_tests/CMakeLists.txt
+
+mkdir -p "$AUTOPKGTEST_TMP"/build
+cd "$AUTOPKGTEST_TMP"/build
+
+cmake ..
+make
+make test
-- 
2.50.1

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: