[med-svn] [Git][med-team/cutest][master] Add Debian packaging

Andreas Tille (@tille) gitlab at salsa.debian.org
Thu Oct 29 13:22:33 GMT 2026



Andreas Tille pushed to branch master at Debian Med / cutest


Commits:
e22c0337 by Andreas Tille at 2026-10-29T14:22:23+01:00
Add Debian packaging

- - - - -


10 changed files:

- + debian/changelog
- + debian/control
- + debian/copyright
- + debian/libcutest-dev.docs
- + debian/libcutest-dev.install
- + debian/rules
- + debian/source/format
- + debian/tests/compile-link
- + debian/tests/control
- + debian/watch


Changes:

=====================================
debian/changelog
=====================================
@@ -0,0 +1,5 @@
+cutest (1.5-1) unstable; urgency=medium
+
+  * Initial release (Closes: #1152460).
+
+ -- Andreas Tille <tille at debian.org>  Thu, 29 Oct 2026 13:30:00 +0100


=====================================
debian/control
=====================================
@@ -0,0 +1,24 @@
+Source: cutest
+Section: libdevel
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders:
+ Andreas Tille <tille at debian.org>,
+Build-Depends:
+ debhelper-compat (= 14),
+Standards-Version: 4.7.4
+Vcs-Browser: https://salsa.debian.org/med-team/cutest
+Vcs-Git: https://salsa.debian.org/med-team/cutest.git
+Homepage: https://cutest.sourceforge.net/
+
+Package: libcutest-dev
+Architecture: any
+Multi-Arch: same
+Depends:
+ ${misc:Depends},
+Description: C unit testing framework (development files)
+ CuTest is a small unit testing framework for C.  It consists of a
+ single C source file and header and provides assertions, test suites,
+ and a simple test runner, making it easy to add unit tests to C
+ projects.
+ .
+ This package contains the CuTest header and static library.


=====================================
debian/copyright
=====================================
@@ -0,0 +1,32 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: CuTest
+Upstream-Contact: Asim Jalis <asimjalis at gmail.com>
+Source: https://cutest.sourceforge.net/
+
+Files: *
+Copyright: 2002-2003 Asim Jalis <asimjalis at gmail.com>
+License: Zlib
+
+Files: debian/*
+Copyright: 2026 Andreas Tille <tille at debian.org>
+License: Zlib
+
+License: Zlib
+ This software is provided 'as-is', without any express or implied
+ warranty. In no event will the authors be held liable for any damages
+ arising from the use of this software.
+ .
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+ .
+ 1. The origin of this software must not be misrepresented; you must not
+    claim that you wrote the original software. If you use this software
+    in a product, an acknowledgment in the product documentation would be
+    appreciated but is not required.
+ .
+ 2. Altered source versions must be plainly marked as such, and must not
+    be misrepresented as being the original software.
+ .
+ 3. This notice may not be removed or altered from any source
+    distribution.


=====================================
debian/libcutest-dev.docs
=====================================
@@ -0,0 +1 @@
+README.txt


=====================================
debian/libcutest-dev.install
=====================================
@@ -0,0 +1,2 @@
+CuTest.h usr/include/cutest/
+libcutest.a usr/lib/${DEB_HOST_MULTIARCH}/


=====================================
debian/rules
=====================================
@@ -0,0 +1,21 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
+%:
+	dh $@ --buildsystem=none
+
+override_dh_auto_build:
+	$(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -c CuTest.c -o CuTest.o
+	$(AR) rcs libcutest.a CuTest.o
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	$(CC) $(CPPFLAGS) $(CFLAGS) -I. -o AllTests AllTests.c CuTestTest.c libcutest.a -lm
+	./AllTests
+endif
+
+override_dh_auto_clean:
+	rm -f CuTest.o libcutest.a AllTests


=====================================
debian/source/format
=====================================
@@ -0,0 +1 @@
+3.0 (quilt)


=====================================
debian/tests/compile-link
=====================================
@@ -0,0 +1,46 @@
+#!/bin/sh
+set -e
+
+cat > cutest-clean.c <<'EOF'
+#include <cutest/CuTest.h>
+#include <stdio.h>
+
+static void testAddition(CuTest *tc) {
+    CuAssertIntEquals(tc, 4, 2 + 2);
+}
+
+int main(void) {
+    CuString *output = CuStringNew();
+    CuSuite *suite = CuSuiteNew();
+    SUITE_ADD_TEST(suite, testAddition);
+    CuSuiteRun(suite);
+    CuSuiteSummary(suite, output);
+    CuSuiteDetails(suite, output);
+    printf("%s\n", output->buffer);
+    return suite->failCount > 0;
+}
+EOF
+cc -Wall -o cutest-clean cutest-clean.c -lcutest -lm
+./cutest-clean
+
+cat > cutest-upstream.c <<'EOF'
+#include "CuTest.h"
+#include <stdio.h>
+
+static void testAddition(CuTest *tc) {
+    CuAssertIntEquals(tc, 4, 2 + 2);
+}
+
+int main(void) {
+    CuString *output = CuStringNew();
+    CuSuite *suite = CuSuiteNew();
+    SUITE_ADD_TEST(suite, testAddition);
+    CuSuiteRun(suite);
+    CuSuiteSummary(suite, output);
+    CuSuiteDetails(suite, output);
+    printf("%s\n", output->buffer);
+    return suite->failCount > 0;
+}
+EOF
+cc -Wall -I/usr/include/cutest -o cutest-upstream cutest-upstream.c -lcutest -lm
+./cutest-upstream


=====================================
debian/tests/control
=====================================
@@ -0,0 +1,2 @@
+Tests: compile-link
+Depends: @, build-essential


=====================================
debian/watch
=====================================
@@ -0,0 +1,5 @@
+Version: 5
+
+Source: https://sf.net/@PACKAGE@/
+Matching-Pattern: @PACKAGE at -@ANY_VERSION@@ARCHIVE_EXT@
+



View it on GitLab: https://salsa.debian.org/med-team/cutest/-/commit/e22c0337a100c7f5433bad1a4028372c367764e9

-- 
View it on GitLab: https://salsa.debian.org/med-team/cutest/-/commit/e22c0337a100c7f5433bad1a4028372c367764e9
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20261029/e875d7b1/attachment-0001.htm>


More information about the debian-med-commit mailing list