blob: b3b450d8f0a2e1e05c76e8669cb71b4cce08721b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/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
|