|
@@ -1,21 +1,21 @@
|
|
-
|
|
|
|
|
|
+import setup_util
|
|
import subprocess
|
|
import subprocess
|
|
import sys
|
|
import sys
|
|
import time
|
|
import time
|
|
import os
|
|
import os
|
|
|
|
|
|
def start(args, logfile, errfile):
|
|
def start(args, logfile, errfile):
|
|
|
|
+ setup_util.replace_text('scruffy/src/main/scala/scruffy/examples/Test2Endpoint.scala', 'database_host', args.database_host)
|
|
if os.name == 'nt':
|
|
if os.name == 'nt':
|
|
subprocess.check_call('"..\\sbt\\sbt.bat" assembly', shell=True, cwd="scruffy", stderr=errfile, stdout=logfile)
|
|
subprocess.check_call('"..\\sbt\\sbt.bat" assembly', shell=True, cwd="scruffy", stderr=errfile, stdout=logfile)
|
|
else:
|
|
else:
|
|
- subprocess.check_call("../sbt/sbt assembly", shell=True, cwd="scruffy", stderr=errfile, stdout=logfile)
|
|
|
|
|
|
+ subprocess.check_call(args.iroot + "/sbt/bin/sbt assembly", shell=True, cwd="scruffy", stderr=errfile, stdout=logfile)
|
|
|
|
|
|
- subprocess.Popen("java -jar target/scala-2.11/scruffy-benchmark-assembly-1.0.1.jar -Dhostname" + args.database_host,
|
|
|
|
|
|
+ subprocess.Popen("java -jar target/scala-2.11/scruffy-benchmark-assembly-1.0.1.jar -Dhostname=" + args.database_host,
|
|
cwd="scruffy",
|
|
cwd="scruffy",
|
|
shell=True,
|
|
shell=True,
|
|
stderr=errfile,
|
|
stderr=errfile,
|
|
stdout=logfile)
|
|
stdout=logfile)
|
|
- time.sleep(5)
|
|
|
|
return 0
|
|
return 0
|
|
|
|
|
|
def stop(logfile, errfile):
|
|
def stop(logfile, errfile):
|