funit 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,13 @@
1
+ === 0.9.1 / 2006-08-20
2
+
3
+ * 1 minor enhancement
4
+ * Stripped './' path prefixes and '\' continuations to appease windoze
5
+
6
+ === 0.9.0 / 2006-07-26
7
+
8
+ * 1 minor enhancement
9
+ * Extracted fortran dependency engine -- see fortran gem.
10
+
1
11
  === 0.1.3 / 2006-06-21
2
12
 
3
13
  * 1 bug fix
data/Rakefile CHANGED
@@ -8,14 +8,14 @@ require 'funit'
8
8
 
9
9
  Hoe.new('funit', Funit::VERSION) do |p|
10
10
  p.rubyforge_name = 'nasarb'
11
- p.extra_deps << [ 'fortran', '>= 1.0.0' ]
11
+ p.extra_deps << [ 'fortran', '>= 1.0.1' ]
12
12
  p.author = ['Karen Bibb','Bil Kleb','Beth Lee-Rausch','Mike Park','Bill Wood']
13
13
  p.email = 'funit-support@rubyforge.org'
14
14
  p.summary = 'A Fortran unit testing framework.'
15
15
  p.description = p.paragraphs_of('README.txt', 2..3).join("\n\n")
16
16
  p.url = p.paragraphs_of('README.txt', 1).first.gsub(/^\* /, '').split(/\n/)
17
17
  p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
18
- p.remote_rdoc_dir = '' # release webpages to root (otherwise dropped in rubyforge_name subdir)
19
18
  p.clean_globs.concat %w( **/*_fun.f90 examples/**/TestRunner* **/*.o **/*.mod **/*.MOD )
20
- p.rsync_args << ' --exclude=statsvn/'
21
19
  end
20
+
21
+ # vim: syntax=Ruby
@@ -9,7 +9,10 @@ require 'fortran'
9
9
 
10
10
  module Funit
11
11
 
12
- VERSION = '0.9.0'
12
+ ##
13
+ # the version of this fUnit
14
+
15
+ VERSION = '0.9.1'
13
16
 
14
17
  ##
15
18
  # run all tests
@@ -19,7 +22,7 @@ module Funit
19
22
  write_test_runner( test_suites = parse_command_line )
20
23
  test_suites.each{ |test_suite| TestSuite.new test_suite }
21
24
  compile_tests test_suites
22
- raise "TestRunner failed to execute." unless system './TestRunner'
25
+ raise "TestRunner failed to execute." unless system "env PATH='.' TestRunner"
23
26
  end
24
27
 
25
28
  end
@@ -29,7 +29,7 @@ module Funit
29
29
  }.gsub(/^/,' '), nil, '<>' # turn off newlines due to <%%>
30
30
 
31
31
  def requested_modules(module_names)
32
- if (module_names.empty?)
32
+ if module_names.empty?
33
33
  module_names = Dir["*.fun"].each{ |mod| mod.chomp! ".fun" }
34
34
  end
35
35
  module_names
@@ -49,13 +49,13 @@ module Funit
49
49
 
50
50
  module_names.each do |mod|
51
51
  unless funit_exists?(mod)
52
- error_message = <<-FUNITDOESNOTEXIST
52
+ error_message = <<-FUNIT_DOES_NOT_EXIST
53
53
  Error: could not find test suite #{mod}.fun
54
54
  Test suites available in this directory:
55
55
  #{requested_modules([]).join(' ')}
56
56
 
57
57
  Usage: #{File.basename $0} [test names (w/o .fun suffix)]
58
- FUNITDOESNOTEXIST
58
+ FUNIT_DOES_NOT_EXIST
59
59
  raise error_message
60
60
  end
61
61
  end
@@ -82,7 +82,7 @@ module Funit
82
82
  puts "locating associated source files and sorting for compilation"
83
83
  required_sources = dependencies.required_source_files('TestRunner.f90')
84
84
 
85
- puts compile = "#{ENV['FC']} #{ENV['FCFLAGS']} -o TestRunner \\\n #{required_sources.join(" \\\n ")}"
85
+ puts compile = "#{ENV['FC']} #{ENV['FCFLAGS']} -o TestRunner #{required_sources.join(' ')}"
86
86
 
87
87
  raise "Compile failed." unless system compile
88
88
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: funit
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.9.0
7
- date: 2007-08-02 00:00:00 -04:00
6
+ version: 0.9.1
7
+ date: 2007-08-20 00:00:00 -04:00
8
8
  summary: A Fortran unit testing framework.
9
9
  require_paths:
10
10
  - lib
@@ -60,9 +60,9 @@ files:
60
60
  - utils/funit-mode.el
61
61
  test_files:
62
62
  - test/test_compiler.rb
63
- - test/test_testsuite.rb
64
- - test/test_funit.rb
65
63
  - test/test_functions.rb
64
+ - test/test_funit.rb
65
+ - test/test_testsuite.rb
66
66
  rdoc_options:
67
67
  - --main
68
68
  - README.txt
@@ -85,7 +85,7 @@ dependencies:
85
85
  requirements:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
- version: 1.0.0
88
+ version: 1.0.1
89
89
  version:
90
90
  - !ruby/object:Gem::Dependency
91
91
  name: hoe
@@ -94,5 +94,5 @@ dependencies:
94
94
  requirements:
95
95
  - - ">="
96
96
  - !ruby/object:Gem::Version
97
- version: 1.2.2
97
+ version: 1.3.0
98
98
  version: