From d9cec11f63523631ec8a46c00678e85127f5fd8b Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 23 Feb 2023 10:24:37 +0200 Subject: [PATCH 01/17] change output here --- tests/nym-mixnode-binary-check.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/nym-mixnode-binary-check.sh b/tests/nym-mixnode-binary-check.sh index b670113c0d..256cbc7a7e 100755 --- a/tests/nym-mixnode-binary-check.sh +++ b/tests/nym-mixnode-binary-check.sh @@ -7,8 +7,8 @@ RELEASE_DIRECTORY="target/release" RELEASE_VERSION_NUMBER=$1 WALLET_ADDRESS_CONST=n1435n84se65tn7yv536am0sfvng4yyrwj7thhxr MOCK_HOST="1.2.3.4" -OUTPUT=$(for i in {1..8}; do echo -n $(($RANDOM % 10)); done) -ID="test-${OUTPUT}" +RANDOM_ID=$(for i in {1..8}; do echo -n $(($RANDOM % 10)); done) +ID="test-${RANDOM_ID}" BINARY_NAME="nym-mixnode" echo "the version number is ${VERSION_NUMBER} to be installed from github" From b02ee658708de9cdf6c872dc2778e7d8013088fb Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 23 Feb 2023 10:35:58 +0200 Subject: [PATCH 02/17] fix command --- tests/nym-mixnode-binary-check.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/nym-mixnode-binary-check.sh b/tests/nym-mixnode-binary-check.sh index 256cbc7a7e..76f5a39133 100755 --- a/tests/nym-mixnode-binary-check.sh +++ b/tests/nym-mixnode-binary-check.sh @@ -26,14 +26,14 @@ check_mixnode_binary_build() { if [ -f "$BINARY_NAME" ]; then echo "running init tests" # we wont use config env files for now - OUTPUT=$(./${BINARY_NAME} --output json init --id ${ID} --host ${MOCK_HOST} --wallet-address ${WALLET_ADDRESS_CONST} >/dev/null) + OUTPUT=$(./${BINARY_NAME} --output json init --id ${ID} --host ${MOCK_HOST} --wallet-address ${WALLET_ADDRESS_CONST}) >/dev/null # get jq values for things we can assert against # tidy this bit up - okay for first push VALUE="$(echo ${OUTPUT} | jq .wallet_address | tr -d '"')" # do asserts here based upon the output on init - assert "echo ${VALUE}" $(echo ${WALLET_ADDRESS_CONST}) + assert $(echo ${VALUE}) $(echo ${WALLET_ADDRESS_CONST}) assert_end nym-mixnode-tests else echo "exiting test no binary found" From 97d06d3859e51bb48fdb3d91814ce15733ff0a94 Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 23 Feb 2023 10:37:07 +0200 Subject: [PATCH 03/17] fix up download paths --- tests/nym-client-binary-check.sh | 2 +- tests/nym-gateway-binary-check.sh | 2 +- tests/nym-network-requester-binary-check.sh | 2 +- tests/nym-socks-5-binary-check.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/nym-client-binary-check.sh b/tests/nym-client-binary-check.sh index ef22d439cd..cb15f71037 100755 --- a/tests/nym-client-binary-check.sh +++ b/tests/nym-client-binary-check.sh @@ -18,7 +18,7 @@ cd ${PWD}${RELEASE_DIRECTORY} # install the current release binary # so this is dependant on running on a linux machine for the time being -curl -L https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/$BINARY_NAME -o $BINARY_NAME +curl -L https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/${BINARY_NAME} -o $BINARY_NAME chmod u+x $BINARY_NAME #---------------------------------------------------------------------------------------------------------- diff --git a/tests/nym-gateway-binary-check.sh b/tests/nym-gateway-binary-check.sh index 5c8df30fb8..96ba8e5848 100755 --- a/tests/nym-gateway-binary-check.sh +++ b/tests/nym-gateway-binary-check.sh @@ -20,7 +20,7 @@ cd ${PWD}${RELEASE_DIRECTORY} # install the current release binary # so this is dependant on running on a linux machine for the time being -curl -L https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/$BINARY_NAME -o $BINARY_NAME +curl -L https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/${BINARY_NAME} -o $BINARY_NAME chmod u+x $BINARY_NAME #-------------------------------------- diff --git a/tests/nym-network-requester-binary-check.sh b/tests/nym-network-requester-binary-check.sh index a82fe1284e..0ee1d55d65 100755 --- a/tests/nym-network-requester-binary-check.sh +++ b/tests/nym-network-requester-binary-check.sh @@ -17,7 +17,7 @@ cd ${PWD}${RELEASE_DIRECTORY} # we have now the bundled the client into the network requester, more a less the same output as the client -curl -L https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/$BINARY_NAME -o $BINARY_NAME +curl -L https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/${BINARY_NAME} -o $BINARY_NAME chmod u+x $BINARY_NAME #---------------------------------------------------------------------------------------------------------- diff --git a/tests/nym-socks-5-binary-check.sh b/tests/nym-socks-5-binary-check.sh index b818db3b9a..c3d5d38266 100755 --- a/tests/nym-socks-5-binary-check.sh +++ b/tests/nym-socks-5-binary-check.sh @@ -19,7 +19,7 @@ cd ${PWD}${RELEASE_DIRECTORY} # install the current release binary # so this is dependant on running on a linux machine for the time being -curl -L https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/$BINARY_NAME -o $BINARY_NAME +curl -L https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/${BINARY_NAME} -o $BINARY_NAME chmod u+x $BINARY_NAME #---------------------------------------------------------------------------------------------------------- From 9afc21170af5e9cc4d8d130cae448a7c99cdff6f Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 23 Feb 2023 10:44:20 +0200 Subject: [PATCH 04/17] fix assertions --- tests/nym-gateway-binary-check.sh | 2 +- tests/nym-mixnode-binary-check.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/nym-gateway-binary-check.sh b/tests/nym-gateway-binary-check.sh index 96ba8e5848..344986605a 100755 --- a/tests/nym-gateway-binary-check.sh +++ b/tests/nym-gateway-binary-check.sh @@ -43,7 +43,7 @@ check_gateway_binary_build() if [ -f nym-gateway ]; then # do asserts here based upon the output on init - assert $(echo ${VALUE}) $(echo ${WALLET_ADDRESS_CONST}) + assert "echo ${VALUE}" $(echo ${WALLET_ADDRESS_CONST}) assert_end nym-gateway-tests else echo "exting test no binary found" diff --git a/tests/nym-mixnode-binary-check.sh b/tests/nym-mixnode-binary-check.sh index 76f5a39133..e7ed4a00d3 100755 --- a/tests/nym-mixnode-binary-check.sh +++ b/tests/nym-mixnode-binary-check.sh @@ -33,7 +33,7 @@ check_mixnode_binary_build() { VALUE="$(echo ${OUTPUT} | jq .wallet_address | tr -d '"')" # do asserts here based upon the output on init - assert $(echo ${VALUE}) $(echo ${WALLET_ADDRESS_CONST}) + assert "echo ${VALUE}" $(echo ${WALLET_ADDRESS_CONST}) assert_end nym-mixnode-tests else echo "exiting test no binary found" From c8f8c9cb07338bcfa4da3dbb0f2ffe9751f17650 Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 23 Feb 2023 10:58:36 +0200 Subject: [PATCH 05/17] fix urls --- tests/nym-client-binary-check.sh | 2 +- tests/nym-gateway-binary-check.sh | 2 +- tests/nym-network-requester-binary-check.sh | 2 +- tests/nym-socks-5-binary-check.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/nym-client-binary-check.sh b/tests/nym-client-binary-check.sh index cb15f71037..2454019db1 100755 --- a/tests/nym-client-binary-check.sh +++ b/tests/nym-client-binary-check.sh @@ -18,7 +18,7 @@ cd ${PWD}${RELEASE_DIRECTORY} # install the current release binary # so this is dependant on running on a linux machine for the time being -curl -L https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/${BINARY_NAME} -o $BINARY_NAME +curl -L "https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/${BINARY_NAME}" -o $BINARY_NAME chmod u+x $BINARY_NAME #---------------------------------------------------------------------------------------------------------- diff --git a/tests/nym-gateway-binary-check.sh b/tests/nym-gateway-binary-check.sh index 344986605a..9205164261 100755 --- a/tests/nym-gateway-binary-check.sh +++ b/tests/nym-gateway-binary-check.sh @@ -20,7 +20,7 @@ cd ${PWD}${RELEASE_DIRECTORY} # install the current release binary # so this is dependant on running on a linux machine for the time being -curl -L https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/${BINARY_NAME} -o $BINARY_NAME +curl -L "https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/${BINARY_NAME}" -o $BINARY_NAME chmod u+x $BINARY_NAME #-------------------------------------- diff --git a/tests/nym-network-requester-binary-check.sh b/tests/nym-network-requester-binary-check.sh index 0ee1d55d65..38c3965fc3 100755 --- a/tests/nym-network-requester-binary-check.sh +++ b/tests/nym-network-requester-binary-check.sh @@ -17,7 +17,7 @@ cd ${PWD}${RELEASE_DIRECTORY} # we have now the bundled the client into the network requester, more a less the same output as the client -curl -L https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/${BINARY_NAME} -o $BINARY_NAME +curl -L "https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/${BINARY_NAME}" -o $BINARY_NAME chmod u+x $BINARY_NAME #---------------------------------------------------------------------------------------------------------- diff --git a/tests/nym-socks-5-binary-check.sh b/tests/nym-socks-5-binary-check.sh index c3d5d38266..6e288cf5bf 100755 --- a/tests/nym-socks-5-binary-check.sh +++ b/tests/nym-socks-5-binary-check.sh @@ -19,7 +19,7 @@ cd ${PWD}${RELEASE_DIRECTORY} # install the current release binary # so this is dependant on running on a linux machine for the time being -curl -L https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/${BINARY_NAME} -o $BINARY_NAME +curl -L "https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/${BINARY_NAME}" -o $BINARY_NAME chmod u+x $BINARY_NAME #---------------------------------------------------------------------------------------------------------- From f59dc2a36132441bf3d09e2bddcf62f7b5b5c7ef Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 23 Feb 2023 11:11:34 +0200 Subject: [PATCH 06/17] push change --- tests/nym-gateway-binary-check.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/nym-gateway-binary-check.sh b/tests/nym-gateway-binary-check.sh index 9205164261..390fe9343f 100755 --- a/tests/nym-gateway-binary-check.sh +++ b/tests/nym-gateway-binary-check.sh @@ -27,11 +27,11 @@ chmod u+x $BINARY_NAME # functions #-------------------------------------- -check_gateway_binary_build() if [ -f nym-gateway ]; then +check_gateway_binary_build() if [ -f "$BINARY_NAME" ]; then echo "running init tests" # we wont use config env files for now # unless we want to use a specific environment - OUTPUT=$(./nym-gateway --output json init --id ${ID} --host ${MOCK_HOST} --wallet-address ${WALLET_ADDRESS_CONST}) >/dev/null 2>&1 + OUTPUT=$(./${BINARY_NAME} --output json init --id ${ID} --host ${MOCK_HOST} --wallet-address ${WALLET_ADDRESS_CONST}) >/dev/null 2>&1 # get jq values for things we can assert against VALUE=$(echo ${OUTPUT} | jq .wallet_address) From cfea2c3aa3e8b1eb5d13506f795f21e79f089de6 Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 23 Feb 2023 11:18:08 +0200 Subject: [PATCH 07/17] correct variable names --- tests/nym-client-binary-check.sh | 2 +- tests/nym-gateway-binary-check.sh | 2 +- tests/nym-mixnode-binary-check.sh | 2 +- tests/nym-network-requester-binary-check.sh | 2 +- tests/nym-socks-5-binary-check.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/nym-client-binary-check.sh b/tests/nym-client-binary-check.sh index 2454019db1..111160768b 100755 --- a/tests/nym-client-binary-check.sh +++ b/tests/nym-client-binary-check.sh @@ -6,7 +6,7 @@ set -e PWD="../" RELEASE_DIRECTORY="target/release" -VERSION_NUMBER=$1 +RELEASE_VERSION_NUMBER=$1 OUTPUT=$(for i in {1..8}; do echo -n $(($RANDOM % 10)); done) ID="test-${OUTPUT}" BINARY_NAME="nym-client" diff --git a/tests/nym-gateway-binary-check.sh b/tests/nym-gateway-binary-check.sh index 390fe9343f..19a0ce87b0 100755 --- a/tests/nym-gateway-binary-check.sh +++ b/tests/nym-gateway-binary-check.sh @@ -6,7 +6,7 @@ set -e PWD="../" RELEASE_DIRECTORY="target/release" -VERSION_NUMBER=$1 +RELEASE_VERSION_NUMBER=$1 WALLET_ADDRESS_CONST=n1435n84se65tn7yv536am0sfvng4yyrwj7thhxr MOCK_HOST="1.2.3.4" RANDOM_ID=$(for i in {1..8}; do echo -n $(($RANDOM % 10)); done) diff --git a/tests/nym-mixnode-binary-check.sh b/tests/nym-mixnode-binary-check.sh index e7ed4a00d3..6b32f76be8 100755 --- a/tests/nym-mixnode-binary-check.sh +++ b/tests/nym-mixnode-binary-check.sh @@ -11,7 +11,7 @@ RANDOM_ID=$(for i in {1..8}; do echo -n $(($RANDOM % 10)); done) ID="test-${RANDOM_ID}" BINARY_NAME="nym-mixnode" -echo "the version number is ${VERSION_NUMBER} to be installed from github" +echo "the version number is ${RELEASE_VERSION_NUMBER} to be installed from github" # install the current release binary # so this is dependant on running on a linux machine for the time being diff --git a/tests/nym-network-requester-binary-check.sh b/tests/nym-network-requester-binary-check.sh index 38c3965fc3..4ef0afdec7 100755 --- a/tests/nym-network-requester-binary-check.sh +++ b/tests/nym-network-requester-binary-check.sh @@ -6,7 +6,7 @@ set -e PWD="../" RELEASE_DIRECTORY="target/release" -VERSION_NUMBER=$1 +RELEASE_VERSION_NUMBER=$1 RANDOM_ID=$(for i in {1..8}; do echo -n $(($RANDOM % 10)); done) ID="test-${RANDOM_ID}" BINARY_NAME="nym-network-requester" diff --git a/tests/nym-socks-5-binary-check.sh b/tests/nym-socks-5-binary-check.sh index 6e288cf5bf..59ef083f03 100755 --- a/tests/nym-socks-5-binary-check.sh +++ b/tests/nym-socks-5-binary-check.sh @@ -6,7 +6,7 @@ set -e PWD="../" RELEASE_DIRECTORY="target/release" -VERSION_NUMBER=$1 +RELEASE_VERSION_NUMBER=$1 MOCK_SERVICE_PROVIDER="36cUqdggtdXixZhmXfyZm3Dep3Q5QsKVPotMrVSmS4oY.ZCCAdFPwPNSTtUMYveA62ttEFe8FDiB3cdheWHtCytX@6Lnxj9vD2YMtSmfe8zp5RBtj1uZLYQAFRxY9q7ANwrZz" RANDOM_ID=$(for i in {1..8}; do echo -n $(($RANDOM % 10)); done) ID="test-${RANDOM_ID}" From c8e2d25e7a692a6ea403869943c3f9b903160741 Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 23 Feb 2023 11:26:21 +0200 Subject: [PATCH 08/17] add correct assertion --- tests/nym-gateway-binary-check.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/nym-gateway-binary-check.sh b/tests/nym-gateway-binary-check.sh index 19a0ce87b0..26e1585f41 100755 --- a/tests/nym-gateway-binary-check.sh +++ b/tests/nym-gateway-binary-check.sh @@ -34,16 +34,20 @@ check_gateway_binary_build() if [ -f "$BINARY_NAME" ]; then OUTPUT=$(./${BINARY_NAME} --output json init --id ${ID} --host ${MOCK_HOST} --wallet-address ${WALLET_ADDRESS_CONST}) >/dev/null 2>&1 # get jq values for things we can assert against - VALUE=$(echo ${OUTPUT} | jq .wallet_address) + VALUE=$(echo ${OUTPUT} | jq .data_store) VALUE=${VALUE#\"} VALUE=${VALUE%\"} echo $OUTPUT - sleep 2 + #------------------------------------------------------ + USER=$(whoami) + DATA_STORE="/${USER}/.nym/gateways/${ID}/data/db.sqlite" + #------------------------------------------------------ - # do asserts here based upon the output on init + # do asserts here based upon the output + # check the data store path - assert "echo ${VALUE}" $(echo ${WALLET_ADDRESS_CONST}) + assert "echo ${VALUE}" $(echo ${DATA_STORE}) assert_end nym-gateway-tests else echo "exting test no binary found" From 2ad5893a78b98ace1a72334c871bc1868af3c1be Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 23 Feb 2023 11:33:22 +0200 Subject: [PATCH 09/17] fix asserts --- tests/nym-client-binary-check.sh | 2 +- tests/nym-network-requester-binary-check.sh | 2 +- tests/nym-socks-5-binary-check.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/nym-client-binary-check.sh b/tests/nym-client-binary-check.sh index 111160768b..13974fe48e 100755 --- a/tests/nym-client-binary-check.sh +++ b/tests/nym-client-binary-check.sh @@ -46,7 +46,7 @@ check_nym_client_binary_build() if [ -f $BINARY_NAME ]; then # do asserts here based upon the output on init - assert $(echo ${VALUE}) $(echo ${ID}) + assert "echo ${VALUE}" $(echo ${ID}) assert_end nym-client-tests else echo "exting test no binary found" diff --git a/tests/nym-network-requester-binary-check.sh b/tests/nym-network-requester-binary-check.sh index 4ef0afdec7..a96bfcfc9d 100755 --- a/tests/nym-network-requester-binary-check.sh +++ b/tests/nym-network-requester-binary-check.sh @@ -45,7 +45,7 @@ check_nym_network_requester_binary_build() if [ -f $BINARY_NAME ]; then # do asserts here based upon the output on init - assert $(echo ${VALUE}) $(echo ${ID}) + assert "echo ${VALUE}" $(echo ${ID}) assert_end nym-network-requester-tests else echo "exting test no binary found" diff --git a/tests/nym-socks-5-binary-check.sh b/tests/nym-socks-5-binary-check.sh index 59ef083f03..a6903f3134 100755 --- a/tests/nym-socks-5-binary-check.sh +++ b/tests/nym-socks-5-binary-check.sh @@ -47,7 +47,7 @@ check_nym_socks5_client_binary_build() if [ -f $BINARY_NAME ]; then # do asserts here based upon the output on init - assert $(echo ${VALUE}) $(echo ${ID}) + assert "echo ${VALUE}" $(echo ${ID}) assert_end nym-socks-5-client-tests else echo "exting test no binary found" From 2419beccafde03285d4e61a978c7e610b576e007 Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 23 Feb 2023 11:38:16 +0200 Subject: [PATCH 10/17] spurious directory change --- tests/nym-client-binary-check.sh | 2 -- tests/nym-gateway-binary-check.sh | 2 -- tests/nym-network-requester-binary-check.sh | 2 -- tests/nym-socks-5-binary-check.sh | 2 -- 4 files changed, 8 deletions(-) diff --git a/tests/nym-client-binary-check.sh b/tests/nym-client-binary-check.sh index 13974fe48e..af06f331b3 100755 --- a/tests/nym-client-binary-check.sh +++ b/tests/nym-client-binary-check.sh @@ -13,8 +13,6 @@ BINARY_NAME="nym-client" echo "the version number is ${VERSION_NUMBER} to be installed from github" -cd ${PWD}${RELEASE_DIRECTORY} - # install the current release binary # so this is dependant on running on a linux machine for the time being diff --git a/tests/nym-gateway-binary-check.sh b/tests/nym-gateway-binary-check.sh index 26e1585f41..dfb28084c3 100755 --- a/tests/nym-gateway-binary-check.sh +++ b/tests/nym-gateway-binary-check.sh @@ -15,8 +15,6 @@ BINARY_NAME="nym-gateway" echo "the version number is ${VERSION_NUMBER} to be installed from github" -cd ${PWD}${RELEASE_DIRECTORY} - # install the current release binary # so this is dependant on running on a linux machine for the time being diff --git a/tests/nym-network-requester-binary-check.sh b/tests/nym-network-requester-binary-check.sh index a96bfcfc9d..ade502d562 100755 --- a/tests/nym-network-requester-binary-check.sh +++ b/tests/nym-network-requester-binary-check.sh @@ -13,8 +13,6 @@ BINARY_NAME="nym-network-requester" echo "the version number is ${VERSION_NUMBER} to be installed from github" -cd ${PWD}${RELEASE_DIRECTORY} - # we have now the bundled the client into the network requester, more a less the same output as the client curl -L "https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/${BINARY_NAME}" -o $BINARY_NAME diff --git a/tests/nym-socks-5-binary-check.sh b/tests/nym-socks-5-binary-check.sh index a6903f3134..683bdd235a 100755 --- a/tests/nym-socks-5-binary-check.sh +++ b/tests/nym-socks-5-binary-check.sh @@ -14,8 +14,6 @@ BINARY_NAME="nym-socks5-client" echo "the version number is ${VERSION_NUMBER} to be installed from github" -cd ${PWD}${RELEASE_DIRECTORY} - # install the current release binary # so this is dependant on running on a linux machine for the time being From 905ffc257a3be4d308da924c4dfdb2c9dd049542 Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 23 Feb 2023 11:47:15 +0200 Subject: [PATCH 11/17] remove outputs echos and add remove cosmos from the config check --- tests/nym-client-binary-check.sh | 3 --- tests/nym-gateway-binary-check.sh | 5 ++--- tests/nym-network-requester-binary-check.sh | 3 --- tests/nym-socks-5-binary-check.sh | 3 --- 4 files changed, 2 insertions(+), 12 deletions(-) diff --git a/tests/nym-client-binary-check.sh b/tests/nym-client-binary-check.sh index af06f331b3..0ef7d19559 100755 --- a/tests/nym-client-binary-check.sh +++ b/tests/nym-client-binary-check.sh @@ -39,9 +39,6 @@ check_nym_client_binary_build() if [ -f $BINARY_NAME ]; then VALUE=${VALUE#\"} VALUE=${VALUE%\"} - echo "${OUTPUT}" - sleep 2 - # do asserts here based upon the output on init assert "echo ${VALUE}" $(echo ${ID}) diff --git a/tests/nym-gateway-binary-check.sh b/tests/nym-gateway-binary-check.sh index dfb28084c3..7a8f89464c 100755 --- a/tests/nym-gateway-binary-check.sh +++ b/tests/nym-gateway-binary-check.sh @@ -36,7 +36,6 @@ check_gateway_binary_build() if [ -f "$BINARY_NAME" ]; then VALUE=${VALUE#\"} VALUE=${VALUE%\"} - echo $OUTPUT #------------------------------------------------------ USER=$(whoami) DATA_STORE="/${USER}/.nym/gateways/${ID}/data/db.sqlite" @@ -59,7 +58,7 @@ fi check_gateway_binary_build # whoami # this is dependant on where it runs on ci potentially, will need to tweak this in the future -first_init=$(cat /root/.nym/gateways/${ID}/config/config.toml | grep -v "^\[gateway\]$" | grep -v "^version =") +first_init=$(cat /root/.nym/gateways/${ID}/config/config.toml | grep -v "^\[gateway\]$" | grep -v "^version =" | grep -v "^cosmos_mnemonic =") #lets remove the binary then navigate to the target/release directory for checking the latest version if [ -f "$BINARY_NAME" ]; then @@ -85,7 +84,7 @@ check_gateway_binary_build echo "diff the config files after each init" echo "-------------------------------------" -second_init=$(cat /root/.nym/gateways/${ID}/config/config.toml | grep -v "^\[gateway\]$" | grep -v "^version =") +second_init=$(cat /root/.nym/gateways/${ID}/config/config.toml | grep -v "^\[gateway\]$" | grep -v "^version =" | grep -v "^cosmos_mnemonic =") diff -w <(echo "$first_init") <(echo "$second_init") diff --git a/tests/nym-network-requester-binary-check.sh b/tests/nym-network-requester-binary-check.sh index ade502d562..8e31d73b27 100755 --- a/tests/nym-network-requester-binary-check.sh +++ b/tests/nym-network-requester-binary-check.sh @@ -38,9 +38,6 @@ check_nym_network_requester_binary_build() if [ -f $BINARY_NAME ]; then VALUE=${VALUE#\"} VALUE=${VALUE%\"} - echo "${OUTPUT}" - sleep 2 - # do asserts here based upon the output on init assert "echo ${VALUE}" $(echo ${ID}) diff --git a/tests/nym-socks-5-binary-check.sh b/tests/nym-socks-5-binary-check.sh index 683bdd235a..3888487a71 100755 --- a/tests/nym-socks-5-binary-check.sh +++ b/tests/nym-socks-5-binary-check.sh @@ -40,9 +40,6 @@ check_nym_socks5_client_binary_build() if [ -f $BINARY_NAME ]; then VALUE=${VALUE#\"} VALUE=${VALUE%\"} - echo "${OUTPUT}" - sleep 2 - # do asserts here based upon the output on init assert "echo ${VALUE}" $(echo ${ID}) From f4bee0eed0d59a6b5ce4a86485dbec48b8251501 Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 23 Feb 2023 11:53:51 +0200 Subject: [PATCH 12/17] update readme --- tests/README.md | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/tests/README.md b/tests/README.md index 3d72d8123e..fa6f675a54 100644 --- a/tests/README.md +++ b/tests/README.md @@ -1,9 +1,6 @@ ## Binary init checker - -### WIP -A simple tool to ensure that all binaries init with the correct format, using the assert.sh library - +A simple tool to ensure that all binaries init with the correct format, using the `assert.sh` library Simply run `./build_and_run.sh $RELEASE_BRANCH` `$CURRENT_PRODUCTION_RELEASE_VERSION` @@ -11,10 +8,10 @@ For example: `./build_and_run.sh release/v1.1.11 v1.1.10` -This will run through all the binaries anc check the fields that we expect to be initialised when passing the parameters into nyms core binaries +Currently, this is run on linux based machines as the nym-core binaries are published via a linux build agent + + +This will run through all the binaries and check the fields that we expect to be initialised when passing the parameters into nyms core binaries ## TODO - - Introduce all binaries - - Sort paths and locations - - Tidy up - - Run in CI + - Create GH workflow and Run in CI From 4b77312bee98b3823c4aca9c4cdb6ae0a82921dc Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 23 Feb 2023 11:57:38 +0200 Subject: [PATCH 13/17] fix var naming --- tests/nym-client-binary-check.sh | 2 +- tests/nym-gateway-binary-check.sh | 2 +- tests/nym-network-requester-binary-check.sh | 2 +- tests/nym-socks-5-binary-check.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/nym-client-binary-check.sh b/tests/nym-client-binary-check.sh index 0ef7d19559..d9954f7f52 100755 --- a/tests/nym-client-binary-check.sh +++ b/tests/nym-client-binary-check.sh @@ -11,7 +11,7 @@ OUTPUT=$(for i in {1..8}; do echo -n $(($RANDOM % 10)); done) ID="test-${OUTPUT}" BINARY_NAME="nym-client" -echo "the version number is ${VERSION_NUMBER} to be installed from github" +echo "the version number is ${RELEASE_VERSION_NUMBER} to be installed from github" # install the current release binary # so this is dependant on running on a linux machine for the time being diff --git a/tests/nym-gateway-binary-check.sh b/tests/nym-gateway-binary-check.sh index 7a8f89464c..4e350d5a99 100755 --- a/tests/nym-gateway-binary-check.sh +++ b/tests/nym-gateway-binary-check.sh @@ -13,7 +13,7 @@ RANDOM_ID=$(for i in {1..8}; do echo -n $(($RANDOM % 10)); done) ID="test-${RANDOM_ID}" BINARY_NAME="nym-gateway" -echo "the version number is ${VERSION_NUMBER} to be installed from github" +echo "the version number is ${RELEASE_VERSION_NUMBER} to be installed from github" # install the current release binary # so this is dependant on running on a linux machine for the time being diff --git a/tests/nym-network-requester-binary-check.sh b/tests/nym-network-requester-binary-check.sh index 8e31d73b27..f22f0c9351 100755 --- a/tests/nym-network-requester-binary-check.sh +++ b/tests/nym-network-requester-binary-check.sh @@ -11,7 +11,7 @@ RANDOM_ID=$(for i in {1..8}; do echo -n $(($RANDOM % 10)); done) ID="test-${RANDOM_ID}" BINARY_NAME="nym-network-requester" -echo "the version number is ${VERSION_NUMBER} to be installed from github" +echo "the version number is ${RELEASE_VERSION_NUMBER} to be installed from github" # we have now the bundled the client into the network requester, more a less the same output as the client diff --git a/tests/nym-socks-5-binary-check.sh b/tests/nym-socks-5-binary-check.sh index 3888487a71..5a9a8e7ef9 100755 --- a/tests/nym-socks-5-binary-check.sh +++ b/tests/nym-socks-5-binary-check.sh @@ -12,7 +12,7 @@ RANDOM_ID=$(for i in {1..8}; do echo -n $(($RANDOM % 10)); done) ID="test-${RANDOM_ID}" BINARY_NAME="nym-socks5-client" -echo "the version number is ${VERSION_NUMBER} to be installed from github" +echo "the version number is ${RELEASE_VERSION_NUMBER} to be installed from github" # install the current release binary # so this is dependant on running on a linux machine for the time being From 665f093bcf1e3506ed7db66cd2d5f5fa6a5c3288 Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 23 Feb 2023 12:22:31 +0200 Subject: [PATCH 14/17] push path changes --- tests/nym-client-binary-check.sh | 4 ++-- tests/nym-gateway-binary-check.sh | 7 +++---- tests/nym-mixnode-binary-check.sh | 4 ++-- tests/nym-network-requester-binary-check.sh | 4 ++-- tests/nym-socks-5-binary-check.sh | 4 ++-- 5 files changed, 11 insertions(+), 12 deletions(-) diff --git a/tests/nym-client-binary-check.sh b/tests/nym-client-binary-check.sh index d9954f7f52..7d78b55dbb 100755 --- a/tests/nym-client-binary-check.sh +++ b/tests/nym-client-binary-check.sh @@ -57,7 +57,7 @@ fi check_nym_client_binary_build -first_init=$(cat /root/.nym/clients/${ID}/config/config.toml | grep -v "^version =") +first_init=$(cat ${HOME}/.nym/clients/${ID}/config/config.toml | grep -v "^version =") #---------------------------------------------------------------------------------------------------------- # lets remove the binary then navigate to the target/release directory for checking the latest version @@ -86,7 +86,7 @@ echo "-------------------------------------" check_nym_client_binary_build -second_init=$(cat /root/.nym/clients/${ID}/config/config.toml | grep -v "^version =") +second_init=$(cat ${HOME}/.nym/clients/${ID}/config/config.toml | grep -v "^version =") diff -w <(echo "$first_init") <(echo "$second_init") diff --git a/tests/nym-gateway-binary-check.sh b/tests/nym-gateway-binary-check.sh index 4e350d5a99..a2fcd814d5 100755 --- a/tests/nym-gateway-binary-check.sh +++ b/tests/nym-gateway-binary-check.sh @@ -37,8 +37,7 @@ check_gateway_binary_build() if [ -f "$BINARY_NAME" ]; then VALUE=${VALUE%\"} #------------------------------------------------------ - USER=$(whoami) - DATA_STORE="/${USER}/.nym/gateways/${ID}/data/db.sqlite" + DATA_STORE="${HOME}/.nym/gateways/${ID}/data/db.sqlite" #------------------------------------------------------ # do asserts here based upon the output @@ -58,7 +57,7 @@ fi check_gateway_binary_build # whoami # this is dependant on where it runs on ci potentially, will need to tweak this in the future -first_init=$(cat /root/.nym/gateways/${ID}/config/config.toml | grep -v "^\[gateway\]$" | grep -v "^version =" | grep -v "^cosmos_mnemonic =") +first_init=$(cat ${HOME}/.nym/gateways/${ID}/config/config.toml | grep -v "^\[gateway\]$" | grep -v "^version =" | grep -v "^cosmos_mnemonic =") #lets remove the binary then navigate to the target/release directory for checking the latest version if [ -f "$BINARY_NAME" ]; then @@ -84,7 +83,7 @@ check_gateway_binary_build echo "diff the config files after each init" echo "-------------------------------------" -second_init=$(cat /root/.nym/gateways/${ID}/config/config.toml | grep -v "^\[gateway\]$" | grep -v "^version =" | grep -v "^cosmos_mnemonic =") +second_init=$(cat ${HOME}/.nym/gateways/${ID}/config/config.toml | grep -v "^\[gateway\]$" | grep -v "^version =" | grep -v "^cosmos_mnemonic =") diff -w <(echo "$first_init") <(echo "$second_init") diff --git a/tests/nym-mixnode-binary-check.sh b/tests/nym-mixnode-binary-check.sh index 6b32f76be8..41c46a9211 100755 --- a/tests/nym-mixnode-binary-check.sh +++ b/tests/nym-mixnode-binary-check.sh @@ -48,7 +48,7 @@ check_mixnode_binary_build() { check_mixnode_binary_build # whoami # this is dependant on where it runs on ci potentially, will need to tweak this in the future -first_init=$(cat /root/.nym/mixnodes/${ID}/config/config.toml | grep -v "^\[mixnode\]$" | grep -v "^version =") +first_init=$(cat ${HOME}/.nym/mixnodes/${ID}/config/config.toml | grep -v "^\[mixnode\]$" | grep -v "^version =") #lets remove the binary then navigate to the target/release directory for checking the latest version if [ -f "$BINARY_NAME" ]; then @@ -74,7 +74,7 @@ check_mixnode_binary_build echo "diff the config files after each init" echo "-------------------------------------" -second_init=$(cat /root/.nym/mixnodes/${ID}/config/config.toml | grep -v "^\[mixnode\]$" | grep -v "^version =") +second_init=$(cat ${HOME}/.nym/mixnodes/${ID}/config/config.toml | grep -v "^\[mixnode\]$" | grep -v "^version =") diff -w <(echo "$first_init") <(echo "$second_init") diff --git a/tests/nym-network-requester-binary-check.sh b/tests/nym-network-requester-binary-check.sh index f22f0c9351..5486e45cea 100755 --- a/tests/nym-network-requester-binary-check.sh +++ b/tests/nym-network-requester-binary-check.sh @@ -56,7 +56,7 @@ fi check_nym_network_requester_binary_build -first_init=$(cat /root/.nym/service-providers/network-requester/${ID}/config/config.toml | grep -v "^version =") +first_init=$(cat ${HOME}/.nym/service-providers/network-requester/${ID}/config/config.toml | grep -v "^version =") #---------------------------------------------------------------------------------------------------------- # lets remove the binary then navigate to the target/release directory for checking the latest version @@ -85,7 +85,7 @@ echo "-------------------------------------" check_nym_network_requester_binary_build -second_init=$(cat /root/.nym/service-providers/network-requester/${ID}/config/config.toml | grep -v "^version =") +second_init=$(cat ${HOME}/.nym/service-providers/network-requester/${ID}/config/config.toml | grep -v "^version =") diff -w <(echo "$first_init") <(echo "$second_init") diff --git a/tests/nym-socks-5-binary-check.sh b/tests/nym-socks-5-binary-check.sh index 5a9a8e7ef9..af99902603 100755 --- a/tests/nym-socks-5-binary-check.sh +++ b/tests/nym-socks-5-binary-check.sh @@ -58,7 +58,7 @@ fi check_nym_socks5_client_binary_build -first_init=$(cat /root/.nym/socks5-clients/${ID}/config/config.toml | grep -v "^version =") +first_init=$(cat ${HOME}/.nym/socks5-clients/${ID}/config/config.toml | grep -v "^version =") #---------------------------------------------------------------------------------------------------------- # lets remove the binary then navigate to the target/release directory for checking the latest version @@ -87,7 +87,7 @@ echo "-------------------------------------" check_nym_socks5_client_binary_build -second_init=$(cat /root/.nym/socks5-clients/${ID}/config/config.toml | grep -v "^version =") +second_init=$(cat ${HOME}/.nym/socks5-clients/${ID}/config/config.toml | grep -v "^version =") diff -w <(echo "$first_init") <(echo "$second_init") From 8927824d59f7b736afb2a1deb66cf9334cee50de Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 23 Feb 2023 12:29:42 +0200 Subject: [PATCH 15/17] make sure the script is executed in the right place --- tests/build_and_run.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/build_and_run.sh b/tests/build_and_run.sh index 765e053bf7..d36e0745e6 100755 --- a/tests/build_and_run.sh +++ b/tests/build_and_run.sh @@ -4,6 +4,13 @@ PWD="../" GIT_BRANCH=$1 VERSION_NUMBER=$2 +# run the script from the correct location + +if [[ $(pwd) != */tests ]]; then + echo "Please run the script from the 'tests' directory." + exit 1 +fi + # lets make sure the branch is up to date # --------------------------------------- git checkout develop From 6d15b444a0dc069596ffe4921b12a6a2433ae1cb Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 23 Feb 2023 14:22:20 +0200 Subject: [PATCH 16/17] use master on the build agent to fetch the latest release binaries --- tests/build_and_run.sh | 10 +++++----- tests/nym-client-binary-check.sh | 5 +---- tests/nym-gateway-binary-check.sh | 5 +---- tests/nym-mixnode-binary-check.sh | 7 ++----- tests/nym-network-requester-binary-check.sh | 3 +-- tests/nym-socks-5-binary-check.sh | 3 +-- 6 files changed, 11 insertions(+), 22 deletions(-) diff --git a/tests/build_and_run.sh b/tests/build_and_run.sh index d36e0745e6..b86c74cced 100755 --- a/tests/build_and_run.sh +++ b/tests/build_and_run.sh @@ -27,26 +27,26 @@ cargo build --release --all #here there should be the applicable binaries to test inits echo "running mixnode binary check" -./nym-mixnode-binary-check.sh "$VERSION_NUMBER" +./nym-mixnode-binary-check.sh sleep 2 echo "running gateway binary check" -./nym-gateway-binary-check.sh "$VERSION_NUMBER" +./nym-gateway-binary-check.sh sleep 2 echo "running socks-5 binary check" -./nym-socks-5-binary-check.sh "$VERSION_NUMBER" +./nym-socks-5-binary-check.sh sleep 2 echo "running network-requester binary check" -./nym-network-requester-binary-check.sh "$VERSION_NUMBER" +./nym-network-requester-binary-check.sh sleep 2 echo "running client binary check" -./nym-client-binary-check.sh "$VERSION_NUMBER" +./nym-client-binary-check.sh diff --git a/tests/nym-client-binary-check.sh b/tests/nym-client-binary-check.sh index 7d78b55dbb..ee23bccb64 100755 --- a/tests/nym-client-binary-check.sh +++ b/tests/nym-client-binary-check.sh @@ -6,17 +6,14 @@ set -e PWD="../" RELEASE_DIRECTORY="target/release" -RELEASE_VERSION_NUMBER=$1 OUTPUT=$(for i in {1..8}; do echo -n $(($RANDOM % 10)); done) ID="test-${OUTPUT}" BINARY_NAME="nym-client" -echo "the version number is ${RELEASE_VERSION_NUMBER} to be installed from github" - # install the current release binary # so this is dependant on running on a linux machine for the time being -curl -L "https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/${BINARY_NAME}" -o $BINARY_NAME +curl -L "https://builds.ci.nymte.ch/master/${BINARY_NAME}" -o $BINARY_NAME chmod u+x $BINARY_NAME #---------------------------------------------------------------------------------------------------------- diff --git a/tests/nym-gateway-binary-check.sh b/tests/nym-gateway-binary-check.sh index a2fcd814d5..9df6fd80f6 100755 --- a/tests/nym-gateway-binary-check.sh +++ b/tests/nym-gateway-binary-check.sh @@ -6,19 +6,16 @@ set -e PWD="../" RELEASE_DIRECTORY="target/release" -RELEASE_VERSION_NUMBER=$1 WALLET_ADDRESS_CONST=n1435n84se65tn7yv536am0sfvng4yyrwj7thhxr MOCK_HOST="1.2.3.4" RANDOM_ID=$(for i in {1..8}; do echo -n $(($RANDOM % 10)); done) ID="test-${RANDOM_ID}" BINARY_NAME="nym-gateway" -echo "the version number is ${RELEASE_VERSION_NUMBER} to be installed from github" - # install the current release binary # so this is dependant on running on a linux machine for the time being -curl -L "https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/${BINARY_NAME}" -o $BINARY_NAME +curl -L "https://builds.ci.nymte.ch/master/${BINARY_NAME}" -o $BINARY_NAME chmod u+x $BINARY_NAME #-------------------------------------- diff --git a/tests/nym-mixnode-binary-check.sh b/tests/nym-mixnode-binary-check.sh index 41c46a9211..52ad190067 100755 --- a/tests/nym-mixnode-binary-check.sh +++ b/tests/nym-mixnode-binary-check.sh @@ -4,19 +4,16 @@ PWD="../" RELEASE_DIRECTORY="target/release" -RELEASE_VERSION_NUMBER=$1 WALLET_ADDRESS_CONST=n1435n84se65tn7yv536am0sfvng4yyrwj7thhxr MOCK_HOST="1.2.3.4" RANDOM_ID=$(for i in {1..8}; do echo -n $(($RANDOM % 10)); done) ID="test-${RANDOM_ID}" BINARY_NAME="nym-mixnode" -echo "the version number is ${RELEASE_VERSION_NUMBER} to be installed from github" - # install the current release binary # so this is dependant on running on a linux machine for the time being -curl -L "https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/${BINARY_NAME}" -o nym-mixnode -chmod u+x "$BINARY_NAME" +curl -L "https://builds.ci.nymte.ch/master/${BINARY_NAME}" -o $BINARY_NAME +chmod u+x $BINARY_NAME #---------------------------------------------------------------------------------------------------------- # functions diff --git a/tests/nym-network-requester-binary-check.sh b/tests/nym-network-requester-binary-check.sh index 5486e45cea..8f299cc042 100755 --- a/tests/nym-network-requester-binary-check.sh +++ b/tests/nym-network-requester-binary-check.sh @@ -6,7 +6,6 @@ set -e PWD="../" RELEASE_DIRECTORY="target/release" -RELEASE_VERSION_NUMBER=$1 RANDOM_ID=$(for i in {1..8}; do echo -n $(($RANDOM % 10)); done) ID="test-${RANDOM_ID}" BINARY_NAME="nym-network-requester" @@ -15,7 +14,7 @@ echo "the version number is ${RELEASE_VERSION_NUMBER} to be installed from githu # we have now the bundled the client into the network requester, more a less the same output as the client -curl -L "https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/${BINARY_NAME}" -o $BINARY_NAME +curl -L "https://builds.ci.nymte.ch/master/${BINARY_NAME}" -o $BINARY_NAME chmod u+x $BINARY_NAME #---------------------------------------------------------------------------------------------------------- diff --git a/tests/nym-socks-5-binary-check.sh b/tests/nym-socks-5-binary-check.sh index af99902603..f04ec8794a 100755 --- a/tests/nym-socks-5-binary-check.sh +++ b/tests/nym-socks-5-binary-check.sh @@ -6,7 +6,6 @@ set -e PWD="../" RELEASE_DIRECTORY="target/release" -RELEASE_VERSION_NUMBER=$1 MOCK_SERVICE_PROVIDER="36cUqdggtdXixZhmXfyZm3Dep3Q5QsKVPotMrVSmS4oY.ZCCAdFPwPNSTtUMYveA62ttEFe8FDiB3cdheWHtCytX@6Lnxj9vD2YMtSmfe8zp5RBtj1uZLYQAFRxY9q7ANwrZz" RANDOM_ID=$(for i in {1..8}; do echo -n $(($RANDOM % 10)); done) ID="test-${RANDOM_ID}" @@ -17,7 +16,7 @@ echo "the version number is ${RELEASE_VERSION_NUMBER} to be installed from githu # install the current release binary # so this is dependant on running on a linux machine for the time being -curl -L "https://github.com/nymtech/nym/releases/download/nym-binaries-${RELEASE_VERSION_NUMBER}/${BINARY_NAME}" -o $BINARY_NAME +curl -L "https://builds.ci.nymte.ch/master/${BINARY_NAME}" -o $BINARY_NAME chmod u+x $BINARY_NAME #---------------------------------------------------------------------------------------------------------- From 01f4773a5d775ed7434747462880205dc45338ee Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 23 Feb 2023 14:23:06 +0200 Subject: [PATCH 17/17] update --- tests/nym-mixnode-binary-check.sh | 1 + tests/nym-socks-5-binary-check.sh | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/nym-mixnode-binary-check.sh b/tests/nym-mixnode-binary-check.sh index 52ad190067..cb47ed9b4b 100755 --- a/tests/nym-mixnode-binary-check.sh +++ b/tests/nym-mixnode-binary-check.sh @@ -12,6 +12,7 @@ BINARY_NAME="nym-mixnode" # install the current release binary # so this is dependant on running on a linux machine for the time being + curl -L "https://builds.ci.nymte.ch/master/${BINARY_NAME}" -o $BINARY_NAME chmod u+x $BINARY_NAME diff --git a/tests/nym-socks-5-binary-check.sh b/tests/nym-socks-5-binary-check.sh index f04ec8794a..ebcfe85e14 100755 --- a/tests/nym-socks-5-binary-check.sh +++ b/tests/nym-socks-5-binary-check.sh @@ -11,8 +11,6 @@ RANDOM_ID=$(for i in {1..8}; do echo -n $(($RANDOM % 10)); done) ID="test-${RANDOM_ID}" BINARY_NAME="nym-socks5-client" -echo "the version number is ${RELEASE_VERSION_NUMBER} to be installed from github" - # install the current release binary # so this is dependant on running on a linux machine for the time being