-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Every MG test in a separate action (#905)
- Loading branch information
Showing
40 changed files
with
317 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#! /bin/sh | ||
|
||
cd roles | ||
RUST_LOG=debug cargo llvm-cov --ignore-filename-regex "utils/message-generator/|experimental/|protocols/" --cobertura --output-path "target/mg_coverage.xml" report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,17 @@ | ||
#! /bin/sh | ||
|
||
if [ "$1" = "--short" ]; then | ||
RUST_LOG="info" | ||
else | ||
RUST_LOG="debug" | ||
fi | ||
|
||
search_dir="../../test/message-generator/test/" | ||
message_generator_dir="./utils/message-generator/" | ||
|
||
cd $message_generator_dir | ||
cargo llvm-cov clean | ||
search_dir="test/message-generator/test/" | ||
|
||
for entry in `ls $search_dir`; do | ||
if [ "$entry" = "interop-jdc-change-upstream.json" ]; then | ||
if [ "$entry" = "interop-jdc-change-upstream" ]; then | ||
echo "Skipping $entry" | ||
continue | ||
fi | ||
|
||
echo $entry | ||
RUST_LOG=$RUST_LOG cargo run -- $search_dir$entry || { echo 'mg test failed' ; exit 1; } | ||
$search_dir$entry/$entry.sh | ||
done | ||
|
||
cd ../../roles | ||
RUST_LOG=$RUST_LOG cargo llvm-cov --ignore-filename-regex "utils/message-generator/|experimental/|protocols/" --cobertura --output-path "target/mg_coverage.xml" report | ||
cd roles | ||
RUST_LOG=debug cargo llvm-cov --ignore-filename-regex "utils/message-generator/|experimental/|protocols/" --cobertura --output-path "target/mg_coverage.xml" report | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
test/message-generator/test/bad-pool-config-test/bad-pool-config-test.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cd roles | ||
cargo llvm-cov --no-report -p pool_sv2 | ||
|
||
cd ../utils/message-generator/ | ||
cargo build | ||
|
||
RUST_LOG=debug cargo run ../../test/message-generator/test/bad-pool-config-test/bad-pool-config-test.json || { echo 'mg test failed' ; exit 1; } | ||
|
||
sleep 10 |
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
test/message-generator/test/interop-jd-translator/interop-jd-translator.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
cd roles | ||
cargo llvm-cov --no-report -p pool_sv2 | ||
cargo llvm-cov --no-report -p jd_server | ||
cargo llvm-cov --no-report -p jd_client | ||
cargo llvm-cov --no-report -p translator_sv2 | ||
cargo build -p sv1-mining-device | ||
|
||
cd ../utils/message-generator/ | ||
cargo build | ||
|
||
RUST_LOG=debug cargo run ../../test/message-generator/test/interop-jd-translator/interop-jd-translator.json || { echo 'mg test failed' ; exit 1; } | ||
|
||
sleep 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
test/message-generator/test/interop-jdc-change-upstream/interop-jdc-change-upstream.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
cd roles | ||
cargo llvm-cov --no-report -p jd_server | ||
cargo llvm-cov --no-report -p jd_client | ||
cargo llvm-cov --no-report -p mining_proxy_sv2 | ||
cargo build -p --no-report mining-device | ||
|
||
cd ../utils/message-generator/ | ||
cargo build | ||
|
||
RUST_LOG=debug cargo run ../../test/message-generator/test/interop-jdc-change-upstream/interop-jdc-change-upstream.json || { echo 'mg test failed' ; exit 1; } | ||
|
||
sleep 10 |
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
...rator/test/interop-proxy-with-multi-ups-extended/interop-proxy-with-multi-ups-extended.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
cd roles | ||
cargo llvm-cov --no-report -p pool_sv2 | ||
cargo llvm-cov --no-report -p mining_proxy_sv2 | ||
cargo build --no-report -p mining-device | ||
|
||
cd ../utils/message-generator/ | ||
cargo build | ||
|
||
RUST_LOG=debug cargo run ../../test/message-generator/test/interop-proxy-with-multi-ups-extended/interop-proxy-with-multi-ups-extended.json || { echo 'mg test failed' ; exit 1; } | ||
|
||
sleep 10 |
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
test/message-generator/test/interop-proxy-with-multi-ups/interop-proxy-with-multi-ups.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
cd roles | ||
cargo llvm-cov --no-report -p pool_sv2 | ||
cargo llvm-cov --no-report -p mining_proxy_sv2 | ||
cargo build -p mining-device | ||
|
||
cd ../utils/message-generator/ | ||
cargo build | ||
|
||
RUST_LOG=debug cargo run ../../test/message-generator/test/interop-proxy-with-multi-ups/interop-proxy-with-multi-ups.json || { echo 'mg test failed' ; exit 1; } | ||
|
||
sleep 10 |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
...generator/test/jds-do-not-fail-on-wrong-tsdatasucc/jds-do-not-fail-on-wrong-tsdatasucc.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cd roles | ||
cargo llvm-cov --no-report -p jd_server | ||
|
||
cd ../utils/message-generator/ | ||
cargo build | ||
|
||
RUST_LOG=debug cargo run ../../test/message-generator/test/jds-do-not-fail-on-wrong-tsdatasucc/jds-do-not-fail-on-wrong-tsdatasucc.json || { echo 'mg test failed' ; exit 1; } | ||
|
||
sleep 10 |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
...test/jds-do-not-panic-if-jdc-close-connection/jds-do-not-panic-if-jdc-close-connection.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cd roles | ||
cargo llvm-cov --no-report -p jd_server | ||
|
||
cd ../utils/message-generator/ | ||
cargo build | ||
|
||
RUST_LOG=debug cargo run ../../test/message-generator/test/jds-do-not-panic-if-jdc-close-connection/jds-do-not-panic-if-jdc-close-connection.json || { echo 'mg test failed' ; exit 1; } | ||
|
||
sleep 10 |
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
...tor/test/jds-do-not-stackoverflow-when-no-token/jds-do-not-stackoverflow-when-no-token.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
cd roles | ||
cargo llvm-cov --no-report -p pool_sv2 | ||
cargo llvm-cov --no-report -p jd_client | ||
cargo llvm-cov --no-report -p mining_proxy_sv2 | ||
|
||
cd ../utils/message-generator/ | ||
cargo build | ||
|
||
RUST_LOG=debug cargo run ../../test/message-generator/test/jds-do-not-stackoverflow-when-no-token/jds-do-not-stackoverflow-when-no-token.json || { echo 'mg test failed' ; exit 1; } | ||
|
||
sleep 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
test/message-generator/test/pool-sri-test-1-standard/pool-sri-test-1-standard.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cd roles | ||
cargo llvm-cov --no-report -p pool_sv2 | ||
|
||
cd ../utils/message-generator/ | ||
cargo build | ||
|
||
RUST_LOG=debug cargo run ../../test/message-generator/test/pool-sri-test-1-standard/pool-sri-test-1-standard.json || { echo 'mg test failed' ; exit 1; } | ||
|
||
sleep 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
test/message-generator/test/pool-sri-test-close-channel/pool-sri-test-close-channel.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cd roles | ||
cargo build -p translator_sv2 | ||
|
||
cd ../utils/message-generator/ | ||
cargo build | ||
|
||
RUST_LOG=debug cargo run ../../test/message-generator/test/pool-sri-test-close-channel/pool-sri-test-close-channel.json || { echo 'mg test failed' ; exit 1; } | ||
|
||
sleep 10 |
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
test/message-generator/test/pool-sri-test-extended_0/pool-sri-test-extended_0.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
cd roles | ||
cargo llvm-cov --no-report -p pool_sv2 | ||
|
||
cd ../utils/message-generator/ | ||
cargo build | ||
|
||
RUST_LOG=debug cargo run ../../test/message-generator/test/pool-sri-test-extended_0/pool-sri-test-extended_0.json || { echo 'mg test failed' ; exit 1; } |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
test/message-generator/test/pool-sri-test-extended_1/pool-sri-test-extended_1.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cd roles | ||
cargo llvm-cov --no-report -p pool_sv2 | ||
|
||
cd ../utils/message-generator/ | ||
cargo build | ||
|
||
RUST_LOG=debug cargo run ../../test/message-generator/test/pool-sri-test-extended_1/pool-sri-test-extended_1.json || { echo 'mg test failed' ; exit 1; } | ||
|
||
sleep 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
test/message-generator/test/pool-sri-test-reject-auth/pool-sri-test-reject-auth.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cd roles | ||
cargo llvm-cov --no-report -p pool_sv2 | ||
|
||
cd ../utils/message-generator/ | ||
cargo build | ||
|
||
RUST_LOG=debug cargo run ../../test/message-generator/test/pool-sri-test-reject-auth/pool-sri-test-reject-auth.json || { echo 'mg test failed' ; exit 1; } | ||
|
||
sleep 10 |
Oops, something went wrong.