mesa_test 0.0.4 → 0.0.5
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 +1 -1
- data/lib/mesa_test.rb +7 -1
- 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: 540973afddd4733b85a567bb37416823fae26c5f
|
4
|
+
data.tar.gz: eaf1c62b824472a228ab2da851b910e8ec1c7f7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fb1b36f2ce88ffa6b928e8b48a2b41533ffac19b764493113259582d72e4695e81014bf353f7b4049f8c6ce454be6c7d042b6f89b0267a29bbb856a20356b85
|
7
|
+
data.tar.gz: 8d398c50111b5358f4bdf63c3fd03b308ff38afa2fb536b6487c8c457f847b838e8be7c3b3b83886de94323b2d793fec259284a216388ad171f90fc82f377bb6
|
data/bin/mesa_test
CHANGED
data/lib/mesa_test.rb
CHANGED
@@ -229,7 +229,10 @@ e-mail and password will be stored in plain text.
|
|
229
229
|
passed: test_case.passed?,
|
230
230
|
compiler: compiler,
|
231
231
|
compiler_version: compiler_version,
|
232
|
+
platform_version: platform_version,
|
232
233
|
omp_num_threads: test_case.test_omp_num_threads,
|
234
|
+
success_type: test_case.success_type,
|
235
|
+
failure_type: test_case.failure_type
|
233
236
|
}
|
234
237
|
|
235
238
|
# enter in test-specific data
|
@@ -261,7 +264,7 @@ e-mail and password will be stored in plain text.
|
|
261
264
|
# returns true if the id is in the returned JSON (indicating success)
|
262
265
|
# otherwise returns false (maybe failed in authorization or in finding
|
263
266
|
# computer or test case) No error thrown for failure, though.
|
264
|
-
def submit(test_case, verbose=
|
267
|
+
def submit(test_case, verbose=true)
|
265
268
|
uri = URI.parse(base_uri + '/test_instances/submit.json')
|
266
269
|
https = Net::HTTP.new(uri.hostname, uri.port)
|
267
270
|
https.use_ssl = true if base_uri.include? 'https'
|
@@ -270,6 +273,9 @@ e-mail and password will be stored in plain text.
|
|
270
273
|
initheader = {'Content-Type' => 'application/json'})
|
271
274
|
request.body = submit_params(test_case).to_json
|
272
275
|
|
276
|
+
puts "\n" if verbose
|
277
|
+
puts JSON.load(request.body).to_hash if verbose
|
278
|
+
|
273
279
|
response = https.request request
|
274
280
|
puts JSON.load(response.body).to_hash if verbose
|
275
281
|
not response.kind_of? Net::HTTPUnprocessableEntity
|
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.5
|
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-11-
|
11
|
+
date: 2017-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: os
|