Mercurial > hg > Database > Christie
changeset 19:0c76ab6b586a
working RemotePutTest by debug.rb
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 21 Jan 2018 23:27:21 +0900 |
parents | b8dc461b29f4 |
children | 7b45ccc0f70e |
files | scripts/debug.rb |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/debug.rb Sun Jan 21 23:27:21 2018 +0900 @@ -0,0 +1,12 @@ +#!/usr/bin/ruby +#./debug.rb ../build/libs/Christie.jar christie.test.Remote.StartRemoteTest 100 + +jar_path = ARGV[0] +class_path = ARGV[1] +loop_num = ARGV[2].to_i +loop_num.times do |i| + system("java -cp #{jar_path} #{class_path} 2>./error_log &") + sleep(1) + system("killall java") + sleep(1) +end