@@ -234,6 +234,7 @@ def linuxTesting(file, env_name, network_name) {
234234
235235 sh " cp libindy/target/debug/libindy.so wrappers/java/lib"
236236 sh " cp libindy/target/debug/libindy.so wrappers/python"
237+ sh " cp libindy/target/debug/libindy.so wrappers/nodejs"
237238 sh " cp libindy/target/debug/libindy.so cli"
238239 sh " cp libindy/target/debug/libindy.so libnullpay"
239240
@@ -250,6 +251,7 @@ def linuxTesting(file, env_name, network_name) {
250251
251252 stash includes : ' wrappers/java/lib/libindy.so' , name : " LibindyJavaSO${ env_name} "
252253 stash includes : ' wrappers/python/libindy.so' , name : " LibindyPythonSO${ env_name} "
254+ stash includes : ' wrappers/nodejs/libindy.so' , name : " LibindyNodejsSO${ env_name} "
253255 stash includes : ' cli/libindy.so' , name : " LibindyCliSO${ env_name} "
254256 stash includes : ' cli/libnullpay.so' , name : " LibnullpayCliSO${ env_name} "
255257
@@ -282,6 +284,7 @@ def linuxTesting(file, env_name, network_name) {
282284 },
283285 " ${ env_name} -java-test" : { linuxModuleTesting(file, env_name, network_name, this . &linuxJavaTesting) },
284286 " ${ env_name} -python-test" : { linuxModuleTesting(file, env_name, network_name, this . &linuxPythonTesting) },
287+ " ${ env_name} -nodejs-test" : { linuxModuleTesting(file, env_name, network_name, this . &linuxNodejsTesting) },
285288 " ${ env_name} -cli-test" : { linuxModuleTesting(file, env_name, network_name, this . &linuxCLITesting) }
286289 ])
287290 }
@@ -338,6 +341,20 @@ def linuxPythonTesting(env_name, network_name, testEnv) {
338341 }
339342}
340343
344+ def linuxNodejsTesting (env_name , network_name , testEnv ) {
345+ unstash name : " LibindyNodejsSO${ env_name} "
346+ testEnv. inside(" --network=${ network_name} " ) {
347+ echo " ${ env_name} Libindy Test: Test nodejs wrapper"
348+
349+ sh '''
350+ cd wrappers/nodejs
351+ npm run prepare
352+ npm install
353+ LD_LIBRARY_PATH=./:${LD_LIBRARY_PATH} RUST_LOG=trace TEST_POOL_IP=10.0.0.2 npm test
354+ '''
355+ }
356+ }
357+
341358def linuxCLITesting (env_name , network_name , testEnv ) {
342359 if (env_name == " RedHat" ){ // TODO: Delete it IS-702
343360 return ;
0 commit comments