benchcc 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/benchcc/compiler.rb +1 -0
- data/lib/benchcc/version.rb +1 -1
- data/spec/compiler_spec.rb +2 -2
- 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: 1f7818480339895167b048d89adba8d5200fbe59
|
4
|
+
data.tar.gz: ffa04e7dbead8b7f554c07a5deb1bdda8d8b1b05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47b29699c551498671a150ec4e84c33139e62a6f36bfeafec184bb44e1c1ca9b23f11da8abdff3c9f642c9683ac4db7c5c9fdd0ebcf9724cf9909fcf41405fce
|
7
|
+
data.tar.gz: c6f5095ca0094781c317b1d3997c300fe75202e2b5220c727a71b5afd91ced04e77141d619e7f1b44e72b0dc4be359485ef3983c57116f018f3ad0c41aee2e9c
|
data/lib/benchcc/compiler.rb
CHANGED
@@ -17,6 +17,7 @@ module Benchcc
|
|
17
17
|
def call(input_file:, features:, compiler_executable:, compiler_options:,
|
18
18
|
compilation_timeout:, execution_timeout:)
|
19
19
|
stats = {}
|
20
|
+
input_file = Pathname.new(input_file)
|
20
21
|
Dir.mktmpdir do |tmp_dir|
|
21
22
|
if features.include?(:compilation_time)
|
22
23
|
compiler_options << '-ftime-report'
|
data/lib/benchcc/version.rb
CHANGED
data/spec/compiler_spec.rb
CHANGED
@@ -16,7 +16,7 @@ require 'rspec'
|
|
16
16
|
it('fails cleanly on invalid input') {
|
17
17
|
expect {
|
18
18
|
@cc.call(
|
19
|
-
input_file: @invalid,
|
19
|
+
input_file: @invalid.to_s,
|
20
20
|
features: [],
|
21
21
|
compiler_executable: executable,
|
22
22
|
compiler_options: [],
|
@@ -29,7 +29,7 @@ require 'rspec'
|
|
29
29
|
it('fails cleanly on runtime error') {
|
30
30
|
expect {
|
31
31
|
@cc.call(
|
32
|
-
input_file: @invalid_runtime,
|
32
|
+
input_file: @invalid_runtime.to_s,
|
33
33
|
features: [:execution_time],
|
34
34
|
compiler_executable: executable,
|
35
35
|
compiler_options: [],
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: benchcc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Louis Dionne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gnuplot
|