]> the.earth.li Git - onak.git/commitdiff
Add an initial autopkgtest
authorJonathan McDowell <noodles@earth.li>
Sun, 20 Jul 2025 17:04:25 +0000 (18:04 +0100)
committerJonathan McDowell <noodles@earth.li>
Sun, 20 Jul 2025 17:04:25 +0000 (18:04 +0100)
Start to support autopkgtests, starting with a very simple smoke test
that ensures we can run the main onak binary.

debian/changelog
debian/control
debian/tests/control [new file with mode: 0644]
debian/tests/smoke-tests [new file with mode: 0755]

index b4bd059629d7c80ac4100749cc55d32c37393a0a..331e33384b0bb72596808780d9ecc91ffa2acd96 100644 (file)
@@ -4,6 +4,7 @@ onak (0.6.3-1+git) UNRELEASED; urgency=low
   * Cleanup database files on package purge (Closes: #1053323)
   * Update debian/watch to v4 + HTTPS
   * Drop debian/NEWS
+  * Add skeleton autopkgtests
 
  -- Jonathan McDowell <noodles@earth.li>  Tue, 15 Jul 2025 10:21:10 +0100
 
index b25b827a745850c9e3439256b6de26923b736afc..6460f7397955ad1e283a3bd3752ad515b5904486 100644 (file)
@@ -14,6 +14,7 @@ Homepage: https://www.earth.li/projectpurple/progs/onak.html
 Vcs-Browser: https://the.earth.li/gitweb/?p=onak.git;a=summary
 Vcs-Git: https://the.earth.li/git/onak.git
 Rules-Requires-Root: no
+Testsuite: autopkgtest
 
 Package: onak
 Architecture: any
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644 (file)
index 0000000..90aa996
--- /dev/null
@@ -0,0 +1,2 @@
+Tests: smoke-tests
+Depends: onak
diff --git a/debian/tests/smoke-tests b/debian/tests/smoke-tests
new file mode 100755 (executable)
index 0000000..2f2deb3
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+set -e
+
+onak