node is called nodejs in Debian
authorLaszlo Boszormenyi (GCS) <gcs@debian.org>
Tue, 26 Apr 2022 15:14:22 +0000 (16:14 +0100)
committerLaszlo Boszormenyi (GCS) <gcs@debian.org>
Tue, 26 Apr 2022 15:14:22 +0000 (16:14 +0100)
Last-Update: 2019-10-23

Use the proper binary name.

Gbp-Pq: Name node_is_nodejs.patch

lib/nodejs/test/testAll.sh

index 3ae88b369f6bd4058ab1bd83303b3cb37b38a46c..7d68ab2fc2e0c61afaae901976a0fb712160087e 100755 (executable)
@@ -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