deep_test 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/deep_test/rinda_blackboard.rb +0 -10
- data/lib/deep_test/server.rb +8 -2
- data/lib/deep_test/tuple_space_factory.rb +11 -0
- data/lib/deep_test.rb +1 -0
- metadata +3 -2
data/Rakefile
CHANGED
@@ -36,7 +36,7 @@ Gem::manage_gems
|
|
36
36
|
specification = Gem::Specification.new do |s|
|
37
37
|
s.name = "deep_test"
|
38
38
|
s.summary = "DeepTest runs tests in multiple processes."
|
39
|
-
s.version = "1.0.
|
39
|
+
s.version = "1.0.2"
|
40
40
|
s.author = "anonymous z, Dan Manges, David Vollbracht"
|
41
41
|
s.description = s.summary
|
42
42
|
s.email = "daniel.manges@gmail.com"
|
@@ -21,15 +21,5 @@ module DeepTest
|
|
21
21
|
def write_test(test_case)
|
22
22
|
@tuple_space.write ["run_test", test_case.class.to_s, test_case.method_name]
|
23
23
|
end
|
24
|
-
|
25
|
-
class TupleSpaceFactory
|
26
|
-
def self.tuple_space
|
27
|
-
require "rinda/ring"
|
28
|
-
DRb.start_service
|
29
|
-
ring_server = Rinda::RingFinger.primary
|
30
|
-
ts = ring_server.read([:name, :TupleSpace, nil, nil])[2]
|
31
|
-
Rinda::TupleSpaceProxy.new ts
|
32
|
-
end
|
33
|
-
end
|
34
24
|
end
|
35
25
|
end
|
data/lib/deep_test/server.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
module DeepTest
|
2
2
|
class Server
|
3
|
+
PORT = 6969
|
4
|
+
|
3
5
|
def self.start
|
4
6
|
require 'rinda/ring'
|
5
7
|
require 'rinda/tuplespace'
|
@@ -8,9 +10,13 @@ module DeepTest
|
|
8
10
|
require 'deep_test'
|
9
11
|
DRb.start_service
|
10
12
|
ts = Rinda::TupleSpace.new
|
11
|
-
Rinda::RingServer.new(ts)
|
12
|
-
|
13
|
+
Rinda::RingServer.new(ts, PORT)
|
14
|
+
puts "Started DeepTest service at #{DRb.uri}"
|
13
15
|
DRb.thread.join
|
14
16
|
end
|
15
17
|
end
|
16
18
|
end
|
19
|
+
|
20
|
+
if __FILE__ == $0
|
21
|
+
DeepTest::Server.start
|
22
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module DeepTest
|
2
|
+
class TupleSpaceFactory
|
3
|
+
def self.tuple_space
|
4
|
+
require "rinda/ring"
|
5
|
+
DRb.start_service
|
6
|
+
ts = Rinda::RingFinger.new(['localhost'],DeepTest::Server::PORT).lookup_ring_any
|
7
|
+
puts "Connected to DeepTest server at #{ts.__drburi}"
|
8
|
+
Rinda::TupleSpaceProxy.new ts
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
data/lib/deep_test.rb
CHANGED
@@ -8,6 +8,7 @@ require "deep_test/extensions/testresult"
|
|
8
8
|
require "deep_test/extensions/error"
|
9
9
|
require "deep_test/extensions/object_extension"
|
10
10
|
|
11
|
+
require "deep_test/tuple_space_factory"
|
11
12
|
require "deep_test/rinda_blackboard"
|
12
13
|
require "deep_test/server"
|
13
14
|
require "deep_test/simple_test_blackboard"
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.3
|
|
3
3
|
specification_version: 1
|
4
4
|
name: deep_test
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
7
|
-
date: 2007-09-
|
6
|
+
version: 1.0.2
|
7
|
+
date: 2007-09-07 00:00:00 -04:00
|
8
8
|
summary: DeepTest runs tests in multiple processes.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -39,6 +39,7 @@ files:
|
|
39
39
|
- lib/deep_test/supervised_test_suite.rb
|
40
40
|
- lib/deep_test/supervisor.rb
|
41
41
|
- lib/deep_test/test_task.rb
|
42
|
+
- lib/deep_test/tuple_space_factory.rb
|
42
43
|
- lib/deep_test/worker.rb
|
43
44
|
- lib/deep_test/extensions/error.rb
|
44
45
|
- lib/deep_test/extensions/object_extension.rb
|