-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·15 lines (15 loc) · 990 Bytes
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
set -e
GOOS=linux GOARCH=arm GOARM=7 go build -o build/ai-linux-arm
set +e
ssh -i ../keys/id_rsa_openssh [email protected] "killall -9 ai-linux-arm"
ssh -i ../keys/id_rsa_openssh [email protected] "rm -fr /monad/ai/*"
ssh -i ../keys/id_rsa_openssh [email protected] "mkdir -p /monad/ai/"
ssh -i ../keys/id_rsa_openssh [email protected] "mkdir -p /monad/led_ctrl/"
set -e
scp -i ../keys/id_rsa_openssh ./build/ai-linux-arm [email protected]:/monad/ai/ai-linux-arm
scp -i ../keys/id_rsa_openssh ./bits/test5.bit [email protected]:/monad/led_ctrl/R2.bit
scp -i ../keys/id_rsa_openssh ./test_0001.hex [email protected]:/monad/ai/test_0001.hex
scp -i ../keys/id_rsa_openssh ./bits/f13.bit [email protected]:/monad/ai/ai.bit
# scp -i ../keys/id_rsa_openssh ./bits/i37.bit [email protected]:/monad/ai/ai.bit
scp -i ../keys/id_rsa_openssh ./test_launch.sh [email protected]:/monad/ai/test_launch.sh
ssh -i ../keys/id_rsa_openssh [email protected] "sh /monad/ai/test_launch.sh"