[Pkg-javascript-commits] [node-doctrine] 03/03: Package upstream 2.0.2 and make the upstream test suite run in autopkgtest

Julien Puydt julien.puydt at laposte.net
Wed Nov 29 06:09:49 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-doctrine.

commit beeb4fb4024a300661b01ca2d4681a9a572c9758
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Wed Nov 29 07:06:26 2017 +0100

    Package upstream 2.0.2 and make the upstream test suite run in autopkgtest
---
 debian/changelog                                |  8 +++
 debian/patches/series                           |  1 +
 debian/patches/test_suite_for_autopkgtest.patch | 74 +++++++++++++++++++++++++
 debian/tests/control                            |  5 +-
 4 files changed, 87 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index d170bc7..785d1b8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+node-doctrine (2.0.2-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Add a patch to make upstream test suite run in autopkgtest.
+  * Run upstream test suite in autopkgtest.
+
+ -- Julien Puydt <julien.puydt at laposte.net>  Wed, 29 Nov 2017 06:58:56 +0100
+
 node-doctrine (2.0.1-1) unstable; urgency=medium
 
   * New upstream release.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..fa21b23
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+test_suite_for_autopkgtest.patch
diff --git a/debian/patches/test_suite_for_autopkgtest.patch b/debian/patches/test_suite_for_autopkgtest.patch
new file mode 100644
index 0000000..fe02ae0
--- /dev/null
+++ b/debian/patches/test_suite_for_autopkgtest.patch
@@ -0,0 +1,74 @@
+Description: make the test suite runnable in autopkgtest
+Author: Julien Puydt
+Forwarded: no
+
+--- a/test/midstream.js
++++ b/test/midstream.js
+@@ -7,10 +7,7 @@
+ /*jslint node:true */
+ 'use strict';
+ 
+-var fs = require('fs'),
+-    path = require('path'),
+-    root = path.join(path.dirname(fs.realpathSync(__filename)), '..'),
+-    doctrine = require(root);
++var doctrine = require('doctrine');
+ require('should');
+ 
+ describe('midstream', function () {
+--- a/test/parse.js
++++ b/test/parse.js
+@@ -6,10 +6,7 @@
+ /*jslint node:true */
+ 'use strict';
+ 
+-var fs = require('fs'),
+-    path = require('path'),
+-    root = path.join(path.dirname(fs.realpathSync(__filename)), '..'),
+-    doctrine = require(root);
++var doctrine = require('doctrine');
+ require('should');
+ 
+ describe('parse', function () {
+--- a/test/strict.js
++++ b/test/strict.js
+@@ -6,10 +6,7 @@
+ /*jslint node:true */
+ 'use strict';
+ 
+-var fs = require('fs'),
+-    path = require('path'),
+-    root = path.join(path.dirname(fs.realpathSync(__filename)), '..'),
+-    doctrine = require(root);
++var doctrine = require('doctrine');
+ require('should');
+ 
+ describe('strict parse', function () {
+--- a/test/stringify.js
++++ b/test/stringify.js
+@@ -6,10 +6,7 @@
+ /*jslint node:true */
+ 'use strict';
+ 
+-var fs = require('fs'),
+-    path = require('path'),
+-    root = path.join(path.dirname(fs.realpathSync(__filename)), '..'),
+-    doctrine = require(root),
++var doctrine = require('doctrine'),
+     assert = require('assert');
+ require('should');
+ 
+--- a/test/unwrap.js
++++ b/test/unwrap.js
+@@ -6,10 +6,7 @@
+ /*jslint node:true */
+ 'use strict';
+ 
+-var fs = require('fs'),
+-    path = require('path'),
+-    root = path.join(path.dirname(fs.realpathSync(__filename)), '..'),
+-    doctrine = require(root);
++var doctrine = require('doctrine');
+ require('should');
+ 
+ describe('unwrapComment', function () {
diff --git a/debian/tests/control b/debian/tests/control
index 90454fa..e13d65d 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,5 @@
 Tests: require
-Depends: node-doctrine
+Depends: @
+
+Test-Command: mocha
+Depends: @, node-should, node-mocha

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



More information about the Pkg-javascript-commits mailing list