File: 0002_patch_unittest.patch

package info (click to toggle)
node-opencv 7.0.0%2Bgit20200310.6c13234-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 23,056 kB
  • sloc: xml: 476,274; cpp: 6,036; javascript: 2,284; makefile: 56; sh: 25; ansic: 20
file content (21 lines) | stat: -rw-r--r-- 736 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Remove some unit test that are not good to run
 Don't test camera because we don't have camera.
 Don't run unstable tests like detect edges.
Author: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
Last-Update: 2018-12-10
Index: node-opencv/test/examples.js
===================================================================
--- node-opencv.orig/test/examples.js
+++ node-opencv/test/examples.js
@@ -7,7 +7,10 @@ module.exports = function(){
 
   glob.sync('./examples/*.js').forEach(function(example){
     test("Example: " + example, function(assert){
-
+	if (example.endsWith("camera.js")) {
+	    assert.end()
+	    return
+	}
       var fullName = path.resolve(example)
         , examples = path.resolve('./examples')