/[pdpsoft]/trunk/grid-mw-security/ees/spec/configs_spec.rb
ViewVC logotype

Contents of /trunk/grid-mw-security/ees/spec/configs_spec.rb

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1259 - (show annotations) (download) (as text)
Wed Dec 9 14:13:11 2009 UTC (12 years, 1 month ago) by aramv
File MIME type: application/x-ruby
File size: 582 byte(s)
Fixed silly bug in pdl parser. Updated Rspec test
1 #!/bin/env ruby
2
3 test_bin = "/home/aczid/workspace/grid-mw-security/ees/src/.libs/test_app"
4 test_configs = "/home/aczid/workspace/grid-mw-security/ees/test_configs"
5
6 describe test_bin do
7 Dir.foreach(test_configs){|file|
8 unless file.match(/^\..*/)
9 command = "valgrind #{test_bin} #{File.join(test_configs,file)} 2&1> /dev/null"
10 it "Should parse file #{file} without memory leaks" do
11 `#{command}`
12 `fgrep "All heap blocks were freed" /tmp/vgrun.out`.should_not be_empty
13 `fgrep "Warning" /tmp/vgrun.out`.should == ""
14 end
15 end
16 }
17 end
18

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28