[Pkg-javascript-commits] [node-rollup-pluginutils] 03/05: Run the upstream test suite in autopkgtest

Julien Puydt julien.puydt at laposte.net
Fri Nov 24 13:51:25 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-rollup-pluginutils.

commit 3b3cbb7f52e36050bd365aab6f020f4dd8a0780c
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Thu Nov 23 08:06:47 2017 +0100

    Run the upstream test suite in autopkgtest
---
 debian/changelog               | 1 +
 debian/tests/control           | 5 ++++-
 debian/tests/upstreamtestsuite | 4 ++++
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index bd2421b..da4271d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 node-rollup-pluginutils (2.0.1-4) UNRELEASED; urgency=medium
 
   * Bump std-ver to 4.1.1.
+  * Run the upstream test suite in autopkgtest.
 
  -- Julien Puydt <julien.puydt at laposte.net>  Thu, 23 Nov 2017 08:04:26 +0100
 
diff --git a/debian/tests/control b/debian/tests/control
index 1e78ea8..f4f363a 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,5 @@
 Tests: require
-Depends: node-rollup-pluginutils
+Depends: @
+
+Tests: upstreamtestsuite
+Depends: @, node-mocha
diff --git a/debian/tests/upstreamtestsuite b/debian/tests/upstreamtestsuite
new file mode 100644
index 0000000..282c84e
--- /dev/null
+++ b/debian/tests/upstreamtestsuite
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e
+sed test/test.js -e "s/( '..' )/('rollup-pluginutils')/g" > test.js
+mocha test.js

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



More information about the Pkg-javascript-commits mailing list