From 3fff6023602822531efdae30bc8ebf862967f1ef Mon Sep 17 00:00:00 2001 From: Friedrich Beckmann Date: Mon, 25 Jul 2022 17:55:39 +0200 Subject: Initial Commit --- VexRiscv/src/test/python/gcloud/remoteTest.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 VexRiscv/src/test/python/gcloud/remoteTest.py (limited to 'VexRiscv/src/test/python/gcloud/remoteTest.py') diff --git a/VexRiscv/src/test/python/gcloud/remoteTest.py b/VexRiscv/src/test/python/gcloud/remoteTest.py new file mode 100755 index 0000000..37bd029 --- /dev/null +++ b/VexRiscv/src/test/python/gcloud/remoteTest.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +from os import system +from sys import argv + +from gcloud import GCInstance + +gci = GCInstance("vexriscv") +#gci.create("n1-standard-1") +gci.create("n1-highcpu-8") +gci.start() +gci.stopHours(20) +gci.stopScript("src/test/python/gcloud/stopScript.sh") + +gci.local("rm -rf archive.tar.gz; git ls-files -z | xargs -0 tar -czf archive.tar.gz") +gci.localToRemote("archive.tar.gz", "") +gci.local("cd ../SpinalHDL; rm -rf spinal.tar.gz; git ls-files -z | xargs -0 tar -czf spinal.tar.gz") +gci.localToRemote("../SpinalHDL/spinal.tar.gz", "") +gci.localToRemote("src/test/python/gcloud/run.sh", "") +gci.remote("rm -rf run.txt; setsid nohup sh run.sh &> run.txt") + +#setsid nohup (sbt test;sudo poweroff) &> sbtTest.txt -- cgit v1.2.3