grntest 1.7.9 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/doc/text/news.md +14 -0
- data/lib/grntest/executors/base-executor.rb +19 -0
- data/lib/grntest/test-runner.rb +4 -4
- 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: 110c03292edb4b2a3dddf379ced6a38a94b5ff65fb5ec42cef130c4815152843
|
4
|
+
data.tar.gz: 50d2467440f83433847a780528c2a03a1506308347b4cb02e3464b54cfb63b4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e477c6a9756a5ad340d343cf1a9068ac72655c8e0360c3abebd604a7afcf9e843d444d529d61d4611d316ce206e3fdde9a16170a54f92fe8c07f46a10419890b
|
7
|
+
data.tar.gz: 8d6f084116ba3536f8747f5a7dc5844ab790bd68de60673edf1e2e637fce45439c6f190cc38229b00e4a3261bb78c533a68a8a4a47807a127888f912f5ff1160
|
data/doc/text/news.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 1.8.1: 2025-02-14
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* `#@require-cpu`: Added to run tests only when Groonga is built for
|
8
|
+
the given CPU architecture.
|
9
|
+
|
10
|
+
## 1.8.0: 2025-01-23
|
11
|
+
|
12
|
+
### Improvements
|
13
|
+
|
14
|
+
* Added support for normalizing units in `index_column_diff`
|
15
|
+
progress log.
|
16
|
+
|
3
17
|
## 1.7.9: 2025-01-23
|
4
18
|
|
5
19
|
### Improvements
|
@@ -581,6 +581,23 @@ module Grntest
|
|
581
581
|
end
|
582
582
|
end
|
583
583
|
|
584
|
+
def cpu
|
585
|
+
status_response["cpu"]
|
586
|
+
end
|
587
|
+
|
588
|
+
def execute_directive_require_cpu(line, content, options)
|
589
|
+
required_cpu, = options
|
590
|
+
if required_cpu.start_with?("!")
|
591
|
+
if required_cpu[1..-1] == cpu
|
592
|
+
omit("require CPU: #{required_cpu} (#{cpu})")
|
593
|
+
end
|
594
|
+
else
|
595
|
+
unless required_cpu == cpu
|
596
|
+
omit("require CPU: #{required_cpu} (#{cpu})")
|
597
|
+
end
|
598
|
+
end
|
599
|
+
end
|
600
|
+
|
584
601
|
def execute_directive(parser, line, content)
|
585
602
|
command, *options = Shellwords.split(content)
|
586
603
|
case command
|
@@ -648,6 +665,8 @@ module Grntest
|
|
648
665
|
execute_directive_require_env(line, content, options)
|
649
666
|
when "require-os"
|
650
667
|
execute_directive_require_os(line, content, options)
|
668
|
+
when "require-cpu"
|
669
|
+
execute_directive_require_cpu(line, content, options)
|
651
670
|
else
|
652
671
|
log_input(line)
|
653
672
|
log_error("#|e| unknown directive: <#{command}>")
|
data/lib/grntest/test-runner.rb
CHANGED
@@ -920,12 +920,12 @@ http {
|
|
920
920
|
|
921
921
|
def normalize_index_column_diff_progress_statistics(statistics)
|
922
922
|
statistics.
|
923
|
-
# 0.
|
924
|
-
gsub(/\d+\.\d+([smhd])/, "0.
|
923
|
+
# 0.04m -> 0.00s
|
924
|
+
gsub(/\d+\.\d+([smhd])/, "0.00s").
|
925
925
|
# 227137.81records/s-> 0.00records/s
|
926
926
|
gsub(/\d+\.\d+records\/s/, "0.00records/s").
|
927
|
-
# 96.
|
928
|
-
gsub(/\d+\.\d+(B|KiB|MiB|GiB)/, "0.
|
927
|
+
# 96.23KiB-> 0.00MiB
|
928
|
+
gsub(/\d+\.\d+(B|KiB|MiB|GiB)/, "0.00MiB")
|
929
929
|
end
|
930
930
|
|
931
931
|
def normalize_error_function(function)
|
data/lib/grntest/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grntest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
8
|
- Haruka Yoshihara
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: diff-lcs
|