features/examples/learning_switch.feature in trema-0.4.6 vs features/examples/learning_switch.feature in trema-0.4.7
- old
+ new
@@ -14,23 +14,23 @@
link "learning", "host1"
link "learning", "host2"
"""
- @slow_process
- Scenario: Run "Learning Switch" C example
- Given I run `trema run ../../objects/examples/learning_switch/learning_switch -c learning_switch.conf -d`
- And wait until "learning_switch" is up
+ @slow_process @ruby
+ Scenario: Run "Learning Switch" Ruby example
+ Given I run `trema run ../../src/examples/learning_switch/learning-switch.rb -c learning_switch.conf -d`
+ And wait until "LearningSwitch" is up
When I send 1 packet from host1 to host2
And I run `trema show_stats host1 --tx`
And I run `trema show_stats host2 --rx`
Then the output from "trema show_stats host1 --tx" should contain "192.168.0.2,1,192.168.0.1,1,1,50"
And the output from "trema show_stats host2 --rx" should contain "192.168.0.2,1,192.168.0.1,1,1,50"
@slow_process
- Scenario: Run "Learning Switch" Ruby example
- Given I run `trema run ../../src/examples/learning_switch/learning-switch.rb -c learning_switch.conf -d`
- And wait until "LearningSwitch" is up
+ Scenario: Run "Learning Switch" C example
+ Given I run `trema run ../../objects/examples/learning_switch/learning_switch -c learning_switch.conf -d`
+ And wait until "learning_switch" is up
When I send 1 packet from host1 to host2
And I run `trema show_stats host1 --tx`
And I run `trema show_stats host2 --rx`
Then the output from "trema show_stats host1 --tx" should contain "192.168.0.2,1,192.168.0.1,1,1,50"
And the output from "trema show_stats host2 --rx" should contain "192.168.0.2,1,192.168.0.1,1,1,50"