blob: 17b4b50587b688d90a1cc0a3febb9296bcf6a60f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/usr/bin/env ruby
load './bench.rb'
# run tests on all the files ending in ".st"
# These must be systemtap scripts.
# First line of scripts must be a comment with the test description.
Dir["*.st"].each do |file|
File.open(file,"r") do |f|
desc = f.gets.sub(/^#/,'').strip
test = Stapbench.new(desc)
test.file = file
test.run
test.print
end
end
|