* Update Makefile for new tests Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>pull/3404/head
parent
c0335c27b4
commit
28a72f4aee
@ -0,0 +1,29 @@ |
|||||||
|
#!/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" \ |
||||||
|
-p 9500:9500 -p 9501:9501 -p 9599:9599 -p 9598:9598 -p 9799:9799 -p 9798:9798 -p 9899:9899 -p 9898:9898 \ |
||||||
|
-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 |
||||||
|
|
Loading…
Reference in new issue