rrdtool: use test DSL
This commit is contained in:
parent
131e7d4a2f
commit
8a3ec979cf
1 changed files with 5 additions and 5 deletions
|
@ -43,13 +43,13 @@ class Rrdtool < Formula
|
|||
prefix.install "bindings/ruby/test.rb"
|
||||
end
|
||||
|
||||
def test
|
||||
mktemp do
|
||||
system "#{bin}/rrdtool", "create", "temperature.rrd", "--step", "300", "DS:temp:GAUGE:600:-273:5000", "RRA:AVERAGE:0.5:1:1200", "RRA:MIN:0.5:12:2400", "RRA:MAX:0.5:12:2400", "RRA:AVERAGE:0.5:12:2400"
|
||||
test do
|
||||
system "#{bin}/rrdtool", "create", "temperature.rrd", "--step", "300",
|
||||
"DS:temp:GAUGE:600:-273:5000", "RRA:AVERAGE:0.5:1:1200",
|
||||
"RRA:MIN:0.5:12:2400", "RRA:MAX:0.5:12:2400", "RRA:AVERAGE:0.5:12:2400"
|
||||
system "#{bin}/rrdtool", "dump", "temperature.rrd"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
__END__
|
||||
diff --git a/configure b/configure
|
||||
|
|
Loading…
Reference in a new issue