• R/O
  • HTTP
  • SSH
  • HTTPS

ruby-gtk3: コミット

Ruby GTK3移行後のメインリポジトリ


コミットメタ情報

リビジョンd824121a40ba9b54fd0737339cc234cf84d09643 (tree)
日時2016-05-05 14:30:58
作者Shyouzou Sugitani <shy@user...>
コミッターShyouzou Sugitani

ログメッセージ

update tests(8)

変更サマリ

差分

--- a/test/test-update.rb
+++ b/test/test-update.rb
@@ -1,21 +1,19 @@
1-require "ninix/update"
1+require_relative "../lib/ninix/update"
22
33 module NinixTest
44
55 class UpdateTest
66
7- def initialize
7+ def initialize(ghostdir, homeurl)
88 update = Update::NetworkUpdate.new
99 update.set_responsible(self)
10- homeurl = "http://www.aquadrop.sakura.ne.jp/shizuku/"
11- ghostdir = "/home/shy/TEST/ghost/shizuku"
12- update.start(homeurl, ghostdir, timeout=60)
10+ update.start(homeurl, ghostdir, :timeout => 60)
1311 while true
1412 state = update.state
1513 s = Time.now.to_i
1614 code = update.run()
1715 e = Time.now.to_i
18- delta = e - s
16+ delta = (e - s)
1917 if delta > 0.1
2018 print('Warning: state = ', state.to_i, ' (', delta.to_f, ' sec)', "\n")
2119 end
@@ -46,4 +44,10 @@ module NinixTest
4644 end
4745 end
4846
49-NinixTest::UpdateTest.new
47+#homeurl = "http://aquadrop.sakura.ne.jp/ghost/shizuku/"
48+#ghostdir = "/home/shy/TEST/ghost/shizuku"
49+homeurl = "http://unvollendet.hp.infoseek.co.jp/ukagaka/kousin2/"
50+ghostdir = "home/shy/TEST/ghost/Taromati"
51+#homeurl = "http://rking.x0.com/ukagaka_up/bth5/"
52+#ghostdir = "home/shy/TEST/ghost/BTHver.5"
53+NinixTest::UpdateTest.new(ghostdir, homeurl)
旧リポジトリブラウザで表示