1
0
Quellcode durchsuchen

Add an autopkgtest

For the time being: Run "test-luksmeta" only as it doesn't need
complilation.
Christoph Biedl vor 1 Tag
Ursprung
Commit
c50c65e6ef
2 geänderte Dateien mit 17 neuen und 0 gelöschten Zeilen
  1. 7 0
      debian/tests/control
  2. 10 0
      debian/tests/run-testsuite

+ 7 - 0
debian/tests/control

@@ -0,0 +1,7 @@
+Tests: run-testsuite
+Depends:
+    cryptsetup-bin,
+    luksmeta,
+Restrictions:
+    allow-stderr,
+Architecture: linux-any

+ 10 - 0
debian/tests/run-testsuite

@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -eu
+
+# In upstream's test program
+# * Replace luksmeta invocation with the one in PATH
+sed -i -e '
+    s:\./luksmeta:luksmeta:
+' test-luksmeta
+./test-luksmeta