[Python-apps-commits] r14133 - in packages/debomatic/trunk/debian (3 files)

dktrkranz at users.alioth.debian.org dktrkranz at users.alioth.debian.org
Sun Jul 2 08:44:37 UTC 2017


    Date: Sunday, July 2, 2017 @ 08:44:36
  Author: dktrkranz
Revision: 14133

Implement a DEP8 test which rebuilds a source package

Added:
  packages/debomatic/trunk/debian/tests/command-rebuild
Modified:
  packages/debomatic/trunk/debian/changelog
  packages/debomatic/trunk/debian/tests/control

Modified: packages/debomatic/trunk/debian/changelog
===================================================================
--- packages/debomatic/trunk/debian/changelog	2017-07-01 11:03:54 UTC (rev 14132)
+++ packages/debomatic/trunk/debian/changelog	2017-07-02 08:44:36 UTC (rev 14133)
@@ -6,6 +6,8 @@
     - texlive-generic-extra is now replaced by texlive-plain-generic.
   * debian/tests/build:
     - Improve code to be more reliable.
+  * debian/tests/command-rebuild:
+    - Implement a DEP8 test which rebuilds a source package.
   * debian/tests/control:
     - Add fakeroot to Depends list.
 

Added: packages/debomatic/trunk/debian/tests/command-rebuild
===================================================================
--- packages/debomatic/trunk/debian/tests/command-rebuild	                        (rev 0)
+++ packages/debomatic/trunk/debian/tests/command-rebuild	2017-07-02 08:44:36 UTC (rev 14133)
@@ -0,0 +1,17 @@
+#!/bin/sh
+set -e
+
+cd "$ADTTMP"
+
+sed -i 's/modules: True/modules: False/' /etc/debomatic/debomatic.conf
+grep /etc/debomatic/debomatic.conf -e "modules: False" || exit 1
+sed -i "s|incoming: /incoming|incoming: $ADTTMP/incoming|" /etc/debomatic/debomatic.conf
+grep /etc/debomatic/debomatic.conf -e "incoming: $ADTTMP/incoming" || exit 1
+
+mkdir "$ADTTMP"/incoming
+version=$(rmadison -u debian -a source -s unstable hello | cut -d"|" -f 2 | xargs)
+echo "rebuild hello_$version unstable" > "$ADTTMP"/incoming/rebuild.commands
+debomatic -c /etc/debomatic/debomatic.conf -o /$ADTTMP/incoming/rebuild.commands -i
+cat /$ADTTMP/incoming/unstable/pool/hello_$version/hello_$version.buildlog
+grep /$ADTTMP/incoming/unstable/pool/hello_$version/hello_$version.buildlog -e "Status: successful" || exit 1
+


Property changes on: packages/debomatic/trunk/debian/tests/command-rebuild
___________________________________________________________________
Added: svn:executable
   + *

Modified: packages/debomatic/trunk/debian/tests/control
===================================================================
--- packages/debomatic/trunk/debian/tests/control	2017-07-01 11:03:54 UTC (rev 14132)
+++ packages/debomatic/trunk/debian/tests/control	2017-07-02 08:44:36 UTC (rev 14133)
@@ -9,3 +9,11 @@
          debian-archive-keyring,
          dput-ng
 Restrictions: needs-root, allow-stderr
+
+Tests: command-rebuild
+Depends: debomatic,
+         devscripts,
+         wget,
+         liburi-perl,
+         ca-certificates,
+Restrictions: needs-root, allow-stderr




More information about the Python-apps-commits mailing list