Sha256: e66acde13cba73ea43fb81b479489e8df629f9a0a703ec786856ddd97f31752e

Contents?: true

Size: 1.16 KB

Versions: 19

Compression:

Stored size: 1.16 KB

Contents

#
# Copyright (C) 2008-2013 NEC Corporation
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2, as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#


Then /^the total number of tx packets should be:$/ do | table |
  sleep 1
  table.hashes[ 0 ].each_pair do | host, n |
    count_packets( `trema show_stats #{ host } --tx` ).should == n.to_i
  end
end


Then /^the total number of rx packets should be:$/ do | table |
  sleep 1
  table.hashes[ 0 ].each_pair do | host, n |
    count_packets( `trema show_stats #{ host } --rx` ).should == n.to_i
  end
end


### Local variables:
### mode: Ruby
### coding: utf-8-unix
### indent-tabs-mode: nil
### End:

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
trema-0.4.6 features/step_definitions/stats_steps.rb
trema-0.4.5 features/step_definitions/stats_steps.rb
trema-0.4.4 features/step_definitions/stats_steps.rb
trema-0.4.3 features/step_definitions/stats_steps.rb
trema-0.4.2 features/step_definitions/stats_steps.rb
trema-0.4.1 features/step_definitions/stats_steps.rb
trema-0.4.0 features/step_definitions/stats_steps.rb
trema-0.3.21 features/step_definitions/stats_steps.rb
trema-0.3.20 features/step_definitions/stats_steps.rb
trema-0.3.19 features/step_definitions/stats_steps.rb
trema-0.3.18 features/step_definitions/stats_steps.rb
trema-0.3.17 features/step_definitions/stats_steps.rb
trema-0.3.16 features/step_definitions/stats_steps.rb
trema-0.3.15 features/step_definitions/stats_steps.rb
trema-0.3.14 features/step_definitions/stats_steps.rb
trema-0.3.13 features/step_definitions/stats_steps.rb
trema-0.3.12 features/step_definitions/stats_steps.rb
trema-0.3.11 features/step_definitions/stats_steps.rb
trema-0.3.10 features/step_definitions/stats_steps.rb