mesa_test 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/mesa_test +1 -1
  3. data/lib/mesa_test.rb +7 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07ccfc0e4c584027fc225d966525a3c0ec5828b0
4
- data.tar.gz: 4e86c0eef7e1aea08a73ca250f86a4798a1a9c24
3
+ metadata.gz: 540973afddd4733b85a567bb37416823fae26c5f
4
+ data.tar.gz: eaf1c62b824472a228ab2da851b910e8ec1c7f7e
5
5
  SHA512:
6
- metadata.gz: fe415c7e0fded007d7892b2fe4c8149e1ae9be189aaf0c458e2e6870d338c0d200c7692f6d0552d937b2b5d069b9f51fa16cb6427f881352a720cf3191e83751
7
- data.tar.gz: c2b84006700826d62214086a68218d886c703aab6354c9d30ccfdb983e4894c25a325e01644a887fb7f0ec56492c3babb2ee75080c1d78fcdcdd282ebf5b0821
6
+ metadata.gz: 2fb1b36f2ce88ffa6b928e8b48a2b41533ffac19b764493113259582d72e4695e81014bf353f7b4049f8c6ce454be6c7d042b6f89b0267a29bbb856a20356b85
7
+ data.tar.gz: 8d398c50111b5358f4bdf63c3fd03b308ff38afa2fb536b6487c8c457f847b838e8be7c3b3b83886de94323b2d793fec259284a216388ad171f90fc82f377bb6
data/bin/mesa_test CHANGED
@@ -1,6 +1,6 @@
1
1
  #! /usr/bin/env ruby
2
2
 
3
- require 'mesa_test'
3
+ require_relative '../lib/mesa_test'
4
4
  require 'thor'
5
5
 
6
6
  class MesaTest < Thor
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=false)
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
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-03 00:00:00.000000000 Z
11
+ date: 2017-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: os