File: node_is_nodejs.patch

package info (click to toggle)
thrift 0.17.0-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 22,516 kB
  • sloc: cpp: 99,433; java: 26,733; ansic: 21,588; pascal: 14,633; cs: 10,075; python: 9,667; javascript: 9,583; ruby: 8,384; php: 6,978; erlang: 6,423; makefile: 3,839; perl: 3,351; xml: 1,057; sh: 1,031; yacc: 963; ml: 962; lex: 340; lisp: 98
file content (40 lines) | stat: -rw-r--r-- 1,261 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Description: node is called nodejs in Debian
 Use the proper binary name.
Author: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Last-Update: 2019-10-23

---

--- a/lib/nodejs/test/testAll.sh
+++ b/lib/nodejs/test/testAll.sh
@@ -45,7 +45,7 @@ testServer()
     ${ISTANBUL} cover ${DIR}/server.js --dir ${REPORT_PREFIX}${COUNT} --handle-sigint -- --type $2 -p $3 -t $4 $5 &
     COUNT=$((COUNT+1))
   else
-    node ${DIR}/server.js --${1} --type $2 -p $3 -t $4 $5 &
+    nodejs ${DIR}/server.js --${1} --type $2 -p $3 -t $4 $5 &
   fi
   SERVERPID=$!
   sleep 0.1
@@ -53,7 +53,7 @@ testServer()
     ${ISTANBUL} cover ${DIR}/client.js --dir ${REPORT_PREFIX}${COUNT} -- --${1} --type $2 -p $3 -t $4 $5 || RET=1
     COUNT=$((COUNT+1))
   else
-    node ${DIR}/client.js --${1} --type $2 -p $3 -t $4 $5 || RET=1
+    nodejs ${DIR}/client.js --${1} --type $2 -p $3 -t $4 $5 || RET=1
   fi
   kill -2 $SERVERPID || RET=1
   wait $SERVERPID
@@ -117,9 +117,9 @@ fi
 
 # unit tests
 
-node ${DIR}/binary.test.js || TESTOK=1
-node ${DIR}/int64.test.js || TESTOK=1
-node ${DIR}/deep-constructor.test.js || TESTOK=1
+nodejs ${DIR}/binary.test.js || TESTOK=1
+nodejs ${DIR}/int64.test.js || TESTOK=1
+nodejs ${DIR}/deep-constructor.test.js || TESTOK=1
 
 # integration tests