@@ -97,7 +97,8 @@ def getBuildPoolVerOptions(pool_type, plenum_ver, anoncreds_ver, node_ver) {
9797def dockerClean (env_name , network_name ) {
9898 try {
9999 try {
100- sh " docker ps --format '{{.ID}}' --filter network=${ network_name} | xargs docker rm -f || true" // TODO: FIXME
100+ sh " docker ps --format '{{.ID}}' --filter network=${ network_name} | xargs docker rm -f || true"
101+ // TODO: FIXME
101102 } catch (error) {
102103 echo " ${ env_name} Test: error while force clean-up network ${ network_name} - ${ error} "
103104 }
@@ -173,7 +174,7 @@ def linuxTesting(file, env_name, network_name, stashBuildResults) {
173174 sh " RUST_BACKTRACE=1 cargo test --release --no-run"
174175
175176 echo " ${ env_name} Libindy Test: Run tests"
176- sh " RUST_BACKTRACE=1 RUST_LOG=indy::,zmq=trace RUST_TEST_THREADS=1 TEST_POOL_IP=10.0.0.2 cargo test --release"
177+ sh " RUST_BACKTRACE=1 RUST_LOG=indy::=debug ,zmq=trace RUST_TEST_THREADS=1 TEST_POOL_IP=10.0.0.2 cargo test --release"
177178
178179 if (stashBuildResults) {
179180 stash includes : ' target/release/libindy.so,target/release/libindy.a' , name : ' LibindyUbuntuBuildResult'
@@ -196,7 +197,7 @@ def linuxTesting(file, env_name, network_name, stashBuildResults) {
196197 testEnv. inside(" --ip=\" 10.0.0.3\" --network=${ network_name} " ) {
197198 echo " ${ env_name} Libindy Test: Test java wrapper"
198199
199- sh " RUST_LOG=indy::,zmq=trace TEST_POOL_IP=10.0.0.2 mvn clean test"
200+ sh " RUST_LOG=indy::=debug ,zmq=trace TEST_POOL_IP=10.0.0.2 mvn clean test"
200201 }
201202 }
202203
@@ -207,37 +208,40 @@ def linuxTesting(file, env_name, network_name, stashBuildResults) {
207208
208209 sh '''
209210 python3.5 -m pip install --user -e .
210- LD_LIBRARY_PATH=./:${LD_LIBRARY_PATH} RUST_LOG=indy::,zmq=trace TEST_POOL_IP=10.0.0.2 python3.5 -m pytest
211+ LD_LIBRARY_PATH=./:${LD_LIBRARY_PATH} RUST_LOG=indy::=debug ,zmq=trace TEST_POOL_IP=10.0.0.2 python3.5 -m pytest
211212 '''
212213 }
213214 }
214215
215- sh " cp libindy/target/release/libindy.so cli "
216- dir(' cli ' ) {
216+ sh " cp libindy/target/release/libindy.so libnullpay "
217+ dir(' libnullpay ' ) {
217218 testEnv. inside(" --ip=\" 10.0.0.3\" --network=${ network_name} " ) {
218- echo " ${ env_name} Indy Cli Test: Build"
219+ echo " ${ env_name} Indy Libnullpay Test: Build"
219220 sh " LIBRARY_PATH=./ RUST_BACKTRACE=1 cargo build --release"
220221
221- echo " ${ env_name} Indy Cli Test: Build Tests"
222- sh " LIBRARY_PATH=./ RUST_BACKTRACE=1 cargo test --release --no-run"
223-
224- echo " ${ env_name} Indy Cli Test: Run tests"
225- sh ' LD_LIBRARY_PATH=./:${LD_LIBRARY_PATH} RUST_BACKTRACE=1 RUST_LOG=indy::,zmq=trace RUST_TEST_THREADS=1 TEST_POOL_IP=10.0.0.2 cargo test --release'
226-
227222 if (stashBuildResults) {
228- stash includes : ' target/release/indy-cli ' , name : ' IndyCliUbuntuBuildResult '
223+ stash includes : ' target/release/libnullpay.so ' , name : ' LibnullpayUbuntuBuildResult '
229224 }
230225 }
231226 }
232227
233- sh " cp libindy/target/release/libindy.so libnullpay"
234- dir(' libnullpay' ) {
235- testEnv. inside(" --ip=\" 10.0.0.3\" --network=${ network_name} " ) {
236- echo " ${ env_name} Indy Libnullpay Test: Build"
237- sh " LIBRARY_PATH=./ RUST_BACKTRACE=1 cargo build --release"
228+ if (env_name == ' Ubuntu' ) { // TODO: Delete condition IS-702
229+ sh " cp libnullpay/target/release/libnullpay.so cli"
230+ sh " cp libindy/target/release/libindy.so cli"
231+ dir(' cli' ) {
232+ testEnv. inside(" --ip=\" 10.0.0.3\" --network=${ network_name} " ) {
233+ echo " ${ env_name} Indy Cli Test: Build"
234+ sh " LIBRARY_PATH=./ RUST_BACKTRACE=1 cargo build --release"
238235
239- if (stashBuildResults) {
240- stash includes : ' target/release/libnullpay.so' , name : ' LibnullpayUbuntuBuildResult'
236+ echo " ${ env_name} Indy Cli Test: Build Tests"
237+ sh ' LIBRARY_PATH=./ RUST_BACKTRACE=1 cargo test --release --features "nullpay_plugin" --no-run'
238+
239+ echo " ${ env_name} Indy Cli Test: Run tests"
240+ sh ' LD_LIBRARY_PATH=./:${LD_LIBRARY_PATH} RUST_BACKTRACE=1 RUST_LOG=indy::=debug,zmq=trace RUST_TEST_THREADS=1 TEST_POOL_IP=10.0.0.2 cargo test --release --features "nullpay_plugin"'
241+
242+ if (stashBuildResults) {
243+ stash includes : ' target/release/indy-cli' , name : ' IndyCliUbuntuBuildResult'
244+ }
241245 }
242246 }
243247 }
@@ -285,7 +289,7 @@ def windowsTesting() {
285289 echo " Windows Libindy Test: Run tests"
286290 withEnv([
287291 " RUST_TEST_THREADS=1" ,
288- " RUST_LOG=indy::,zmq=trace" ,
292+ " RUST_LOG=indy::=debug ,zmq=trace" ,
289293 " TEST_POOL_IP=$INDY_SDK_SERVER_IP "
290294 ]) {
291295 bat " cargo test --release"
@@ -294,47 +298,46 @@ def windowsTesting() {
294298 stash includes : ' target/release/*.dll' , name : ' LibindyWindowsBuildResult'
295299 }
296300
297- bat " copy $WORKSPACE \\ libindy\\ target\\ release\\ indy.dll $WORKSPACE \\ libindy\\ prebuilt\\ lib"
298- bat " copy $WORKSPACE \\ libindy\\ target\\ release\\ indy.lib $WORKSPACE \\ libindy\\ prebuilt\\ lib"
301+ dir(' libnullpay' ) {
302+ echo " Windows Libnullpay Test: Build"
303+ withEnv([
304+ " RUST_BACKTRACE=1"
305+ ]) {
306+ bat " cargo build --release"
307+ }
308+
309+ stash includes : ' target/release/*.dll' , name : ' LibnullpayWindowsBuildResult'
310+ }
311+
312+ bat " copy $WORKSPACE \\ libnullpay\\ target\\ release\\ nullpay.dll $WORKSPACE \\ cli"
299313
300314 dir(' cli' ) {
301315 bat " sed -i -e \" s/10\\ .0\\ .0\\ .2/${ INDY_SDK_SERVER_IP} /g\" docker_pool_transactions_genesis"
302316
317+ def featuresArgs = ' --features "nullpay_plugin"'
318+
303319 echo " Windows Indy Cli Test: Build"
304320 withEnv([
305- " INDY_DIR=$WORKSPACE \\ libindy\\ prebuilt" ,
306321 " RUST_BACKTRACE=1"
307322 ]) {
308323 bat " cargo build --release"
309324
310325 echo " Windows Indy Cli Test: Build tests"
311- bat " cargo test --release --no-run"
326+ bat " cargo test --release $f eaturesArgs --no-run"
312327
313328 echo " Windows Indy Cli Test: Run tests"
314329 withEnv([
315330 " RUST_TEST_THREADS=1" ,
316- " RUST_LOG=indy::,zmq=trace" ,
331+ " RUST_LOG=indy::=debug ,zmq=trace" ,
317332 " TEST_POOL_IP=$INDY_SDK_SERVER_IP "
318333 ]) {
319- bat " cargo test --release"
334+ bat " cargo test --release $f eaturesArgs "
320335 }
321336 }
322337
323338 stash includes : ' target/release/indy-cli.exe,target/release/*.dll' , name : ' IndyCliWindowsBuildResult'
324339 }
325340
326- dir(' libnullpay' ) {
327- echo " Windows Libnullpay Test: Build"
328- withEnv([
329- " INDY_PREBUILT_DEPS_DIR=$WORKSPACE \\ libindy\\ prebuilt" ,
330- " RUST_BACKTRACE=1"
331- ]) {
332- bat " cargo build --release"
333- }
334-
335- stash includes : ' target/release/*.dll' , name : ' LibnullpayWindowsBuildResult'
336- }
337-
338341 // TODO wrappers testing
339342
340343 } finally {
0 commit comments