# HG changeset patch # User Nozomi Teruya # Date 1516544841 -32400 # Node ID 0c76ab6b586a0244372e2107e73237139bd3463d # Parent b8dc461b29f45434396e8860cfe908082aa385bd working RemotePutTest by debug.rb diff -r b8dc461b29f4 -r 0c76ab6b586a scripts/debug.rb --- /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