mesa_test 0.0.17 → 0.0.18
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/bin/mesa_test +22 -14
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09c46538653cda8c85d7220ff6e0d497b64ad844'
|
4
|
+
data.tar.gz: 6552eb58501b0332208d950853d9d1044ef8b02d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df3e1da87539e138ad83208e2a7368350296ca4ab9c079914f57a6391336a95c3ba429c78f44451580167f54d60dee525e5d84fe8b9d82ba60cf995c285c31d0
|
7
|
+
data.tar.gz: '05479705c0aa5900e125a1c1afad33ec141fcf4e1c9e11b5426aebfb1950346b54f06a0b497be37eaaf9c4fe4f373cbbee72d90400b92a4644e42a395ca1ba75'
|
data/bin/mesa_test
CHANGED
@@ -1,11 +1,19 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
2
|
|
3
|
-
#
|
4
|
-
|
3
|
+
# if true, submit cases to localhost:3000 and load local mesa_test library
|
4
|
+
# rather than system version
|
5
|
+
DEVELOPMENT_MODE = false
|
6
|
+
|
7
|
+
if DEVELOPMENT_MODE
|
8
|
+
require_relative '../lib/mesa_test'
|
9
|
+
else
|
10
|
+
require 'mesa_test'
|
11
|
+
end
|
12
|
+
|
5
13
|
require 'thor'
|
6
14
|
|
7
15
|
class MesaTest < Thor
|
8
|
-
|
16
|
+
DEVELOPMENT_URI = 'http://localhost:3000'.freeze
|
9
17
|
|
10
18
|
desc 'setup [CONFIG_FILE]', 'Setup MesaTestHub config file.'
|
11
19
|
long_desc <<-LONGDESC
|
@@ -30,8 +38,7 @@ class MesaTest < Thor
|
|
30
38
|
#{MesaTestCase.modules.map { |mod| ' ' + mod.to_s }.join(', ')}
|
31
39
|
|
32
40
|
With --diff option, assume the checksums are up-to-date (behave like
|
33
|
-
each_test_run_and_diff),
|
34
|
-
(behave like each_test_run), use --no-diff.
|
41
|
+
each_test_run_and_diff), off by default.
|
35
42
|
|
36
43
|
With --force option, skip confirmation of computer details, assuming values
|
37
44
|
in ~/.mesa_test.yml are correct.
|
@@ -45,7 +52,7 @@ class MesaTest < Thor
|
|
45
52
|
With --submit option, upload results to MESATestHub. By default, this is on.
|
46
53
|
To run without submission, use --no-submit.
|
47
54
|
LONGDESC
|
48
|
-
option :diff, type: :boolean, default:
|
55
|
+
option :diff, type: :boolean, default: false
|
49
56
|
option :force, type: :boolean, aliases: '-f'
|
50
57
|
option :log, type: :boolean, default: true
|
51
58
|
option :module, type: :string, default: :all
|
@@ -80,8 +87,7 @@ class MesaTest < Thor
|
|
80
87
|
detailed in MESA_DIR/star/test_suite/do1_test_source.
|
81
88
|
|
82
89
|
With --diff option, assume the checksums are up-to-date (behave like
|
83
|
-
each_test_run_and_diff),
|
84
|
-
(behave like each_test_run), use --no-diff.
|
90
|
+
each_test_run_and_diff), off by default.
|
85
91
|
|
86
92
|
With --force option, skip confirmation of computer details, assuming values
|
87
93
|
in ~/.mesa_test.yml are correct. Only relevant if --submit option is on
|
@@ -96,7 +102,7 @@ class MesaTest < Thor
|
|
96
102
|
With --submit option, upload results to MESATestHub. By default, this is on.
|
97
103
|
To run without submission, use --no-submit.
|
98
104
|
LONGDESC
|
99
|
-
option :diff, type: :boolean, default:
|
105
|
+
option :diff, type: :boolean, default: false
|
100
106
|
option :force, type: :boolean, aliases: '-f'
|
101
107
|
option :log, type: :boolean, default: true
|
102
108
|
option :module, type: :string, default: :all
|
@@ -209,8 +215,7 @@ class MesaTest < Thor
|
|
209
215
|
author.
|
210
216
|
|
211
217
|
With --diff option, assume the checksums are up-to-date (behave like
|
212
|
-
each_test_run_and_diff),
|
213
|
-
(behave like each_test_run), use --no-diff.
|
218
|
+
each_test_run_and_diff), off by default.
|
214
219
|
|
215
220
|
Use flag --destroy to self destruct MESA_DIR after successful test
|
216
221
|
submission. Essentially does rm -rf MESA_DIR after the test suite. Useful
|
@@ -225,7 +230,7 @@ class MesaTest < Thor
|
|
225
230
|
With --module option, select which module to search through, with the default
|
226
231
|
being "all". Example: --module=star.
|
227
232
|
LONGDESC
|
228
|
-
option :diff, type: :boolean, default:
|
233
|
+
option :diff, type: :boolean, default: false
|
229
234
|
option :destroy, type: :boolean
|
230
235
|
option :log, type: :boolean, default: true
|
231
236
|
option :force, type: :boolean, aliases: '-f'
|
@@ -270,8 +275,11 @@ class MesaTest < Thor
|
|
270
275
|
end
|
271
276
|
|
272
277
|
def create_and_check_submitter(force: false)
|
273
|
-
s =
|
274
|
-
|
278
|
+
s = if DEVELOPMENT_MODE
|
279
|
+
MesaTestSubmitter.new_from_config(base_uri: DEVELOPMENT_URI)
|
280
|
+
else
|
281
|
+
MesaTestSubmitter.new_from_config
|
282
|
+
end
|
275
283
|
unless force
|
276
284
|
s.setup unless s.confirm_computer_data
|
277
285
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mesa_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Wolf
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|