annotate scripts/debug.rb @ 223:1c37472fc00d

add catch command from editors
author ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
date Thu, 28 Nov 2019 15:12:37 +0900
parents 0c76ab6b586a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
0c76ab6b586a working RemotePutTest by debug.rb
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #!/usr/bin/ruby
0c76ab6b586a working RemotePutTest by debug.rb
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 #./debug.rb ../build/libs/Christie.jar christie.test.Remote.StartRemoteTest 100
0c76ab6b586a working RemotePutTest by debug.rb
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
0c76ab6b586a working RemotePutTest by debug.rb
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 jar_path = ARGV[0]
0c76ab6b586a working RemotePutTest by debug.rb
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 class_path = ARGV[1]
0c76ab6b586a working RemotePutTest by debug.rb
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 loop_num = ARGV[2].to_i
0c76ab6b586a working RemotePutTest by debug.rb
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 loop_num.times do |i|
0c76ab6b586a working RemotePutTest by debug.rb
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 system("java -cp #{jar_path} #{class_path} 2>./error_log &")
0c76ab6b586a working RemotePutTest by debug.rb
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 sleep(1)
0c76ab6b586a working RemotePutTest by debug.rb
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 system("killall java")
0c76ab6b586a working RemotePutTest by debug.rb
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 sleep(1)
0c76ab6b586a working RemotePutTest by debug.rb
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 end