grntest 1.8.0 → 1.8.2
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 +9 -5
- 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: 2bca6e501fbc9b788da3a3e663cc269a6477e48744e69fda39a0a3ffb8f1a515
|
4
|
+
data.tar.gz: face903a6607cb7c2b0c4d62183b46f89049ff4227abb613bd3b6c46377468cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e83b661800a4d842e7e9c6b8cde20e1d0cc552207c95f10b3114fa58a9d7a5d479ed181589de9e0e10b192587862c408c3f6576c7fccc8e97d91a8610966626
|
7
|
+
data.tar.gz: 60c840806afb0fa88c0662cb3ef63c5ffc8e413bad33abe9a8b24a2b36868304536826b913119b50d4ad536df5fd5f761515c264a13f5b4bc6df2b0a1a09f3cb
|
data/doc/text/news.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 1.8.2: 2025-02-18
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* Changed not to terminate if there is an exception during testing.
|
8
|
+
* Retry by `--n-retries` is now available even when an exception occurs.
|
9
|
+
|
10
|
+
## 1.8.1: 2025-02-14
|
11
|
+
|
12
|
+
### Improvements
|
13
|
+
|
14
|
+
* `#@require-cpu`: Added to run tests only when Groonga is built for
|
15
|
+
the given CPU architecture.
|
16
|
+
|
3
17
|
## 1.8.0: 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
@@ -210,11 +210,15 @@ module Grntest
|
|
210
210
|
|
211
211
|
catch do |tag|
|
212
212
|
context.abort_tag = tag
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
213
|
+
begin
|
214
|
+
case @tester.interface
|
215
|
+
when "stdio"
|
216
|
+
run_groonga_stdio(context, &block)
|
217
|
+
when "http"
|
218
|
+
run_groonga_http(context, &block)
|
219
|
+
end
|
220
|
+
rescue => error
|
221
|
+
$stderr.puts("#{error.class}: #{error}")
|
218
222
|
end
|
219
223
|
end
|
220
224
|
end
|
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.8.
|
4
|
+
version: 1.8.2
|
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-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: diff-lcs
|