drntest 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +2 -0
- data/lib/drntest/configuration.rb +2 -0
- data/lib/drntest/engine.rb +13 -6
- data/lib/drntest/test-executor.rb +6 -1
- data/lib/drntest/tester.rb +6 -0
- data/lib/drntest/version.rb +1 -1
- metadata +64 -45
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0547c3f918e801bb27ca905ed0bb4334d9e8d669
|
4
|
+
data.tar.gz: ab15e37a592e5283c6961f8b0ae411b5e4dbb737
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d69cbb5988a4c22afde2c4352fcfc52952ece46bc51c6df1d15d6628e1fcb7ccbf419c5a123924dc9385247bb84b42136b64f6f77817d3ded4f7ab13671654a6
|
7
|
+
data.tar.gz: 02fb1c4d4fb77a75b2fea341dd50f2cfcf190a4a18503b07e8e18418deaae073501c15537b576ff0b4671815100cd46ffbb8a7dfab738d93d37948192b6fde17
|
data/Gemfile
CHANGED
@@ -19,6 +19,7 @@ module Drntest
|
|
19
19
|
attr_accessor :base_path, :engine_config
|
20
20
|
attr_accessor :droonga_engine, :droonga_engine_options
|
21
21
|
attr_accessor :catalog_version
|
22
|
+
attr_accessor :timeout
|
22
23
|
|
23
24
|
def initialize
|
24
25
|
@port = 24224
|
@@ -29,6 +30,7 @@ module Drntest
|
|
29
30
|
@droonga_engine = "droonga-engine"
|
30
31
|
@droonga_engine_options = []
|
31
32
|
@catalog_version = "2"
|
33
|
+
@timeout = 1
|
32
34
|
end
|
33
35
|
|
34
36
|
def suite_path
|
data/lib/drntest/engine.rb
CHANGED
@@ -113,11 +113,11 @@ module Drntest
|
|
113
113
|
*@config.droonga_engine_options,
|
114
114
|
]
|
115
115
|
env = {
|
116
|
-
"
|
116
|
+
"DROONGA_BASE_DIR" => temporary_dir.to_s,
|
117
117
|
}
|
118
118
|
options = {
|
119
119
|
:chdir => temporary_dir.to_s,
|
120
|
-
|
120
|
+
:err => :out,
|
121
121
|
}
|
122
122
|
arguments = [env, *command]
|
123
123
|
arguments << options
|
@@ -134,10 +134,17 @@ module Drntest
|
|
134
134
|
end
|
135
135
|
|
136
136
|
def setup_temporary_dir
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
137
|
+
tmpfs_candidates = [
|
138
|
+
"/dev/shm",
|
139
|
+
"/run/shm",
|
140
|
+
]
|
141
|
+
tmpfs_candidates.each do |tmpfs_candidate|
|
142
|
+
tmpfs = Pathname(tmpfs_candidate)
|
143
|
+
if tmpfs.directory? and tmpfs.writable?
|
144
|
+
FileUtils.rm_rf(temporary_base_dir)
|
145
|
+
FileUtils.ln_s(tmpfs.to_s, temporary_base_dir.to_s)
|
146
|
+
break
|
147
|
+
end
|
141
148
|
end
|
142
149
|
FileUtils.rm_rf(temporary_dir)
|
143
150
|
FileUtils.mkdir_p(temporary_dir)
|
@@ -29,7 +29,12 @@ module Drntest
|
|
29
29
|
def execute
|
30
30
|
catch do |abort_tag|
|
31
31
|
begin
|
32
|
-
|
32
|
+
options = {
|
33
|
+
:tag => @config.tag,
|
34
|
+
:port => @config.port,
|
35
|
+
:timeout => @config.timeout,
|
36
|
+
}
|
37
|
+
Droonga::Client.open(options) do |client|
|
33
38
|
context = Context.new(client, @config, @results, abort_tag)
|
34
39
|
operations.each do |operation|
|
35
40
|
context.execute(operation)
|
data/lib/drntest/tester.rb
CHANGED
@@ -123,6 +123,12 @@ module Drntest
|
|
123
123
|
@suite_pattern = pattern
|
124
124
|
end
|
125
125
|
|
126
|
+
parser.on("--timeout=TIMEOUT", Float,
|
127
|
+
"Wait TIMEOUT seconds for " +
|
128
|
+
"receiving responses from Droonga engine") do |timeout|
|
129
|
+
@config.timeout = timeout
|
130
|
+
end
|
131
|
+
|
126
132
|
parser
|
127
133
|
end
|
128
134
|
|
data/lib/drntest/version.rb
CHANGED
metadata
CHANGED
@@ -1,93 +1,113 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drntest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.1.5
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Droonga Project
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-05-29 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: json
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: yajl-ruby
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
|
-
- -
|
31
|
+
- - '>='
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '0'
|
33
34
|
type: :runtime
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: droonga-client
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
|
-
- -
|
45
|
+
- - '>='
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: 0.1.1
|
44
48
|
type: :runtime
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.1.1
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: bundler
|
49
|
-
requirement:
|
50
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
|
-
- -
|
59
|
+
- - '>='
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0'
|
55
62
|
type: :development
|
56
63
|
prerelease: false
|
57
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
58
69
|
- !ruby/object:Gem::Dependency
|
59
70
|
name: rake
|
60
|
-
requirement:
|
61
|
-
none: false
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
62
72
|
requirements:
|
63
|
-
- -
|
73
|
+
- - '>='
|
64
74
|
- !ruby/object:Gem::Version
|
65
75
|
version: '0'
|
66
76
|
type: :development
|
67
77
|
prerelease: false
|
68
|
-
version_requirements:
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: packnga
|
71
|
-
requirement:
|
72
|
-
none: false
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
73
86
|
requirements:
|
74
|
-
- -
|
87
|
+
- - '>='
|
75
88
|
- !ruby/object:Gem::Version
|
76
89
|
version: '0'
|
77
90
|
type: :development
|
78
91
|
prerelease: false
|
79
|
-
version_requirements:
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
80
97
|
- !ruby/object:Gem::Dependency
|
81
98
|
name: kramdown
|
82
|
-
requirement:
|
83
|
-
none: false
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
84
100
|
requirements:
|
85
|
-
- -
|
101
|
+
- - '>='
|
86
102
|
- !ruby/object:Gem::Version
|
87
103
|
version: '0'
|
88
104
|
type: :development
|
89
105
|
prerelease: false
|
90
|
-
version_requirements:
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
91
111
|
description: ''
|
92
112
|
email:
|
93
113
|
- droonga@groonga.org
|
@@ -101,43 +121,42 @@ files:
|
|
101
121
|
- Gemfile
|
102
122
|
- drntest.gemspec
|
103
123
|
- lib/drntest/test-loader.rb
|
104
|
-
- lib/drntest/
|
105
|
-
- lib/drntest/test-
|
106
|
-
- lib/drntest/
|
107
|
-
- lib/drntest/test-runner.rb
|
124
|
+
- lib/drntest/json-loader.rb
|
125
|
+
- lib/drntest/test-results.rb
|
126
|
+
- lib/drntest/directive.rb
|
108
127
|
- lib/drntest/input-error.rb
|
109
128
|
- lib/drntest/tester.rb
|
129
|
+
- lib/drntest/engine.rb
|
110
130
|
- lib/drntest/version.rb
|
111
|
-
- lib/drntest/
|
112
|
-
- lib/drntest/json-loader.rb
|
113
|
-
- lib/drntest/test-results.rb
|
114
|
-
- lib/drntest/response-normalizer.rb
|
131
|
+
- lib/drntest/test-runner.rb
|
115
132
|
- lib/drntest/configuration.rb
|
133
|
+
- lib/drntest/test-executor.rb
|
134
|
+
- lib/drntest/test-suites-result.rb
|
135
|
+
- lib/drntest/response-normalizer.rb
|
116
136
|
- bin/drntest
|
117
137
|
homepage: https://github.com/droonga/drntest
|
118
138
|
licenses:
|
119
139
|
- GPLv3 or later
|
140
|
+
metadata: {}
|
120
141
|
post_install_message:
|
121
142
|
rdoc_options: []
|
122
143
|
require_paths:
|
123
144
|
- lib
|
124
145
|
required_ruby_version: !ruby/object:Gem::Requirement
|
125
|
-
none: false
|
126
146
|
requirements:
|
127
|
-
- -
|
147
|
+
- - '>='
|
128
148
|
- !ruby/object:Gem::Version
|
129
149
|
version: '0'
|
130
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
|
-
none: false
|
132
151
|
requirements:
|
133
|
-
- -
|
152
|
+
- - '>='
|
134
153
|
- !ruby/object:Gem::Version
|
135
154
|
version: '0'
|
136
155
|
requirements: []
|
137
156
|
rubyforge_project:
|
138
|
-
rubygems_version:
|
157
|
+
rubygems_version: 2.0.14
|
139
158
|
signing_key:
|
140
|
-
specification_version:
|
159
|
+
specification_version: 4
|
141
160
|
summary: Drntest is a testing framework for Droonga. You can write a test for Droonga
|
142
161
|
by writing Droonga commands and expected result.
|
143
162
|
test_files: []
|