Mercurial > hg > Database > Christie
diff scripts/debug.rb @ 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 | |
children |
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