* Make debug.sh build dynamically for faster iteration * Refactor deploy.sh build trigger * Add go test script to test within docker imagepull/3237/head
parent
bb96d8e73f
commit
0e94a927e8
@ -0,0 +1,5 @@ |
|||||||
|
#!/usr/bin/env bash |
||||||
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" |
||||||
|
bash "$DIR/kill_node.sh" |
||||||
|
docker pull harmonyone/localnet-test |
||||||
|
docker run -it --expose 9000-9999 -v "$DIR/../:/go/src/github.com/harmony-one/harmony" harmonyone/localnet-test |
@ -0,0 +1,27 @@ |
|||||||
|
#!/usr/bin/env bash |
||||||
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" |
||||||
|
bash "$DIR/kill_node.sh" |
||||||
|
|
||||||
|
docker_name="harmony-localnet-test" |
||||||
|
|
||||||
|
case ${1} in |
||||||
|
run) |
||||||
|
docker pull harmonyone/localnet-test |
||||||
|
docker rm "$docker_name" |
||||||
|
docker run -it --name "$docker_name" --expose 9000-9999 -v "$DIR/../:/go/src/github.com/harmony-one/harmony" harmonyone/localnet-test -n -k |
||||||
|
;; |
||||||
|
attach) |
||||||
|
docker exec -it "$docker_name" /bin/bash |
||||||
|
;; |
||||||
|
*) |
||||||
|
echo " |
||||||
|
Node API tests |
||||||
|
|
||||||
|
Param: Help: |
||||||
|
run Run the Node API tests |
||||||
|
attach Attach onto the Node API testing docker image for inspection |
||||||
|
" |
||||||
|
exit 0 |
||||||
|
;; |
||||||
|
esac |
||||||
|
|
@ -1,6 +1,8 @@ |
|||||||
#!/usr/bin/env bash |
#!/usr/bin/env bash |
||||||
|
|
||||||
./test/kill_node.sh |
./test/kill_node.sh |
||||||
rm -rf tmp_log* |
rm -rf tmp_log* |
||||||
rm *.rlp |
rm *.rlp |
||||||
rm -rf .dht* |
rm -rf .dht* |
||||||
./test/deploy.sh -D 600000 ./test/configs/local-resharding.txt |
scripts/go_executable_build.sh -S || exit 1 # dynamic builds are faster for debug iteration... |
||||||
|
./test/deploy.sh -B -D 600000 ./test/configs/local-resharding.txt |
||||||
|
@ -0,0 +1,4 @@ |
|||||||
|
#!/usr/bin/env bash |
||||||
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" |
||||||
|
docker pull harmonyone/localnet-test |
||||||
|
docker run -it -v "$DIR/../:/go/src/github.com/harmony-one/harmony" harmonyone/localnet-test -- -g |
Loading…
Reference in new issue