Parent Directory
|
Revision Log
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 |