[Pkg-javascript-commits] [node-resolve] 07/10: Add an autopkgtest for the patch to enable Debian paths

Julien Puydt julien.puydt at laposte.net
Fri Sep 15 15:19:42 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-resolve.

commit c5cf00738e9a7c597a86406ddb9ae1c7a8e086a3
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Thu Aug 17 13:52:23 2017 +0200

    Add an autopkgtest for the patch to enable Debian paths
---
 debian/changelog          | 1 +
 debian/tests/control      | 2 +-
 debian/tests/debian-paths | 3 +++
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 21f58a6..5537ae5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ node-resolve (1.4.0-1) UNRELEASED; urgency=medium
   * Bump dh compat to 10.
   * Bump std-ver to 4.0.0.
   * Add a patch so node_modules isn't always added to search paths.
+  * Add an autopkgtest to check the patch mentioned above works.
 
  -- Julien Puydt <julien.puydt at laposte.net>  Wed, 16 Aug 2017 19:35:50 +0200
 
diff --git a/debian/tests/control b/debian/tests/control
index e559eba..7c848f4 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,2 @@
-Tests: require
+Tests: require debian-paths
 Depends: node-resolve
diff --git a/debian/tests/debian-paths b/debian/tests/debian-paths
new file mode 100644
index 0000000..81e950d
--- /dev/null
+++ b/debian/tests/debian-paths
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "resolve=require('resolve'); resolve.sync('resolve/lib/core.js', {basedir: '/usr/lib/nodejs'});"

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



More information about the Pkg-javascript-commits mailing list