test_bench-executable 3.0.0.0 → 3.0.1.0
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/executables/bench +1 -1
- data/lib/test_bench/executable/parse_arguments.rb +10 -3
- data/lib/test_bench/executable.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 99f7c58efd64a6d3e10b8c74178a3d6b679cbdddf440b098a419deab9414701b
|
|
4
|
+
data.tar.gz: 116864b13a2df5e948ff1a0503278e8d6ad77804856b13f3a917a6eef6088bb9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7dc73a804b876e21b921ca20731a420fecde5de9af6383c182b15cdf99318f66918c1056dfa6a1c92239598d3f0a281a75979ba606acab0975ec4628c8fa1e5a
|
|
7
|
+
data.tar.gz: e4e045ebb595ea6ef1504144310af15f38ba0f38dc50a192a4f49b80e4cbeacdd4b14b369b190dd44d8650d77a4ad9599018366130b2231f0691546c3cb1ccfa
|
data/executables/bench
CHANGED
|
@@ -27,6 +27,12 @@ module TestBench
|
|
|
27
27
|
arguments ||= ::ARGV
|
|
28
28
|
env ||= ::ENV
|
|
29
29
|
|
|
30
|
+
options_env_var = env['TEST_BENCH_OPTIONS']
|
|
31
|
+
if not options_env_var.nil?
|
|
32
|
+
env_arguments = Shellwords.split(options_env_var)
|
|
33
|
+
arguments.unshift(*env_arguments)
|
|
34
|
+
end
|
|
35
|
+
|
|
30
36
|
instance = new(arguments)
|
|
31
37
|
|
|
32
38
|
instance.env = env
|
|
@@ -89,9 +95,9 @@ module TestBench
|
|
|
89
95
|
].compact.join(':')
|
|
90
96
|
|
|
91
97
|
when '-d', '--detail'
|
|
92
|
-
env['
|
|
98
|
+
env['TEST_BENCH_DETAIL'] = 'on'
|
|
93
99
|
when '-D', '--no-detail'
|
|
94
|
-
env['
|
|
100
|
+
env['TEST_BENCH_DETAIL'] = 'off'
|
|
95
101
|
|
|
96
102
|
when '--device'
|
|
97
103
|
device = require_next_argument(switch)
|
|
@@ -202,11 +208,12 @@ The following environment variables can also control execution:
|
|
|
202
208
|
TEST_BENCH_STRICT See --strict
|
|
203
209
|
TEST_BENCH_RANDOM_SEED See --random-seed
|
|
204
210
|
TEST_BENCH_FILTER_BACKTRACE_PATTERN See --filter-backtrace
|
|
205
|
-
|
|
211
|
+
TEST_BENCH_DETAIL See --detail
|
|
206
212
|
TEST_BENCH_OUTPUT_DEVICE See --device
|
|
207
213
|
TEST_BENCH_OUTPUT_LEVEL See --output-level
|
|
208
214
|
TEST_BENCH_OUTPUT_STYLING See --output-styling
|
|
209
215
|
TEST_BENCH_DEFAULT_TEST_PATH Specifies default path
|
|
216
|
+
TEST_BENCH_OPTIONS Evaluated as command line arguments similar to RUBYOPT
|
|
210
217
|
|
|
211
218
|
TEXT
|
|
212
219
|
exit(true)
|