integration testing scripts #64

Merged
jeffreypicard merged 8 commits from integration_testing into master 2022-10-04 19:25:44 +02:00
Showing only changes of commit fedd27d3d6 - Show all commits

View file

@ -15,8 +15,6 @@
moodyjon commented 2022-09-21 19:48:48 +02:00 (Migrated from github.com)
Review

Suggest substituting the value here, and eliminating CHUNK_TEST_RES as it's not reused by other tests.

Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
moodyjon commented 2022-09-21 20:02:27 +02:00 (Migrated from github.com)
Review

Greater than or equal to (-ge). At least for the one test using this, you wouldn't want GOT=0 to pass.

Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
jeffreypicard commented 2022-09-24 08:04:16 +02:00 (Migrated from github.com)
Review

I think I've just transposed the WANT and GOT, but the -gt is correct. I want a number greater than 0.

I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
jeffreypicard commented 2022-09-24 08:28:09 +02:00 (Migrated from github.com)
Review

Actually, nvm, you are right.

Actually, nvm, you are right.
moodyjon commented 2022-09-21 19:48:48 +02:00 (Migrated from github.com)
Review

Suggest substituting the value here, and eliminating CHUNK_TEST_RES as it's not reused by other tests.

Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
moodyjon commented 2022-09-21 20:02:27 +02:00 (Migrated from github.com)
Review

Greater than or equal to (-ge). At least for the one test using this, you wouldn't want GOT=0 to pass.

Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
jeffreypicard commented 2022-09-24 08:04:16 +02:00 (Migrated from github.com)
Review

I think I've just transposed the WANT and GOT, but the -gt is correct. I want a number greater than 0.

I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
jeffreypicard commented 2022-09-24 08:28:09 +02:00 (Migrated from github.com)
Review

Actually, nvm, you are right.

Actually, nvm, you are right.
RES=(0) RES=(0)
FINALRES=0 FINALRES=0
CHUNK_TEST_RES="010000000000000000000000000000000000000000000000000000000000000000000000cc59e59ff97ac092b55e423aa549"
moodyjon commented 2022-09-21 19:48:48 +02:00 (Migrated from github.com)
Review

Suggest substituting the value here, and eliminating CHUNK_TEST_RES as it's not reused by other tests.

Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
moodyjon commented 2022-09-21 20:02:27 +02:00 (Migrated from github.com)
Review

Greater than or equal to (-ge). At least for the one test using this, you wouldn't want GOT=0 to pass.

Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
jeffreypicard commented 2022-09-24 08:04:16 +02:00 (Migrated from github.com)
Review

I think I've just transposed the WANT and GOT, but the -gt is correct. I want a number greater than 0.

I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
jeffreypicard commented 2022-09-24 08:28:09 +02:00 (Migrated from github.com)
Review

Actually, nvm, you are right.

Actually, nvm, you are right.
moodyjon commented 2022-09-21 19:48:48 +02:00 (Migrated from github.com)
Review

Suggest substituting the value here, and eliminating CHUNK_TEST_RES as it's not reused by other tests.

Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
moodyjon commented 2022-09-21 20:02:27 +02:00 (Migrated from github.com)
Review

Greater than or equal to (-ge). At least for the one test using this, you wouldn't want GOT=0 to pass.

Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
jeffreypicard commented 2022-09-24 08:04:16 +02:00 (Migrated from github.com)
Review

I think I've just transposed the WANT and GOT, but the -gt is correct. I want a number greater than 0.

I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
jeffreypicard commented 2022-09-24 08:28:09 +02:00 (Migrated from github.com)
Review

Actually, nvm, you are right.

Actually, nvm, you are right.
# functions # functions
@ -40,7 +38,7 @@ function want_got {
moodyjon commented 2022-09-21 19:48:48 +02:00 (Migrated from github.com)
Review

Suggest substituting the value here, and eliminating CHUNK_TEST_RES as it's not reused by other tests.

Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
moodyjon commented 2022-09-21 20:02:27 +02:00 (Migrated from github.com)
Review

Greater than or equal to (-ge). At least for the one test using this, you wouldn't want GOT=0 to pass.

Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
jeffreypicard commented 2022-09-24 08:04:16 +02:00 (Migrated from github.com)
Review

I think I've just transposed the WANT and GOT, but the -gt is correct. I want a number greater than 0.

I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
jeffreypicard commented 2022-09-24 08:28:09 +02:00 (Migrated from github.com)
Review

Actually, nvm, you are right.

Actually, nvm, you are right.
moodyjon commented 2022-09-21 19:48:48 +02:00 (Migrated from github.com)
Review

Suggest substituting the value here, and eliminating CHUNK_TEST_RES as it's not reused by other tests.

Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
moodyjon commented 2022-09-21 20:02:27 +02:00 (Migrated from github.com)
Review

Greater than or equal to (-ge). At least for the one test using this, you wouldn't want GOT=0 to pass.

Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
jeffreypicard commented 2022-09-24 08:04:16 +02:00 (Migrated from github.com)
Review

I think I've just transposed the WANT and GOT, but the -gt is correct. I want a number greater than 0.

I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
jeffreypicard commented 2022-09-24 08:28:09 +02:00 (Migrated from github.com)
Review

Actually, nvm, you are right.

Actually, nvm, you are right.
} }
function want_greater { function want_greater {
if [ "${WANT}" -gt "${GOT}" ]; then if [ ${WANT} -ge ${GOT} ]; then
moodyjon commented 2022-09-21 19:48:48 +02:00 (Migrated from github.com)
Review

Suggest substituting the value here, and eliminating CHUNK_TEST_RES as it's not reused by other tests.

Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
moodyjon commented 2022-09-21 20:02:27 +02:00 (Migrated from github.com)
Review

Greater than or equal to (-ge). At least for the one test using this, you wouldn't want GOT=0 to pass.

Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
jeffreypicard commented 2022-09-24 08:04:16 +02:00 (Migrated from github.com)
Review

I think I've just transposed the WANT and GOT, but the -gt is correct. I want a number greater than 0.

I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
jeffreypicard commented 2022-09-24 08:28:09 +02:00 (Migrated from github.com)
Review

Actually, nvm, you are right.

Actually, nvm, you are right.
moodyjon commented 2022-09-21 19:48:48 +02:00 (Migrated from github.com)
Review

Suggest substituting the value here, and eliminating CHUNK_TEST_RES as it's not reused by other tests.

Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
moodyjon commented 2022-09-21 20:02:27 +02:00 (Migrated from github.com)
Review

Greater than or equal to (-ge). At least for the one test using this, you wouldn't want GOT=0 to pass.

Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
jeffreypicard commented 2022-09-24 08:04:16 +02:00 (Migrated from github.com)
Review

I think I've just transposed the WANT and GOT, but the -gt is correct. I want a number greater than 0.

I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
jeffreypicard commented 2022-09-24 08:28:09 +02:00 (Migrated from github.com)
Review

Actually, nvm, you are right.

Actually, nvm, you are right.
echo "WANT: ${WANT}" echo "WANT: ${WANT}"
echo "GOT: ${GOT}" echo "GOT: ${GOT}"
RES+=(1) RES+=(1)
@ -94,7 +92,7 @@ read -r -d '' CMD <<- EOM
moodyjon commented 2022-09-21 19:48:48 +02:00 (Migrated from github.com)
Review

Suggest substituting the value here, and eliminating CHUNK_TEST_RES as it's not reused by other tests.

Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
moodyjon commented 2022-09-21 20:02:27 +02:00 (Migrated from github.com)
Review

Greater than or equal to (-ge). At least for the one test using this, you wouldn't want GOT=0 to pass.

Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
jeffreypicard commented 2022-09-24 08:04:16 +02:00 (Migrated from github.com)
Review

I think I've just transposed the WANT and GOT, but the -gt is correct. I want a number greater than 0.

I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
jeffreypicard commented 2022-09-24 08:28:09 +02:00 (Migrated from github.com)
Review

Actually, nvm, you are right.

Actually, nvm, you are right.
moodyjon commented 2022-09-21 19:48:48 +02:00 (Migrated from github.com)
Review

Suggest substituting the value here, and eliminating CHUNK_TEST_RES as it's not reused by other tests.

Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
moodyjon commented 2022-09-21 20:02:27 +02:00 (Migrated from github.com)
Review

Greater than or equal to (-ge). At least for the one test using this, you wouldn't want GOT=0 to pass.

Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
jeffreypicard commented 2022-09-24 08:04:16 +02:00 (Migrated from github.com)
Review

I think I've just transposed the WANT and GOT, but the -gt is correct. I want a number greater than 0.

I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
jeffreypicard commented 2022-09-24 08:28:09 +02:00 (Migrated from github.com)
Review

Actually, nvm, you are right.

Actually, nvm, you are right.
--data '{"id": 1, "method": "blockchain.block.get_chunk", "params": [0]}' --data '{"id": 1, "method": "blockchain.block.get_chunk", "params": [0]}'
| jq .result | sed 's/"//g' | head -c 100 | jq .result | sed 's/"//g' | head -c 100
EOM EOM
WANT="${CHUNK_TEST_RES}" WANT="010000000000000000000000000000000000000000000000000000000000000000000000cc59e59ff97ac092b55e423aa549"
moodyjon commented 2022-09-21 19:48:48 +02:00 (Migrated from github.com)
Review

Suggest substituting the value here, and eliminating CHUNK_TEST_RES as it's not reused by other tests.

Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
moodyjon commented 2022-09-21 20:02:27 +02:00 (Migrated from github.com)
Review

Greater than or equal to (-ge). At least for the one test using this, you wouldn't want GOT=0 to pass.

Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
jeffreypicard commented 2022-09-24 08:04:16 +02:00 (Migrated from github.com)
Review

I think I've just transposed the WANT and GOT, but the -gt is correct. I want a number greater than 0.

I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
jeffreypicard commented 2022-09-24 08:28:09 +02:00 (Migrated from github.com)
Review

Actually, nvm, you are right.

Actually, nvm, you are right.
moodyjon commented 2022-09-21 19:48:48 +02:00 (Migrated from github.com)
Review

Suggest substituting the value here, and eliminating CHUNK_TEST_RES as it's not reused by other tests.

Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
moodyjon commented 2022-09-21 20:02:27 +02:00 (Migrated from github.com)
Review

Greater than or equal to (-ge). At least for the one test using this, you wouldn't want GOT=0 to pass.

Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
jeffreypicard commented 2022-09-24 08:04:16 +02:00 (Migrated from github.com)
Review

I think I've just transposed the WANT and GOT, but the -gt is correct. I want a number greater than 0.

I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
jeffreypicard commented 2022-09-24 08:28:09 +02:00 (Migrated from github.com)
Review

Actually, nvm, you are right.

Actually, nvm, you are right.
test_command_with_want test_command_with_want
### blockchain.block.get_header ### blockchain.block.get_header

moodyjon commented 2022-09-21 19:48:48 +02:00 (Migrated from github.com)
Review

Suggest substituting the value here, and eliminating CHUNK_TEST_RES as it's not reused by other tests.

Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
moodyjon commented 2022-09-21 20:02:27 +02:00 (Migrated from github.com)
Review

Greater than or equal to (-ge). At least for the one test using this, you wouldn't want GOT=0 to pass.

Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
jeffreypicard commented 2022-09-24 08:04:16 +02:00 (Migrated from github.com)
Review

I think I've just transposed the WANT and GOT, but the -gt is correct. I want a number greater than 0.

I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
jeffreypicard commented 2022-09-24 08:28:09 +02:00 (Migrated from github.com)
Review

Actually, nvm, you are right.

Actually, nvm, you are right.
moodyjon commented 2022-09-21 19:48:48 +02:00 (Migrated from github.com)
Review

Suggest substituting the value here, and eliminating CHUNK_TEST_RES as it's not reused by other tests.

Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
moodyjon commented 2022-09-21 20:02:27 +02:00 (Migrated from github.com)
Review

Greater than or equal to (-ge). At least for the one test using this, you wouldn't want GOT=0 to pass.

Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
jeffreypicard commented 2022-09-24 08:04:16 +02:00 (Migrated from github.com)
Review

I think I've just transposed the WANT and GOT, but the -gt is correct. I want a number greater than 0.

I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
jeffreypicard commented 2022-09-24 08:28:09 +02:00 (Migrated from github.com)
Review

Actually, nvm, you are right.

Actually, nvm, you are right.