/[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 1228 - (show annotations) (download) (as text)
Thu Dec 3 14:53:19 2009 UTC (12 years, 6 months ago) by aramv
File MIME type: application/x-ruby
File size: 579 byte(s)
Checking for warnings in tests too
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 ""
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