funit 0.12.3 → 0.12.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d0c1b7e86685588f2c956c94b7db107ad3e5b701
4
- data.tar.gz: d67d36f40691f235e6245f4505bad8dcb8400550
3
+ metadata.gz: 6d74c93567870494e9b04d12e8f533114cadc706
4
+ data.tar.gz: 08637a63d4b1b00c49ab4e4fbc5b77e2a88cc66f
5
5
  SHA512:
6
- metadata.gz: 737765bd524762b7e426851d1cb0108b8d8a0e354c6de3868b006390754fcbb9092246e230436d675e17814679f9074a49c8a8248410c09226591626039334ce
7
- data.tar.gz: 86fc8af4c54a5d62ff3c9412472cc46a8516b97b7d68faf707032155cb0b70fc5eb333699b29d3eaa4ce2feb933b02b05a42423ea381eb968a7e03047b710a2a
6
+ metadata.gz: fb0ed7e3fc4f1e607295ebdeee6af4b3cd902d2c856d8f38a04e4b33b087e710eb6f9cde87e44ff876ce902d6ead8ccaf668afdce11529a64c63e9bafe331bd3
7
+ data.tar.gz: 4dafe87d2dbe286bdacc5c3b21dc511c9f6a5e5416e30dea85429bc44e84c100c11314c67a34061ff3720ce312aa952113aabf3a01e34811b0e73380ea4073f3
@@ -1,3 +1,8 @@
1
+ === 0.12.4 / 2016-2-05
2
+
3
+ * 1 minor enhancement
4
+ * Enable users to specify commandline arguments to make command (.e.g. "-j") via the MAKE_OPTS env variable
5
+
1
6
  === 0.12.3 / 2016-2-05
2
7
 
3
8
  * 1 minor enhancement
@@ -91,7 +91,7 @@ these directories can be found in your Rubygems library directory, e.g., <tt>/us
91
91
  * Set FC environment variable to point to a Fortran compiler:
92
92
  * <tt>export FC=/path/of/Fortran/compiler</tt> (sh)
93
93
  * <tt>setenv FC /path/of/Fortran/compiler</tt> (csh)
94
- * Other influential environment variables: FCFLAGS and LDFLAGS
94
+ * Other influential environment variables: FCFLAGS, LDFLAGS, and MAKE_OPTS
95
95
 
96
96
  == LICENSE:
97
97
 
data/bin/funit CHANGED
@@ -47,6 +47,7 @@ OptionParser.new do |opts|
47
47
 
48
48
  opts.on_tail("-h", "--help", "Detailed overview of funit options") do
49
49
  puts opts
50
+ Funit::print_env_flags
50
51
  exit
51
52
  end
52
53
 
@@ -14,7 +14,7 @@ require 'fileutils'
14
14
 
15
15
  module Funit
16
16
 
17
- VERSION = '0.12.3'
17
+ VERSION = '0.12.4'
18
18
 
19
19
  ##
20
20
  # run all tests
@@ -74,6 +74,26 @@ but for some such as Sun's f95 compiler you will need: -M
74
74
  exit
75
75
  end
76
76
  end
77
+
78
+ def print_env_flags
79
+ puts <<-EOF
80
+
81
+ Some influential environment variables:
82
+
83
+ FC fortran compiler command
84
+ FCFLAGS fortran compiler flags
85
+ LDFLAGS linker flags
86
+
87
+ CC C compiler command
88
+ CFLAGS C compiler flags
89
+
90
+ CXX C++ compiler command
91
+ CXXFLAGS C++ compiler flags
92
+
93
+ MAKE_OPTS make commandline options (e.g. "-j")
94
+
95
+ EOF
96
+ end
77
97
  end
78
98
 
79
99
  #--
@@ -133,7 +133,8 @@ module Funit
133
133
 
134
134
  File.open("makeTestRunner", "w") {|file| file.puts MAKEFILE.result(binding)}
135
135
 
136
- compile = "make -f makeTestRunner"
136
+ make_options = ENV['MAKE_OPTS']
137
+ compile = "make #{make_options} -f makeTestRunner"
137
138
 
138
139
  raise "Compile failed." unless system compile
139
140
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: funit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.3
4
+ version: 0.12.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen Bibb
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2016-02-05 00:00:00.000000000 Z
15
+ date: 2016-02-11 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: fortran