[Pkg-javascript-commits] [node-estree-walker] 09/09: Run upstream test suite as autopkgtest

Julien Puydt julien.puydt at laposte.net
Thu Nov 23 06:48:47 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-estree-walker.

commit 21d080084ab5aec72172dfa1ea6ac43dc19e7c1c
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Thu Nov 23 07:40:55 2017 +0100

    Run upstream test suite as 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 4b7869d..d0e524c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ node-estree-walker (0.5.1-1) unstable; urgency=medium
     - Bump std-ver to 4.1.1
     - Bump dh compat to 10
     - Move from section web to javascript
+    - Run upstream test suite as autopkgtest 
 
  -- Julien Puydt <julien.puydt at laposte.net>  Thu, 23 Nov 2017 07:21:33 +0100
 
diff --git a/debian/tests/control b/debian/tests/control
index a48a4af..f4f363a 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,5 @@
 Tests: require
-Depends: node-estree-walker
+Depends: @
+
+Tests: upstreamtestsuite
+Depends: @, node-mocha
diff --git a/debian/tests/upstreamtestsuite b/debian/tests/upstreamtestsuite
new file mode 100644
index 0000000..c4b6e44
--- /dev/null
+++ b/debian/tests/upstreamtestsuite
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e
+sed test/test.js -e "s/( '..' )/('estree-walker')/g" > test.js
+mocha test.js

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



More information about the Pkg-javascript-commits mailing list