grntest 1.5.1 → 1.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/news.md +28 -0
- data/lib/grntest/executors/base-executor.rb +12 -2
- data/lib/grntest/executors/standard-io-executor.rb +2 -0
- data/lib/grntest/test-runner.rb +10 -0
- data/lib/grntest/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8a09deb6171d6819a7874a580276f5b972859e5d57e5d746759bfbeb54b501b
|
4
|
+
data.tar.gz: 60da288a453817a64a157f3ed82d84745dae567e5a3cea418d2a6d46d930313a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 748cca0d65ac9073708bd5d9c483f8d14e0f592f9ce3e6ef82874af58597e3703e7ee3b328caf2824eea916151cf8b09785a1583d6203ff3bf5f99f7b915dcd5
|
7
|
+
data.tar.gz: debc154f725645857bf626b5b4fb088e8483171473ba0a921bbd3eb458a21fa38a778613c7ca89d5b4634d353329a76893a2cd394ac99b55bbaa0f97575e4efb
|
data/doc/text/news.md
CHANGED
@@ -1,5 +1,33 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 1.5.5: 2022-01-18
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* Added support for normalizing function name.
|
8
|
+
|
9
|
+
## 1.5.4: 2022-01-17
|
10
|
+
|
11
|
+
### Improvements
|
12
|
+
|
13
|
+
* `http`: Added support for long query.
|
14
|
+
|
15
|
+
## 1.5.3: 2021-08-14
|
16
|
+
|
17
|
+
### Improvements
|
18
|
+
|
19
|
+
* `generate-series`: Added support for multi-byte characters.
|
20
|
+
|
21
|
+
## 1.5.2: 2021-08-05
|
22
|
+
|
23
|
+
### Improvements
|
24
|
+
|
25
|
+
* `stdio`: Improved may be slow command processing.
|
26
|
+
|
27
|
+
* `copy-path`: Handled error.
|
28
|
+
|
29
|
+
* `generate-series`: Improved multi threading support.
|
30
|
+
|
3
31
|
## 1.5.1: 2021-07-16
|
4
32
|
|
5
33
|
### Improvements
|
@@ -180,7 +180,14 @@ module Grntest
|
|
180
180
|
end
|
181
181
|
source = resolve_path(Pathname(expand_variables(source)))
|
182
182
|
destination = resolve_path(Pathname(expand_variables(destination)))
|
183
|
-
|
183
|
+
begin
|
184
|
+
FileUtils.cp_r(source.to_s, destination.to_s)
|
185
|
+
rescue SystemCallError => error
|
186
|
+
log_input(line)
|
187
|
+
details = "#{error.class}: #{error.message}"
|
188
|
+
log_error("#|e| [copy-path] failed to copy: #{details}")
|
189
|
+
@context.error
|
190
|
+
end
|
184
191
|
end
|
185
192
|
|
186
193
|
def timeout_value(key, line, input, default)
|
@@ -299,7 +306,7 @@ module Grntest
|
|
299
306
|
|
300
307
|
def execute_directive_generate_series(parser, line, content, options)
|
301
308
|
start, stop, table, template, = options
|
302
|
-
evaluator = TemplateEvaluator.new(template)
|
309
|
+
evaluator = TemplateEvaluator.new(template.force_encoding("UTF-8"))
|
303
310
|
(Integer(start)..Integer(stop)).each_slice(1000) do |range|
|
304
311
|
parser << "load --table #{table}\n"
|
305
312
|
parser << "["
|
@@ -313,7 +320,10 @@ module Grntest
|
|
313
320
|
end
|
314
321
|
record << "\n"
|
315
322
|
record << evaluator.evaluate(i).to_json
|
323
|
+
before = Time.now
|
316
324
|
parser << record
|
325
|
+
elapsed = Time.now - before
|
326
|
+
Thread.pass if elapsed > 1.0
|
317
327
|
end
|
318
328
|
parser << "\n]\n"
|
319
329
|
end
|
@@ -65,10 +65,12 @@ module Grntest
|
|
65
65
|
|
66
66
|
MAY_SLOW_COMMANDS = [
|
67
67
|
"column_create",
|
68
|
+
"delete",
|
68
69
|
"load",
|
69
70
|
"logical_table_remove",
|
70
71
|
"plugin_register",
|
71
72
|
"register",
|
73
|
+
"wal_recover",
|
72
74
|
]
|
73
75
|
def may_slow_command?(command)
|
74
76
|
MAY_SLOW_COMMANDS.include?(command.name)
|
data/lib/grntest/test-runner.rb
CHANGED
@@ -547,6 +547,8 @@ http {
|
|
547
547
|
groonga on;
|
548
548
|
client_max_body_size 500m;
|
549
549
|
}
|
550
|
+
client_header_buffer_size 64k;
|
551
|
+
large_client_header_buffers 4 64k;
|
550
552
|
}
|
551
553
|
}
|
552
554
|
HTTP
|
@@ -733,6 +735,10 @@ http {
|
|
733
735
|
normalized_values = {}
|
734
736
|
message = error["message"]
|
735
737
|
normalized_values["message"] = normalize_error_message(message)
|
738
|
+
function = error["function"]
|
739
|
+
if function
|
740
|
+
normalized_values["function"] = normalize_error_function(function)
|
741
|
+
end
|
736
742
|
file = error["file"]
|
737
743
|
if file
|
738
744
|
normalized_values["file"] = normalize_error_file_path(file)
|
@@ -821,6 +827,10 @@ http {
|
|
821
827
|
end
|
822
828
|
end
|
823
829
|
|
830
|
+
def normalize_error_function(function)
|
831
|
+
function.split("::").last
|
832
|
+
end
|
833
|
+
|
824
834
|
def normalize_error_file_path(path)
|
825
835
|
File.basename(path)
|
826
836
|
end
|
data/lib/grntest/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grntest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-01-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: diff-lcs
|
@@ -270,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
270
270
|
- !ruby/object:Gem::Version
|
271
271
|
version: '0'
|
272
272
|
requirements: []
|
273
|
-
rubygems_version: 3.
|
273
|
+
rubygems_version: 3.4.0.dev
|
274
274
|
signing_key:
|
275
275
|
specification_version: 4
|
276
276
|
summary: Grntest is a testing framework for Groonga. You can write a test for Groonga
|