[Python-apps-commits] r12383 - in packages/hg-git/trunk/debian (5 files)
vicho at users.alioth.debian.org
vicho at users.alioth.debian.org
Sun Sep 20 18:10:02 UTC 2015
Date: Sunday, September 20, 2015 @ 18:10:01
Author: vicho
Revision: 12383
Add autopkgtests
Added:
packages/hg-git/trunk/debian/tests/
packages/hg-git/trunk/debian/tests/control
packages/hg-git/trunk/debian/tests/mercurial-git
packages/hg-git/trunk/debian/tests/testsuite
Modified:
packages/hg-git/trunk/debian/changelog
Modified: packages/hg-git/trunk/debian/changelog
===================================================================
--- packages/hg-git/trunk/debian/changelog 2015-09-20 18:09:54 UTC (rev 12382)
+++ packages/hg-git/trunk/debian/changelog 2015-09-20 18:10:01 UTC (rev 12383)
@@ -2,6 +2,7 @@
* New upstream release
* Remove all patches as they are all in 0.8.2
+ * Add autopkgtests
-- Javi Merino <vicho at debian.org> Sun, 20 Sep 2015 13:29:49 +0100
Added: packages/hg-git/trunk/debian/tests/control
===================================================================
--- packages/hg-git/trunk/debian/tests/control (rev 0)
+++ packages/hg-git/trunk/debian/tests/control 2015-09-20 18:10:01 UTC (rev 12383)
@@ -0,0 +1,6 @@
+Tests: testsuite
+Depends: @, git, unzip
+Restrictions: allow-stderr
+
+Tests: mercurial-git
+Depends: @, git
Added: packages/hg-git/trunk/debian/tests/mercurial-git
===================================================================
--- packages/hg-git/trunk/debian/tests/mercurial-git (rev 0)
+++ packages/hg-git/trunk/debian/tests/mercurial-git 2015-09-20 18:10:01 UTC (rev 12383)
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# Basic test to the mercurial-git extension
+
+set -e
+
+# Setup a git repository with some content
+git init try
+cd try
+git config user.name Babar
+git config user.email babar at jungle.org
+echo a >a
+git add a
+git commit -m a
+cd ..
+
+# Now try to clone it with mercurial-git
+exec hg --config extensions.git= clone try try2
Property changes on: packages/hg-git/trunk/debian/tests/mercurial-git
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/hg-git/trunk/debian/tests/testsuite
===================================================================
--- packages/hg-git/trunk/debian/tests/testsuite (rev 0)
+++ packages/hg-git/trunk/debian/tests/testsuite 2015-09-20 18:10:01 UTC (rev 12383)
@@ -0,0 +1,8 @@
+#!/bin/sh
+#
+# Note: this doesn't test the installed mercurial-git. It's better
+# than nothing though.
+
+set -e
+
+exec make tests
Property changes on: packages/hg-git/trunk/debian/tests/testsuite
___________________________________________________________________
Added: svn:executable
+ *
More information about the Python-apps-commits
mailing list