grntest 1.7.5 → 1.7.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9cd8b74ac4dd886a08f1550309a467d95b39f1adc182a915ace5bb10f7c0f78
4
- data.tar.gz: ba6b74681a3a7523d0d48ed298efffb4d4d0fede4c0869401fba949e617f02b4
3
+ metadata.gz: 06a66bab760554a0f1a4ba6698d87c9702ed6abd0fa0d0301634eabd28668c0f
4
+ data.tar.gz: 5ed8466037e39813ffe988dff011cefca9ce3abf688e2f63fd99c2e111daa257
5
5
  SHA512:
6
- metadata.gz: d285a5183996b4390e93dac09e5416fd8f3e5decbadf4b8ed95458534e65cdd1d74b11efa6635d79e3687de7c7a09a83c1c2d2c6471b0455dfead94061158fdb
7
- data.tar.gz: 2fbba81eeb21ebdfdebbcd51d758ad836b54f5017fb27b404025c4d0a930bbf686a71f397e73a0cb66de16c7d84e6231dc3662fc4cd907d201908281f0811494
6
+ metadata.gz: 92e1bcf1a86c228069020bd5453f8ff90e79f7103b83950ca6eeaa8d4b6f7609430a549bf2dd4e224ae474a2e25c4765ce859a0ae74d60fe3c08cfd54f2a1095
7
+ data.tar.gz: ede6349f7555fd317abebf1d5ae7c513a62b12a121f118288d23c62a5564d6b2a18e1f2cbadf478e4516f3130e931196e2b7b1bd51f1a80fb671cf501a8467f1
data/doc/text/news.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # News
2
2
 
3
+ ## 1.7.6: 2024-09-25
4
+
5
+ ### Improvements
6
+
7
+ * `#@require-os`: Added to run tests only when Groonga is built for
8
+ the given OS.
9
+
3
10
  ## 1.7.5: 2024-04-12
4
11
 
5
12
  ### Improvements
@@ -562,6 +562,23 @@ module Grntest
562
562
  end
563
563
  end
564
564
 
565
+ def os
566
+ status_response["os"]
567
+ end
568
+
569
+ def execute_directive_require_os(line, content, options)
570
+ required_os, = options
571
+ if required_os.start_with?("!")
572
+ if required_os[1..-1] == os
573
+ omit("require OS: #{required_os} (#{os})")
574
+ end
575
+ else
576
+ unless required_os == os
577
+ omit("require OS: #{required_os} (#{os})")
578
+ end
579
+ end
580
+ end
581
+
565
582
  def execute_directive(parser, line, content)
566
583
  command, *options = Shellwords.split(content)
567
584
  case command
@@ -627,6 +644,8 @@ module Grntest
627
644
  execute_directive_finish_benchmark(line, content, options)
628
645
  when "require-env"
629
646
  execute_directive_require_env(line, content, options)
647
+ when "require-os"
648
+ execute_directive_require_os(line, content, options)
630
649
  else
631
650
  log_input(line)
632
651
  log_error("#|e| unknown directive: <#{command}>")
@@ -14,5 +14,5 @@
14
14
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
15
 
16
16
  module Grntest
17
- VERSION = "1.7.5"
17
+ VERSION = "1.7.6"
18
18
  end
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.7.5
4
+ version: 1.7.6
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: 2024-04-12 00:00:00.000000000 Z
11
+ date: 2024-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diff-lcs