[Pkg-javascript-commits] [node-array-unique] 05/06: Run the upstream test suite in autopkgtest

Julien Puydt julien.puydt at laposte.net
Fri Nov 24 23:04:18 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-array-unique.

commit 17d69e6e75468ea83bb95ca5bf3b836f76bec0ea
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Sat Nov 25 00:01:14 2017 +0100

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

diff --git a/debian/changelog b/debian/changelog
index 43c8516..2c58fd2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ node-array-unique (0.3.2-1) UNRELEASED; urgency=medium
     - Bump dh compat to 10
     - Clean d/rules
     - Move to section javascript
+  * Run the upstream test suite in autopkgtest
 
  -- Julien Puydt <julien.puydt at laposte.net>  Fri, 24 Nov 2017 23:56:56 +0100
 
diff --git a/debian/tests/control b/debian/tests/control
index eb8781d..3fcfcea 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,5 @@
 Tests: require
 Depends: @
+
+Tests: upstreamtestsuite
+Depends: @, node-mocha, node-should
diff --git a/debian/tests/upstreamtestsuite b/debian/tests/upstreamtestsuite
new file mode 100644
index 0000000..1226c1f
--- /dev/null
+++ b/debian/tests/upstreamtestsuite
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e
+cat test.js | sed "s|require('./')|require('array-unique')|g" > test-modified.js
+mocha test-modified.js

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



More information about the Pkg-javascript-commits mailing list