grntest 1.7.1 → 1.7.3
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 +18 -0
- data/lib/grntest/reporters/benchmark-json-reporter.rb +18 -7
- data/lib/grntest/test-runner.rb +2 -3
- data/lib/grntest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4333e40f40a3b7f0d255906972e5c0d7ba7ca5c64dc9b25067aeb8229b65b621
|
4
|
+
data.tar.gz: 10f51f45c7ef3502666222c5ae9208445a168e5daecf45f703ea7809e5a812b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc5a1b7ca28af7e531f488c6ebe95418e710badf657dc90167dc824b0f9c61a733ece7438c5fe819de818971c6320b806235f75e10ccc948c6d4e9c001a93899
|
7
|
+
data.tar.gz: 30ba97c16f66bd5a1e6ce10a0af01fbd5fce26d3df872362097d815da45b16079a1c47d2a0c839b3cc36588fc9b8e44c8f7758f3dd6e1d47f69f57838c4bd30b
|
data/doc/text/news.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 1.7.3: 2024-02-20
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* reporter: benchmark-json: Added support for omission.
|
8
|
+
|
9
|
+
## 1.7.2: 2024-02-06
|
10
|
+
|
11
|
+
### Improvements
|
12
|
+
|
13
|
+
* arrow: Added support for empty result.
|
14
|
+
|
15
|
+
* reporter: benchmark-json: Added support for reporting memory leak
|
16
|
+
information.
|
17
|
+
|
18
|
+
* reporter: benchmark-json: Added interface and in/out types to
|
19
|
+
benchmark name.
|
20
|
+
|
3
21
|
## 1.7.1: 2024-02-05
|
4
22
|
|
5
23
|
### Improvements
|
@@ -66,21 +66,34 @@ module Grntest
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def on_test_leak(worker, result)
|
69
|
+
output, @output = @output, $stderr
|
70
|
+
begin
|
71
|
+
puts
|
72
|
+
report_test(worker, result)
|
73
|
+
ensure
|
74
|
+
@output = output
|
75
|
+
end
|
69
76
|
end
|
70
77
|
|
71
78
|
def on_test_omission(worker, result)
|
72
79
|
end
|
73
80
|
|
81
|
+
def on_test_omission_suppressed(worker, result)
|
82
|
+
end
|
83
|
+
|
74
84
|
def on_test_no_check(worker, result)
|
75
85
|
end
|
76
86
|
|
77
87
|
def on_test_finish(worker, result)
|
78
88
|
return if result.benchmarks.empty?
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
89
|
+
result.benchmarks.each do |benchmark|
|
90
|
+
print(",") unless @first_benchmark
|
91
|
+
@first_benchmark = false
|
92
|
+
puts
|
93
|
+
name = "#{@tester.interface}: " +
|
94
|
+
"#{@tester.input_type}|#{@tester.output_type}: " +
|
95
|
+
"#{worker.suite_name}/#{result.test_name}"
|
96
|
+
print(<<-JSON.chomp)
|
84
97
|
{
|
85
98
|
"name": #{name.to_json},
|
86
99
|
"run_name": #{benchmark.name.to_json},
|
@@ -93,8 +106,6 @@ module Grntest
|
|
93
106
|
}
|
94
107
|
JSON
|
95
108
|
end
|
96
|
-
print(benchmarks.join(",\n"))
|
97
|
-
@first_benchmark = false
|
98
109
|
end
|
99
110
|
|
100
111
|
def on_suite_finish(worker)
|
data/lib/grntest/test-runner.rb
CHANGED
@@ -714,9 +714,8 @@ http {
|
|
714
714
|
Arrow::BufferInputStream.open(buffer) do |input|
|
715
715
|
while input.tell < content.bytesize
|
716
716
|
reader = Arrow::RecordBatchStreamReader.new(input)
|
717
|
-
|
718
|
-
|
719
|
-
table = Arrow::Table.new(schema, record_batches)
|
717
|
+
table = reader.read_all
|
718
|
+
schema = table.schema
|
720
719
|
unless normalized.empty?
|
721
720
|
normalized << "=" * 40
|
722
721
|
normalized << "\n"
|
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.7.
|
4
|
+
version: 1.7.3
|
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: 2024-02-
|
12
|
+
date: 2024-02-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: diff-lcs
|