[Pkg-javascript-commits] [node-jsonfile] 06/08: Run upstream's testsuite in autopkgtest

Julien Puydt julien.puydt at laposte.net
Sun Oct 1 19:35:31 UTC 2017


This is an automated email from the git hooks/post-receive script.

jpuydt-guest pushed a commit to branch master
in repository node-jsonfile.

commit f7d8178e32d15f1d553af164974204f3b0f30c71
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Fri Sep 15 07:05:20 2017 +0200

    Run upstream's testsuite in autopkgtest
---
 debian/changelog       | 1 +
 debian/tests/control   | 3 +++
 debian/tests/testsuite | 6 ++++++
 3 files changed, 10 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 865ae4d..a123ebf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ node-jsonfile (4.0.0-1) UNRELEASED; urgency=medium
   * New upstream release.
   * Bump std-ver to 4.1.0.
   * Bump d/watch to version 4.
+  * Run the upstream testsuite in autopkgtest.
 
  -- Julien Puydt <julien.puydt at laposte.net>  Fri, 15 Sep 2017 06:57:43 +0200
 
diff --git a/debian/tests/control b/debian/tests/control
index ecb375f..7e7e778 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,5 @@
 Tests: require
 Depends: node-jsonfile
+
+Tests: testsuite
+Depends: node-jsonfile, mocha, node-rimraf
diff --git a/debian/tests/testsuite b/debian/tests/testsuite
new file mode 100644
index 0000000..71877c5
--- /dev/null
+++ b/debian/tests/testsuite
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+for fichier in `find test/ -name "*.js"`; do
+  sed -i $fichier -e "s|\.\./|jsonfile|g"
+done
+mocha

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-jsonfile.git



More information about the Pkg-javascript-commits mailing list